本文整理汇总了PHP中suffix函数的典型用法代码示例。如果您正苦于以下问题:PHP suffix函数的具体用法?PHP suffix怎么用?PHP suffix使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了suffix函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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";
}
开发者ID:articatech,项目名称:artica,代码行数:35,代码来源:squid.urgencyssl.remove.progress.php
示例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);
}
开发者ID:Allopa,项目名称:ZN-Framework-Starter,代码行数:8,代码来源:Image.php
示例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;
}
开发者ID:bytemtek,项目名称:znframework,代码行数:8,代码来源:Manipulation.php
示例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);
}
}
开发者ID:znframework,项目名称:znframework,代码行数:9,代码来源:Loader.php
示例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;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:10,代码来源:miniadm.webstats.ByDayNotCategorized.php
示例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}();";
}
开发者ID:articatech,项目名称:artica,代码行数:11,代码来源:squid.global.wl.center.progress.php
示例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;
}
}
开发者ID:bytemtek,项目名称:znframework,代码行数:12,代码来源:Config.php
示例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}();";
}
开发者ID:articatech,项目名称:artica,代码行数:12,代码来源:sealion.uninstall.progress.php
示例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);
}
开发者ID:znframework,项目名称:znframework,代码行数:12,代码来源:Factory.php
示例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}();";
}
开发者ID:articatech,项目名称:artica,代码行数:12,代码来源:dansguardian2.compile.php
示例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}();";
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:12,代码来源:firehol.wizard.enable.progress.php
示例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}();";
}
开发者ID:articatech,项目名称:artica,代码行数:13,代码来源:certificate.center.pfx.progress.php
示例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}();";
}
开发者ID:articatech,项目名称:artica,代码行数:13,代码来源:ufdbguard.compile.category.php
示例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);
}
开发者ID:znframework,项目名称:znframework,代码行数:14,代码来源:RAR.php
示例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;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:15,代码来源:system.internal.disks.BuildBigPartition.progress.php
示例16: basePath
function basePath(string $uri = '', int $index = 0) : string
{
$newBaseDir = substr(BASE_DIR, 1);
if (BASE_DIR !== "/") {
if ($index < 0) {
$baseDir = substr(BASE_DIR, 1, -1);
$baseDir = explode("/", $baseDir);
$newBaseDir = '';
for ($i = 0; $i < count($baseDir) + $index; $i++) {
$newBaseDir .= suffix($baseDir[$i]);
}
}
}
return internalCleanInjection($newBaseDir . $uri);
}
开发者ID:znframework,项目名称:znframework,代码行数:15,代码来源:Path.php
示例17: use
public function use(string $randomPageVariable, array $randomDataVariable = NULL, bool $randomObGetContentsVariable = false)
{
if (!empty(Properties::$parameters['usable'])) {
$randomObGetContentsVariable = Properties::$parameters['usable'];
}
if (!empty(Properties::$parameters['data'])) {
$randomDataVariable = Properties::$parameters['data'];
}
Properties::$parameters = [];
$eol = EOL;
$randomPageVariableExtension = extension($randomPageVariable);
$randomPageVariableBaseUrl = baseUrl($randomPageVariable);
$return = '';
if (!is_file($randomPageVariable)) {
throw new InvalidArgumentException('Error', 'fileParameter', '1.($randomPageVariable)');
}
if ($randomPageVariableExtension === 'js') {
$return = '<script type="text/javascript" src="' . $randomPageVariableBaseUrl . '"></script>' . $eol;
} elseif ($randomPageVariableExtension === 'css') {
$return = '<link href="' . $randomPageVariableBaseUrl . '" rel="stylesheet" type="text/css" />' . $eol;
} elseif (stristr('svg|woff|otf|ttf|' . implode('|', Config::get('ViewObjects', 'font')['differentFontExtensions']), $randomPageVariableExtension)) {
$return = '<style type="text/css">@font-face{font-family:"' . divide(removeExtension($randomPageVariable), "/", -1) . '"; src:url("' . $randomPageVariableBaseUrl . '") format("truetype")}</style>' . $eol;
} elseif ($randomPageVariableExtension === 'eot') {
$return = '<style type="text/css"><!--[if IE]>@font-face{font-family:"' . divide(removeExtension($randomPageVariable), "/", -1) . '"; src:url("' . $randomPageVariableBaseUrl . '") format("truetype")}<![endif]--></style>' . $eol;
} else {
$randomPageVariable = suffix($randomPageVariable, '.php');
if (is_file($randomPageVariable)) {
if (is_array($randomDataVariable)) {
extract($randomDataVariable, EXTR_OVERWRITE, 'zn');
}
if ($randomObGetContentsVariable === false) {
require $randomPageVariable;
} else {
ob_start();
require $randomPageVariable;
$randomSomethingFileContent = ob_get_contents();
ob_end_clean();
return $randomSomethingFileContent;
}
}
}
if ($randomObGetContentsVariable === false) {
echo $return;
} else {
return $return;
}
}
开发者ID:znframework,项目名称:znframework,代码行数:47,代码来源:Something.php
示例18: use
public function use(...$args)
{
if (!empty($args)) {
foreach ($args as $file) {
$suffix = suffix($file, '.php');
$commonFile = EXTERNAL_HANDLOAD_DIR . $suffix;
$file = HANDLOAD_DIR . $suffix;
if (is_file($file)) {
require_once $file;
// Local File
} elseif (is_file($commonFile)) {
require_once $commonFile;
// Common File
}
}
}
}
开发者ID:znframework,项目名称:znframework,代码行数:17,代码来源:Handload.php
示例19: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$zdate = $tpl->javascript_parse_text("{time}");
$ipaddr = $tpl->javascript_parse_text("{ipaddr}");
$mac = $tpl->javascript_parse_text("{MAC}");
$familysite = $tpl->javascript_parse_text("{sitename}");
$uid = $tpl->javascript_parse_text("{{$_GET["field"]}}");
$size = $tpl->javascript_parse_text("{size}");
// ipaddr | familysite | servername | uid | MAC | size
$t = time();
$title = $tpl->javascript_parse_text("{this_hour}:{$_GET["field"]} {$_GET["value"]}");
$suffix = suffix();
$html = "\n\t<table class='flexRT{$t}' style='display:none' id='flexRT{$t}'></table>\n\t<script>\n\tfunction StartLogsSquidTable{$t}(){\n\n\t\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?list=yes{$suffix}',\n\tdataType: 'json',\n\tcolModel : [\n\t{display: '{$zdate}', name : 'xtime', width : 159, sortable : true, align: 'left'},\n\t{display: '{$uid}', name : '{$_GET["field"]}', width :142, sortable : true, align: 'left'},\n\t{display: '{$familysite}', name : 'sitename', width : 169, sortable : true, align: 'left'},\n\t{display: '{$size}', name : 'size', width : 142, sortable : true, align: 'right'},\n\t],\n\n\tsearchitems : [\n\t{display: '{$uid}', name : '{$_GET["field"]}'},\n\t{display: '{$familysite}', name : 'sitename'},\n\t],\n\tsortname: 'xtime',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '<span style=font-size:18px>{$title}</span>',\n\tuseRp: true,\n\trp: 100,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: 450,\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200,500,1000,1500]\n\n});\n\n}\n\nStartLogsSquidTable{$t}();\n</script>\n";
echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:17,代码来源:squid.member.RTTH.current.php
示例20: 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("{WARN_RESTART_HOTSPOT}");
$warn = "if(!confirm('{$compile_squid_ask}')){return;}";
if (isset($_GET["CheckCaches"])) {
$warn = $tpl->javascript_parse_text("{check_caches_warning}");
$warn = "if(!confirm('{$warn}')){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}();";
}
开发者ID:articatech,项目名称:artica,代码行数:17,代码来源:squid.webauth.progress.php
注:本文中的suffix函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论