本文整理汇总了PHP中suffix函数的典型用法代码示例。如果您正苦于以下问题:PHP suffix函数的具体用法?PHP suffix怎么用?PHP suffix使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了suffix函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildjs
function buildjs()
{
$t = $_GET["t"];
$time = time();
$MEPOST = 0;
header("content-type: application/x-javascript");
$tpl = new templates();
$page = CurrentPageName();
$array = unserialize(@file_get_contents($GLOBALS["CACHEFILE"]));
$prc = intval($array["POURC"]);
$title = $tpl->javascript_parse_text($array["TEXT"]);
$suffix = suffix();
$md5file = trim(md5_file($GLOBALS["LOGSFILES"]));
echo "// CACHE FILE: {$GLOBALS["CACHEFILE"]} {$prc}%\n";
echo "// LOGS FILE: {$GLOBALS["LOGSFILES"]} - {$md5file} " . strlen($md5file) . "\n";
if ($prc == 0) {
if (strlen($md5file) < 32) {
echo "\n\t// PRC = {$prc} ; md5file={$md5file}\n\tfunction Start{$time}(){\n\t\t\tif(!RTMMailOpen()){return;}\n\t\t\tLoadjs('{$page}?build-js=yes&t={$t}&md5file={$_GET["md5file"]}{$suffix}');\n\t}\n\tsetTimeout(\"Start{$time}()\",1000);";
return;
}
}
if ($md5file != $_GET["md5file"]) {
echo "\n\tvar xStart{$time}= function (obj) {\n\t\tif(!document.getElementById('text-{$t}')){return;}\n\t\tvar res=obj.responseText;\n\t\tif (res.length>3){\n\t\t\tdocument.getElementById('text-{$t}').value=res;\n\t\t}\t\t\n\t\tLoadjs('{$page}?build-js=yes&t={$t}&md5file={$md5file}{$suffix}');\n\t}\t\t\n\t\n\tfunction Start{$time}(){\n\t\tif(!RTMMailOpen()){return;}\n\t\tdocument.getElementById('title-{$t}').innerHTML='{$title}';\n\t\t\$('#progress-{$t}').progressbar({ value: {$prc} });\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('Filllogs', 'yes');\n\t\tXHR.appendData('t', '{$t}');\n\t\tXHR.setLockOff();\n\t\tXHR.sendAndLoad('{$page}', 'POST',xStart{$time},false); \n\t}\n\tsetTimeout(\"Start{$time}()\",1000);";
return;
}
if ($prc > 100) {
echo "\n\tfunction Start{$time}(){\n\t\tif(!RTMMailOpen()){return;}\n\t\tdocument.getElementById('title-{$t}').innerHTML='{$title}';\n\t\tdocument.getElementById('title-{$t}').style.border='1px solid #C60000';\n\t\tdocument.getElementById('title-{$t}').style.color='#C60000';\n\t\t\$('#progress-{$t}').progressbar({ value: 100 });\n\t}\n\tsetTimeout(\"Start{$time}()\",1000);\n\t";
return;
}
if ($prc == 100) {
echo "\n\tfunction Start{$time}(){\n\t\tif(!RTMMailOpen()){return;}\n\t\tdocument.getElementById('title-{$t}').innerHTML='{$title}';\n\t\t\$('#progress-{$t}').progressbar({ value: {$prc} });\n\t\tLayersTabsAllAfter();\n\t\tRTMMailHide();\n\t\tif(document.getElementById('SQUID_URGENCY_FORM_ADM')){ YahooWin3Hide(); }\n\t\tif(document.getElementById('main_adker_tabs')){ RefreshTab('main_adker_tabs'); }\n\t\tif(document.getElementById('sequence-proxy')){LoadAjaxSilent('sequence-proxy','admin.dashboard.proxy.php?sequence-proxy=yes&nofw=yes&sequence=yes'); }\n\t\t}\n\tsetTimeout(\"Start{$time}()\",1000);\n\t";
return;
}
echo "\t\nfunction Start{$time}(){\n\t\tif(!RTMMailOpen()){return;}\n\t\tdocument.getElementById('title-{$t}').innerHTML='{$title}';\n\t\t\$('#progress-{$t}').progressbar({ value: {$prc} });\n\t\tLoadjs('{$page}?build-js=yes&t={$t}&md5file={$_GET["md5file"]}{$suffix}');\n\t}\n\tsetTimeout(\"Start{$time}()\",1500);\n";
}
示例2: newPath
private function newPath($filePath)
{
$fileEx = explode("/", $filePath);
$this->file = $fileEx[count($fileEx) - 1];
$this->thumbPath = substr($filePath, 0, strlen($filePath) - strlen($this->file)) . $this->dirName;
$this->thumbPath = suffix($this->thumbPath);
$this->thumbPath = str_replace(baseUrl(), "", $this->thumbPath);
}
示例3: file
public function file($file = '')
{
if (is_string($file)) {
$this->manipulation['filename'] = STYLES_DIR . suffix($file, '.css');
$this->manipulation['file'] = File::contents($this->manipulation['filename']);
}
return $this;
}
示例4: do
public function do(string $file) : string
{
$file = suffix($file, '.xml');
if (File::exists($file)) {
return File::read($file);
} else {
throw new FileNotFoundException('Exception', 'fileNotFound', $file);
}
}
示例5: section_events
function section_events()
{
$suffix = suffix();
$page = CurrentPageName();
$tpl = new templates();
$t = time();
$boot = new boostrap_form();
$form = $boot->SearchFormGen("subject", "events-search", $suffix);
echo $form;
}
示例6: js
function js()
{
header("content-type: application/x-javascript");
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$tpl = new templates();
$suffix = suffix();
$title = title();
echo "\n\tfunction Start{$t}(){\t\n\t\t{$warn}\n\t\tYahooWinHide();\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
示例7: _config
private static function _config($file)
{
global $config;
$path = CONFIG_DIR . suffix($file, ".php");
if (!is_file($path)) {
return false;
}
if (!isImport($path)) {
require_once restorationPath($path);
self::$config = $config;
}
}
示例8: js
function js()
{
header("content-type: application/x-javascript");
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$tpl = new templates();
$suffix = suffix();
$title = title();
$warn = $tpl->javascript_parse_text("{uninstall} {APP_SEALION_AGENT} ?");
echo "\n\tfunction Start{$t}(){\t\n\t\tif(!confirm('{$warn}')){return;}\n\t\tYahooWinHide();\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
示例9: class
public static function class(string $class)
{
$namespace = NULL;
if (defined('static::namespace')) {
$namespace = suffix(static::namespace, '\\');
} else {
$calledClass = get_called_class();
$namespace = str_ireplace(divide($calledClass, '\\', -1), NULL, $calledClass);
}
$class = $namespace . $class;
return uselib($class);
}
示例10: js
function js()
{
header("content-type: application/x-javascript");
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$tpl = new templates();
$compile_squid_ask = $tpl->javascript_parse_text("{build_webfiltering_rules} ?");
$suffix = suffix();
$title = title();
echo "\n\tfunction Start{$t}(){\t\n\t\t//if(!confirm('{$compile_squid_ask}')){return;}\n\t\tYahooWinHide();\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
示例11: js
function js()
{
header("content-type: application/x-javascript");
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$tpl = new templates();
$suffix = suffix();
$title = title();
$ask = "if(!confirm('" . $tpl->javascript_parse_text("{enable_ask_firewall}") . "')){return;}";
echo "\n\tfunction Start{$t}(){\t\n\t\t{$ask}\n\t\tYahooWinHide();\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
示例12: js
function js()
{
header("content-type: application/x-javascript");
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$tpl = new templates();
$export_password = $tpl->javascript_parse_text("{export_password}");
$suffix = suffix();
$title = title();
$tt = time();
echo "\nvar xSave{$t}=function (obj) {\n\tvar results=obj.responseText;\n\tif (results.length>3){alert(results);return;}\n\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t\n}\nfunction Start{$t}(){\n\tvar XHR = new XHRConnection();\n\tvar pp=prompt('{$export_password}');\n\tif(!pp){return;}\n\tXHR.appendData('save-exportpass',pp);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\t\nStart{$t}();";
}
示例13: js
function js()
{
header("content-type: application/x-javascript");
$tpl = new templates();
$page = CurrentPageName();
$t = time();
$tpl = new templates();
$compile_squid_ask = $tpl->javascript_parse_text("{confirm_dnsg_compile_db}");
$warn = "if(!confirm('{$compile_squid_ask}')){return;}";
$suffix = suffix();
$title = title();
echo "\n\tfunction Start{$t}(){\t\n\t\t{$warn}\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
示例14: extract
public function extract($source, $target, $password)
{
$rarFile = rar_open(suffix($source, '.rar'), $password);
$list = rar_list($rarFile);
if (!empty($list)) {
foreach ($list as $file) {
$entry = rar_entry_get($rarFile, $file);
$entry->extract($target);
}
} else {
throw new InvalidArgumentException('Error', 'emptyVariable', '$list');
}
rar_close($rarFile);
}
示例15: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$sock = new sockets();
$suffix = suffix();
$sock->getFrameWork("cmd.php?fdisk-build-big-partitions=yes&{$suffix}");
$t = $_GET["t"];
if (!is_numeric($t)) {
$t = time();
}
$text = $tpl->_ENGINE_parse_body("{please_wait_preparing_settings}...");
$html = "\n<center id='title-{$t}' style='font-size:18px;margin-bottom:20px'>{$text}</center>\n<div id='progress-{$t}' style='height:50px'></div>\n<p> </p>\n<textarea style='margin-top:5px;font-family:Courier New;\nfont-weight:bold;width:99%;height:446px;border:5px solid #8E8E8E;\noverflow:auto;font-size:11px' id='text-{$t}'></textarea>\n\t\n<script>\nfunction Step1{$t}(){\n\t\$('#progress-{$t}').progressbar({ value: 1 });\n\tLoadjs('{$page}?build-js=yes&t={$t}&md5file=0&{$suffix}');\n}\n\$('#progress-{$t}').progressbar({ value: 1 });\nsetTimeout(\"Step1{$t}()\",1000);\n\n</script>\n";
echo $html;
}