Commit c46d729c authored by Jasin Goldkorn's avatar Jasin Goldkorn 🐨

added system ausfall information

parent 83958939
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<module fileurl="file://$PROJECT_DIR$/.idea/public.iml" filepath="$PROJECT_DIR$/.idea/public.iml" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="8c781855-12fc-4edd-b7db-fe31e2496215" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/UI/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/UI/index.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/server/LogIt.php" beforeDir="false" afterPath="$PROJECT_DIR$/server/LogIt.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/stats/form/formStyle.css" beforeDir="false" afterPath="$PROJECT_DIR$/stats/form/formStyle.css" afterDir="false" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
<component name="FileEditorManager">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/UI/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="605">
<caret line="311" column="27" lean-forward="true" selection-start-line="311" selection-start-column="27" selection-end-line="311" selection-end-column="27" />
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<option value="$PROJECT_DIR$/UI/index.html" />
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="2629" />
<option name="y" value="25" />
<option name="width" value="2491" />
<option name="height" value="1415" />
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
<pane id="ProjectPane">
<item name="public" type="b2602c69:ProjectViewProjectNode" />
<item name="public" type="462c0819:PsiDirectoryNode" />
<item name="public" type="b2602c69:ProjectViewProjectNode" />
<item name="public" type="462c0819:PsiDirectoryNode" />
<item name="UI" type="462c0819:PsiDirectoryNode" />
<select />
<pane id="Scope" />
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<component name="RunDashboard">
<option name="ruleStates">
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
<option name="name" value="StatusDashboardGroupingRule" />
<component name="SvnConfiguration">
<configuration />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="8c781855-12fc-4edd-b7db-fe31e2496215" name="Default Changelist" comment="" />
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<workItem from="1561995557256" duration="86000" />
<servers />
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="86000" />
<component name="ToolWindowManager">
<frame x="2629" y="25" width="2491" height="1415" extended-state="6" />
<editor active="true" />
<window_info id="Favorites" side_tool="true" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24989775" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
<window_info anchor="bottom" id="Database Changes" />
<window_info anchor="bottom" id="Version Control" />
<window_info anchor="bottom" id="Terminal" />
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Run" order="2" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="right" id="Database" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/UI/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="605">
<caret line="311" column="27" lean-forward="true" selection-start-line="311" selection-start-column="27" selection-end-line="311" selection-end-column="27" />
\ No newline at end of file
......@@ -308,6 +308,12 @@
<td>Ausfall des Serveranbieters - "massive Probleme mit dem Cluster"</td>
<td>Ausfall des gesamten Systems</td>
<th scope="row">4</th>
<td>2019-06-129 15:44:30 - 2019-07-01 17:37:00</td>
<td>Ausfall des gesamten Systems</td>
Just wondering if there is something like .= for adding text to the beginning of a string, e.g.:
$foo =. 'bar';
which doesn't work.
Edit: example was originally $foo =. $bar; which can be achieved with $bar .= $foo;
edited Jul 8 '14 at 16:19
asked Aug 18 '11 at 17:50
3,39955 gold badges2929 silver badges4242 bronze badges
$bar .= $foo? – James Allardice Aug 18 '11 at 17:52
I vouch for James' though he should have written an answer for it... – Christian Aug 18 '11 at 17:54
That appends $foo to $bar, instead of prepending $bar to $foo. The result is similar, but I think he wants to mutate $foo. Eric V Aug 18 '11 at 17:56
It was meant to be a bit of a tongue-in-cheek comment (which is why it's a comment, not an answer)! James Allardice Aug 18 '11 at 18:01
ugh... sorry, bad example... fixed now :) – yuttadhammo Aug 18 '11 at 18:21
add a comment
5 Answers
active oldest votes
Nope. But you can do
$foo = "bar" . $foo
answered Aug 18 '11 at 17:52
Eric V
1,43111 gold badge1010 silver badges55 bronze badges
add a comment
You could always make your own function for that:
function prepend($string, $chunk) {
if(!empty($chunk) && isset($chunk)) {
return $string.$chunk;
else {
return $string;
$string would be the piece that you want to prepend and $chunk would be the text that you want something prepended onto it.
You could say the checks are optional, but by having that in there you don't need to worry about passing in a null value by accident.
answered Aug 18 '11 at 18:03
5,4061313 gold badges3030 silver badges5151 bronze badges
Nicely done, but it doesn't really make things easier :) yuttadhammo Aug 18 '11 at 18:24
Thanks, you are right though. It's definitely not as easy or fast as something built in. Feel free to copy and paste if that helps make it easier :D Aaron Aug 18 '11 at 18:35
If something is !empty it's also always isset, no need for this double check. Furthermore, since $chunk is a required parameter of the function, it needs to be passed to the function or PHP will complain. This means this check can be abbreviated to if ($chunk) (to see if it's falsy a.k.a. "empty"). But, if $chunk doesn't contain anything, nothing will happen anyway. So this whole function body can be abbreviated to return $string . $chunk. Which means this whole function is pretty unnecessary. deceze Aug 19 '11 at 4:28
You can have a variable be set but also be empty. For example, a variable with the value of "" is empty but also set. – Aaron Aug 19 '11 at 16:02
Yes, but I'm saying your function is a very verbose way to write $foo . $bar. I challenge you to find any important case were your function does anything different. :) – deceze♦ Aug 20 '11 at 7:40
show 1 more comment
I know this was asked/answered a while ago, but providing this answer as it is functionally equivalent despite it not being an assignment operator and no one commented on its usage for general string concatenation.
You may want to look into the use of the sprintf (documentation) family of functions for string concatenation. It provides a lot more sanitization and usability than just combining two strings with assignment operators.
$foo = 'foo';
$append = sprintf('%1$s%2$s', $foo, 'bar');
/* string(6) "foobar" */
$prepend = sprintf('%1$s%2$s', 'bar', $foo);
/* string(6) "barfoo" */
$prependInvert = sprintf('%2$s%1$s', $foo, 'bar');
/* string(6) "barfoo" */
$wrap = sprintf('%2$s%1$s%2$s', $foo, 'bar');
/* string(6) "barfoobar" */
I normally use vsprintf, since working with arrays is easier to manage value positions than individual arguments.
$vprepend = vsprintf('%2$s%1$s', array('foo', 'bar'));
/* string(6) "barfoo" */
Also with an array of values, one can simply implode the resultant set of values for simple string concatenation.
var_dump(implode('', array('bar', 'foo')));
/* string(6) "barfoo" */
edited Feb 25 '15 at 15:23
answered Feb 25 '15 at 15:07
10.1k22 gold badges4040 silver badges5252 bronze badges
Unfortunately, I do not think sprintf() is as fast as simple concats. And it certainly doesn't seem nearly as syntax-friendly, either. See: – HoldOffHunger Apr 9 '18 at 17:23
Correct, though not sure how you mean by syntax friendly. While it is not as fast or simplistic as concatenation. sprintf is commonly used throughout multiple languages. sprintf has its place and purpose on when to use it. eg. casting of multiple values or enforcing a number of inputs using sprintf, provides you with more functionality than simple concatenation when is required. See: But it should be not be used as a complete replacement for concatenation. – fyrye Apr 9 '18 at 22:46
add a comment
You can wrap the built-in function substr_replace, where the arguments $start and $length can be set to 0, which prepends the $replacement to $string and returns the result, like so:
function prepend(& $string, $prefix) {
$string = substr_replace($string, $prefix, 0, 0);
An example usage of the helper function would be:
$email_message = "Jonathan";
$appropriate_greeting = "Dear ";
prepend($email_message, $appropriate_greeting);
echo $email_message;
If you are into procedural programming, that is.
answered Dec 6 '15 at 18:58
2811 silver badge77 bronze badges
I don't see the interest of using substr_replace; doing a simple $string = $prefix.$string; in the function will do the trick. Pierre-Olivier Vares Dec 27 '17 at 12:01
add a comment
Turning Blakethepatton's comment into an answer (thank you), a way to do this more neatly for longer variable names is by using a reference to the variable as follows:
$f = &$foo; $f = "bar{$f}";
This will save you typing over the answer by Eric V if your original variable name is 12 characters or longer.
An alternative on one line:
$f = 'bar' . ($f = &$foo);
edited Apr 24 '18 at 13:47
answered Apr 24 '18 at 13:33
1101010 bronze badges
add a comment
Your Answer
Links Images Styling/Headers Lists Blockquotes Code HTML advanced help »
community wiki
Post Your Answer
Not the answer you're looking for? Browse other questions tagged php or ask your own question.
7 years, 10 months ago
48,205 times
1 year, 2 months ago
Featured on Meta
Tag synonym dashboard 2.0
We're testing advertisements across the network
Should we burninate the [ebay] tag?
Hot Meta Posts
Automatically delete Let us continue this discussion in chat comments
Please don't obstruct my “improving edit” view
Fix or remove the useless 'I have a question about my Stack Overflow post'…
const ERRORLOG = "ErrorLog";
......@@ -3,6 +3,7 @@ html {
font-family: 'Lato', sans-serif;
display: none;
......@@ -47,7 +48,7 @@ html {
margin-top: 5em;
padding: 5em;
padding-top: 2em;
padding-bottom: 2em;
padding-bottom: 1em;
background-color: white;
color: #33312E;
border-radius: 0.2em;
......@@ -94,7 +95,7 @@ html {
width: 100%;
padding: 1.3em;
margin-bottom: 3em;
margin-bottom: 0.5em;
box-sizing: border-box;
margin-top: 1em;
border: none;
......@@ -123,3 +124,4 @@ html {
background-color: #12684e;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment