| | 2 | |
|---|
| | 3 | // HELPER FUNCTIONS: |
|---|
| | 4 | |
|---|
| | 5 | function framework_print_errors($src, $dst, $errors) { |
|---|
| | 6 | echo "error copying framework files:<br />'cp -rf' from src: '$src' to dst: '$dst'...details follow<br />"; |
|---|
| | 7 | foreach ($errors as $error) { |
|---|
| | 8 | echo "$error<br />"; |
|---|
| | 9 | } |
|---|
| | 10 | } |
|---|
| | 11 | |
|---|
| | 12 | if (! function_exists('out')) { |
|---|
| | 13 | function out($text) { |
|---|
| | 14 | echo $text."<br>"; |
|---|
| | 15 | } |
|---|
| | 16 | } |
|---|
| | 17 | |
|---|
| | 18 | if (! function_exists('outn')) { |
|---|
| | 19 | function outn($text) { |
|---|
| | 20 | echo $text; |
|---|
| | 21 | } |
|---|
| | 22 | } |
|---|
| | 23 | |
|---|
| | 24 | if (! function_exists('error')) { |
|---|
| | 25 | function error($text) { |
|---|
| | 26 | echo "[ERROR] ".$text."<br>"; |
|---|
| | 27 | } |
|---|
| | 28 | } |
|---|
| | 29 | |
|---|
| | 30 | if (! function_exists('fatal')) { |
|---|
| | 31 | function fatal($text) { |
|---|
| | 32 | echo "[FATAL] ".$text."<br>"; |
|---|
| | 33 | exit(1); |
|---|
| | 34 | } |
|---|
| | 35 | } |
|---|
| | 36 | |
|---|
| | 37 | if (! function_exists('debug')) { |
|---|
| | 38 | function debug($text) { |
|---|
| | 39 | global $debug; |
|---|
| | 40 | |
|---|
| | 41 | if ($debug) echo "[DEBUG-preDB] ".$text."<br>"; |
|---|
| | 42 | } |
|---|
| | 43 | } |
|---|
| 79 | | |
|---|
| 80 | | // HELPER FUNCTIONS: |
|---|
| 81 | | |
|---|
| 82 | | function framework_print_errors($src, $dst, $errors) { |
|---|
| 83 | | echo "error copying framework files:<br />'cp -rf' from src: '$src' to dst: '$dst'...details follow<br />"; |
|---|
| 84 | | foreach ($errors as $error) { |
|---|
| 85 | | echo "$error<br />"; |
|---|
| 86 | | } |
|---|
| 87 | | } |
|---|
| 88 | | |
|---|
| 89 | | if (! function_exists("out")) { |
|---|
| 90 | | function out($text) { |
|---|
| 91 | | echo $text."<br>"; |
|---|
| 92 | | } |
|---|
| 93 | | } |
|---|
| 94 | | |
|---|
| 95 | | if (! function_exists("outn")) { |
|---|
| 96 | | function outn($text) { |
|---|
| 97 | | echo $text; |
|---|
| 98 | | } |
|---|
| 99 | | } |
|---|
| 100 | | |
|---|
| 101 | | if (! function_exists("error")) { |
|---|
| 102 | | function error($text) { |
|---|
| 103 | | echo "[ERROR] ".$text."<br>"; |
|---|
| 104 | | } |
|---|
| 105 | | } |
|---|
| 106 | | |
|---|
| 107 | | if (! function_exists("fatal")) { |
|---|
| 108 | | function fatal($text) { |
|---|
| 109 | | echo "[FATAL] ".$text."<br>"; |
|---|
| 110 | | exit(1); |
|---|
| 111 | | } |
|---|
| 112 | | } |
|---|
| 113 | | |
|---|
| 114 | | if (! function_exists("debug")) { |
|---|
| 115 | | function debug($text) { |
|---|
| 116 | | global $debug; |
|---|
| 117 | | |
|---|
| 118 | | if ($debug) echo "[DEBUG-preDB] ".$text."<br>"; |
|---|
| 119 | | } |
|---|
| 120 | | } |
|---|