mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
myvesta_echo php function
This commit is contained in:
parent
a47603156d
commit
3bafc5b064
2 changed files with 30 additions and 20 deletions
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
$myvesta_echo_done=false;
|
||||
|
||||
if (isset($_SERVER['SHLVL'])) $SHLVL=intval($_SERVER['SHLVL']);
|
||||
else $SHLVL=3;
|
||||
|
||||
|
@ -27,14 +29,11 @@ for ($i=2; $i<$counter; $i++) {
|
|||
$r=call_user_func_array($func, $params);
|
||||
if (is_bool($r)) {
|
||||
if ($r) {
|
||||
if ($SHLVL<3) echo "\n";
|
||||
exit(0);
|
||||
myvesta_exit (0);
|
||||
} else {
|
||||
if ($SHLVL<3) echo "\n";
|
||||
exit(MYVESTA_ERROR_GENERAL);
|
||||
myvesta_exit (MYVESTA_ERROR_GENERAL);
|
||||
}
|
||||
} else {
|
||||
echo $r;
|
||||
if ($SHLVL<3) echo "\n";
|
||||
exit(0);
|
||||
myvesta_echo ($r);
|
||||
myvesta_exit (0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue