aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-19 20:36:32 -0700
committerredmatrix <git@macgirvin.com>2016-05-19 20:36:32 -0700
commit9cb1ac3de5d0f540bc6e1f5b1f4277b5a5bb9e67 (patch)
tree0733251872dc2f850ea0a6afc6454848a211b21f /boot.php
parent5b2474238eb0d257db14b0668ef25eab92e53fea (diff)
downloadvolse-hubzilla-9cb1ac3de5d0f540bc6e1f5b1f4277b5a5bb9e67.tar.gz
volse-hubzilla-9cb1ac3de5d0f540bc6e1f5b1f4277b5a5bb9e67.tar.bz2
volse-hubzilla-9cb1ac3de5d0f540bc6e1f5b1f4277b5a5bb9e67.zip
daemon master: create some compatibility code
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 7fc096fa3..bdce2a03f 100755
--- a/boot.php
+++ b/boot.php
@@ -1847,6 +1847,18 @@ function proc_run($cmd){
if(count($args) && $args[0] === 'php')
$args[0] = ((x(App::$config,'system')) && (x(App::$config['system'],'php_path')) && (strlen(App::$config['system']['php_path'])) ? App::$config['system']['php_path'] : 'php');
+ if(strstr($args[1],'include/')) {
+ $orig = substr(ucfirst(substr($args[1],8)),0,-4);
+ logger('proc_run_redirect: ' . $orig);
+ if(file_exists('Zotlabs/Daemon/' . $orig . '.php')) {
+ array_shift($args);
+ $args[0] = $orig;
+ logger('Redirecting old proc_run interface: ' . print_r($args,true));
+ \Zotlabs\Daemon\Master::Summon($args);
+ return;
+ }
+ }
+
for($x = 0; $x < count($args); $x++)
$args[$x] = escapeshellarg($args[$x]);