-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.php
More file actions
50 lines (48 loc) · 1.38 KB
/
start.php
File metadata and controls
50 lines (48 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
$sharedpath = "./sphpdesk/vendor/sartajphp/sartajphp";
$respath = "./sphpdesk/vendor/sartajphp/sartajphp/res";
//$sharedpath = "..";
//$respath = "../res";
$slibversion = "Slib";
$libversion = "Sphp8e";
// not editable start
// <editor-fold defaultstate="collapsed" desc="This is generated code, any changes can effect the application">
if(!defined("start_path")){
define("start_path", __DIR__);
}
if(!isset($argvm) && isset($argv)){
global $argvm;
$argvm = array();
$total = count($argv);
for ($c = 0; $c < $total; $c++) {
$next = $c + 1;
if ($next >= $total) {
$next = $total - 1;
}
if (strpos($argv[$c], "--") !== FALSE) {
if (strpos($argv[$next], "--") !== FALSE) {
$value = "";
$argvm[$argv[$c]] = $value;
} else {
$value = $argv[$next];
$argvm[$argv[$c]] = $value;
$c++;
}
}
}
}
if(isset($argv) && isset($argvm["--sharedpath"])){
chdir(start_path);
$sharedpath = $argvm["--sharedpath"];
$respath = "~rs/res";
}
//$respath = "~up/res/";
$phppath = $sharedpath . "/res";
include_once("{$phppath}/Score/{$libversion}/global/start.php");
$globalapp = startSartajPHPEngine();
if($globalapp != ""){
require_once($globalapp);
SphpBase::engine()->execute(true);
}
// </editor-fold>
// not editable end