当前位置: 首页>>代码示例>>PHP>>正文


PHP sockets::DeleteCache方法代码示例

本文整理汇总了PHP中sockets::DeleteCache方法的典型用法代码示例。如果您正苦于以下问题:PHP sockets::DeleteCache方法的具体用法?PHP sockets::DeleteCache怎么用?PHP sockets::DeleteCache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在sockets的用法示例。


在下文中一共展示了sockets::DeleteCache方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

function index()
{
    $lang = array("en" => "English (en)", "en-uk" => "british english (en-uk)", "bg" => "????????? (bg)", "da" => "dansk (da)", "de" => "deutsch (de)", "es" => "espanol (es)", "fr" => "francais (fr)", "it" => "italiano (it)", "nl" => "nederlands (nl)", "pl" => "polski (pl)", "pt" => "portugues (pt)", "pt-br" => "brasil portugues (pt-br)", "ro" => "romana (ro)", "ru" => "??????? ???? (ru)");
    $sock = new sockets();
    $sock->DeleteCache();
    $ll = Field_array_Hash($lang, 'PommoFieldlang', $sock->GET_INFO('PommoFieldlang'));
    $html = "\n<img src='img/bg_pommo.png' style='float:right;margin-top:-8px'><H1>{APP_POMMO}</h1>\n<p class=caption>{pommo_explain}</p>\n<div id='pommodiv'>\n<table style='width:100%' class=table_form>\n<tr>\n<td valign='top' nowrap class=legend>{default_language}:</td>\n<td>{$ll}</td>\n</tr>\n<tr>\n<td valign='top' nowrap class=legend>{hostname}:</td>\n<td>" . Field_text("PommoFieldhostname", $sock->GET_INFO("PommoFieldhostname"), 'width:150px') . "</td>\n</tr>\n<tr>\n\t<td colspan=2 align='right'><input type='button' OnClick=\"javascript:PommoSave();\" value='{edit}&nbsp;&raquo;'>\n</tr>\n<tr>\n\t<td colspan=2 align='right'><input type='button' OnClick=\"javascript:PommoReset();\" value='{restore_admin}&nbsp;&raquo;'>\n</tr>\n\n</table>\n</div>\n";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:artica,代码行数:10,代码来源:pommo.index.php

示例2: emptycache

function emptycache()
{
    $sock = new sockets();
    $sock->DeleteCache();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:5,代码来源:postfix.index.php

示例3: logsof

function logsof()
{
    $appname = $_GET["logsof"];
    $sock = new sockets();
    $logs_datas = $sock->getfile("AppliCenterTailDebugInfos:{$appname}");
    $sock->DeleteCache();
    $tb = explode("\n", $logs_datas);
    $count_s = count($tb);
    for ($i = 0; $i < count($tb) + 1; $i++) {
        if ($tb[$i] == null) {
            continue;
        }
        echo "<div style='background-color:white;border:1px solid #CCCCCC;padding:3px;padding-left:10px'><code style='font-size:12px;'>" . htmlspecialchars($tb[$i]) . "</code></div>";
    }
}
开发者ID:brucewu16899,项目名称:artica,代码行数:15,代码来源:setup.index.progress.php

示例4: save

 function save()
 {
     if (is_array($this->networklist)) {
         reset($this->networklist);
         while (list($num, $maks) = each($this->networklist)) {
             if (trim($maks) == null) {
                 continue;
             }
             $arr[trim($maks)] = trim($maks);
         }
     }
     if (is_array($arr)) {
         while (list($num, $net) = each($arr)) {
             $conf = $conf . "{$net}\n";
         }
     }
     echo $conf;
     $sock = new sockets();
     $sock->SaveConfigFile($conf, "NetworkScannerMasks");
     $sock->DeleteCache();
 }
开发者ID:brucewu16899,项目名称:artica,代码行数:21,代码来源:computer-browse.php

示例5: logsof

function logsof()
{
    $appname = $_GET["logsof"];
    $sock = new sockets();
    $logs_datas = $sock->getfile("AppliCenterTailDebugInfos:{$appname}");
    $sock->DeleteCache();
    $tb = explode("\n", $logs_datas);
    $count_s = count($tb);
    for ($i = 0; $i < count($tb) + 1; $i++) {
        if ($tb[$i] == null) {
            continue;
        }
        if (preg_match("#[0-9]+\\.[0-9]+%#", $tb[$i])) {
            continue;
        }
        if (preg_match("#[0-9]+,[0-9]+%#", $tb[$i])) {
            continue;
        }
        echo "<div><code style='font-size:12px;'>" . htmlspecialchars($tb[$i]) . "</code></div>";
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:21,代码来源:setup.index.progress.php

示例6: APP_APACHE

function APP_APACHE()
{
    $sock = new sockets();
    if (!is_numeric($_GET["APP_APACHE"])) {
        $_GET["APP_APACHE"] = 80;
    }
    if (!is_numeric($_GET["APP_APACHE_SSL"])) {
        $_GET["APP_APACHE_SSL"] = 443;
    }
    $sock->SET_INFO("FreeWebListenPort", $_GET["APP_APACHE"]);
    $sock->SET_INFO("FreeWebListenSSLPort", $_GET["APP_APACHE_SSL"]);
    $sock->getFrameWork("cmd.php?restart-apache-src=yes");
    $sock->DeleteCache();
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:14,代码来源:external-ports.php

示例7: sockets

    $_SESSION["detected_lang"] = $_COOKIE["artica-language"];
}
$sock = new sockets();
$sock->getFrameWork("squid.php?clean-catz-cache=yes");
echo "\n";
$cc = 0;
while (list($num, $val) = each($_SESSION)) {
    if (preg_match("#\\/.+?\\.php\$#", $num)) {
        $cc++;
        unset($_SESSION[$num]);
    }
}
foreach (glob("/usr/share/artica-postfix/ressources/logs/web/*.cache") as $filename) {
    @unlink($filename);
}
$sock->DeleteCache();
$sock->getFrameWork("system.php?process1=yes");
while (list($num, $val) = each($GLOBALS["langs"])) {
    $datas = $sock->LANGUAGE_DUMP($val);
    $bb = strlen(serialize($datas));
    $a = $a + $bb;
    $bb = str_replace("&nbsp;", " ", FormatBytes($bb / 1024));
    $tt[] = "\tDumping language {$val} {$bb}";
}
$dataSess = strlen(serialize($_SESSION));
$text = $text . "Session Cache.....................: " . str_replace("&nbsp;", " ", FormatBytes($dataSess / 1024)) . "\n";
$text = $text . "Session Page Cache................: {$cc} page(s)\n";
$bytes = $a;
$text = $text . "Language Cache....................: " . str_replace("&nbsp;", " ", FormatBytes($bytes / 1024)) . "/" . str_replace("&nbsp;", " ", FormatBytes($sock->semaphore_memory / 1024)) . "\n";
$text = $text . implode("\n", $tt) . "\n";
$text = $text . "Console Cache.....................: " . str_replace("&nbsp;", " ", FormatBytes(REMOVE_CACHED())) . "\n";
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:CacheOff.php

示例8: APP_APACHE

function APP_APACHE()
{
    $sock = new sockets();
    $sock->getfile("ApacheChangePortStandard:" . $_GET["APP_APACHE"]);
    $sock->DeleteCache();
}
开发者ID:brucewu16899,项目名称:artica,代码行数:6,代码来源:external-ports.php


注:本文中的sockets::DeleteCache方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。