1: <?php
2: $ytetimestart1 = microtime(true);
3: if (!defined("start_path")) {
4: define("start_path", getcwd());
5: }
6: if (defined("PHARAPP")) {
7: define("PROJ_PATH", PHARAPP);
8: } else {
9: define("PROJ_PATH", start_path);
10: }
11: $cacheFileList = array();
12: /** addCacheList($url, $sec = 0, $type = "controller")
13: * add controller path into cache list.
14: * @param String $url <p>
15: * add url into cache list
16: * </p>
17: * @param Int $sec Optional <p>
18: * time in seconds
19: * </p>
20: * @param String $type Optional <p>
21: * type = controller mean url has controller name only and response to all events basis on this controller.
22: * type = ce mean controller-event cache only that event.
23: * type = cep mean controller-event-evtp cache only that event with that parameter.
24: * type = e event on any application will be cash.
25: * </p>
26: * @link https://sartajphp.com/api4-fun.html?addCacheList
27: * @return void
28: */
29: function addCacheList($url, $sec = 0, $type = "controller") {}
30: /** isPharApp()
31: * Check if application run as Phar app.
32: * @return boolean
33: */
34: function isPharApp() {}
35: /**
36: *
37: * @param string $url
38: * @return boolean
39: */
40: function isRegisterCacheItem($url) {}
41: function getCacheItem($url) {}
42: include_once("{$phppath}/Score/global/global.php");
43: $response_method = "NORMAL";
44: if (defined("PHARAPPW")) {
45: $basepath = "";
46: $respath = str_replace("..", "../..", $respath);
47: }
48: define("NEWLINE", "\n");
49: define("RLINE", "\r");
50: define("TABCHAR", "\t");
51: /**
52: * Read Global variable
53: * @param string $param
54: * @return mixed
55: */
56: function readGlobal($param) {}
57: /**
58: * Write Global variable
59: * @param string $param
60: * @param object $val
61: */
62: function writeGlobal($param, $val) {}
63: /**
64: * include with all global variables in close environment like include in function.
65: * @param string $filepath
66: */
67: function includeOnce($filepath) {}
68: /**
69: * Experimental don't use.
70: * include with all global variables in close environment like include in function.
71: * when sphp_mannually_start_engine defined then it use include otherwise it use include_once
72: * @param string $filepath
73: */
74: function includeOnce2($filepath) {}
75: /**
76: * Get $GLOBALS PHP Variable
77: * @return array
78: */
79: function getGlobals() {}
80: class stmycache {
81: public $url_extension = ".html";
82: public $act = "";
83: public $sact = "";
84: public $evtp = "";
85: public $ctrl = "";
86: public $blnrooturi = true;
87: public $htmlfileName = "";
88: public $blnCash = false;
89: public $blnPost = false;
90: public $blnCashExp = true;
91: public $method = "";
92: public $mode = "SERVER"; public $protocol = "";
93: public $blnsecure = false;
94: public $uri = "";
95: public $scriptpath = "";
96: public $argv = array();
97: public $type = "NORMAL"; public $isNativeClient = false;
98: public $edtmode = false;
99: public $ytetimestart1 = 0;
100: public $ytetimestart2 = 0;
101: public function findbdataToStr($str1) {}
102: public function getPostFormData($data) {}
103: public function escapetag($str) {}
104: public function route() {}
105: public function getURLSafeRet($val) {}
106: public function checkCache($postdata) {}
107: }
108: function startSartajPHPEngine() {}
109: