• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tmplSetTitleBar函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中tmplSetTitleBar函数的典型用法代码示例。如果您正苦于以下问题:PHP tmplSetTitleBar函数的具体用法?PHP tmplSetTitleBar怎么用?PHP tmplSetTitleBar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: tmplInitializeInstance

}
// init template-instance
tmplInitializeInstance($cfg["theme"], "page.viewnfo.tmpl");
// set vars
$tmpl->setvar('file', $file);
$folder = htmlspecialchars(substr($file, 0, strrpos($file, "/")));
$tmpl->setvar('folder', $folder);
if ($fileHandle = @fopen($path, 'r')) {
    $output = "";
    while (!@feof($fileHandle)) {
        $output .= @fgets($fileHandle, 4096);
    }
    @fclose($fileHandle);
} else {
    $output = "Error opening NFO File: " . $file;
}
if (empty($_REQUEST["dos"]) && empty($_REQUEST["win"]) || !empty($_REQUEST["dos"])) {
    $output = htmlentities($output, ENT_COMPAT, "cp866");
} else {
    $output = htmlentities($output);
}
if (utf8_needed()) {
    $output = utf8_encode($output);
}
$tmpl->setvar('output', $output);
//
tmplSetTitleBar($cfg["pagetitle"] . ' - View NFO');
tmplSetFoot();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:Ezerbeth,项目名称:torrentflux,代码行数:31,代码来源:viewnfo.php


示例2: tmplInitializeInstance

*******************************************************************************/
// prevent direct invocation
if (!isset($cfg['user']) || isset($_REQUEST['cfg'])) {
    @ob_end_clean();
    @header("location: ../../index.php");
    exit;
}
/******************************************************************************/
// common functions
require_once 'inc/functions/functions.common.php';
// transfer functions
require_once 'inc/functions/functions.transfer.php';
// init template-instance
tmplInitializeInstance($cfg["theme"], "page.transferDetails.tmpl");
// init transfer
transfer_init();
// init ch-instance
$ch = ClientHandler::getInstance(getTransferClient($transfer));
// load settings, default if settings could not be loaded (fresh transfer)
if ($ch->settingsLoad($transfer) !== true) {
    $ch->settingsDefault();
}
// set details vars
transfer_setDetailsVars();
// title + foot
tmplSetFoot(false);
tmplSetTitleBar($transferLabel . " - Details", false);
// iid
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:ThYpHo0n,项目名称:torrentflux,代码行数:31,代码来源:transferDetails.php


示例3: array

            $tmpl->setvar('_TOTAL', $cfg["_TOTAL"]);
            $tmpl->setvar('_SERVERXFERSTATS', $cfg['_SERVERXFERSTATS']);
            $tmpl->setvar('_USERDETAILS', $cfg['_USERDETAILS']);
            $tmpl->setvar('_USER', $cfg["_USER"]);
            $tmpl->setvar('_TOTALXFER', $cfg["_TOTALXFER"]);
            $tmpl->setvar('_MONTHXFER', $cfg["_MONTHXFER"]);
            $tmpl->setvar('_WEEKXFER', $cfg["_WEEKXFER"]);
            $tmpl->setvar('_DAYXFER', $cfg["_DAYXFER"]);
            $tmpl->setvar('_DOWNLOAD', $cfg['_DOWNLOAD']);
            $tmpl->setvar('_UPLOAD', $cfg['_UPLOAD']);
        }
        //
        $tmpl->setvar('table_admin_border', $cfg["table_admin_border"]);
        break;
        // default
    // default
    default:
        @error("Invalid Type", "index.php?iid=serverStats", "", array($type));
        break;
}
// set vars
$tmpl->setvar('type', $type);
// more vars
tmplSetTitleBar($cfg["pagetitle"] . ' - Server Stats');
tmplSetFoot();
$tmpl->setvar('enable_multiupload', $cfg["enable_multiupload"]);
$tmpl->setvar('_MULTIPLE_UPLOAD', $cfg['_MULTIPLE_UPLOAD']);
$tmpl->setvar('_ID_IMAGES', $cfg['_ID_IMAGES']);
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:serverStats.php


示例4: array_keys

        $hostAry = array_keys($transfer_hosts);
        foreach ($hostAry as $host) {
            $host = @trim($host);
            $port = @trim($transfer_hosts[$host]);
            if ($cfg["transferHosts"] == 1) {
                $host = @gethostbyaddr($host);
            }
            if ($host != "") {
                $tmpl->setvar('hosts', 1);
                array_push($list_host, array('host' => $host, 'port' => $port));
            }
        }
    }
}
$transfer_cons = sizeof($list_host);
$tmpl->setvar('hosts', sizeof($list_host) > 0 ? 1 : 0);
$tmpl->setvar('cons_hosts', $transfer_cons);
if ($transfer_cons > 0) {
    $tmpl->setvar('transfer_hosts_aval', 1);
    $tmpl->setvar('_ID_HOST', $cfg['_ID_HOST']);
    $tmpl->setvar('_ID_PORT', $cfg['_ID_PORT']);
    $tmpl->setloop('list_host', $list_host);
}
//refresh
//$tmpl->setvar('meta_refresh', '15;URL=index.php?iid=transferHosts&transfer='.$transfer);
// title + foot
tmplSetTitleBar($transferLabel . " - " . $cfg['_ID_HOSTS'], false);
tmplSetFoot(false);
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:Ezerbeth,项目名称:torrentflux,代码行数:31,代码来源:transferHosts.php


示例5: tmplInitializeInstance

if (!isset($cfg['user']) || isset($_REQUEST['cfg'])) {
    @ob_end_clean();
    @header("location: ../../../index.php");
    exit;
}
/******************************************************************************/
// init template-instance
tmplInitializeInstance($cfg["theme"], "page.admin.CreateUser.tmpl");
// set vars
$tmpl->setvar('enable_xfer', $cfg["enable_xfer"]);
//
$tmpl->setvar('_NEWUSER', $cfg['_NEWUSER']);
$tmpl->setvar('_USER', $cfg['_USER']);
$tmpl->setvar('_PASSWORD', $cfg['_PASSWORD']);
$tmpl->setvar('_CONFIRMPASSWORD', $cfg['_CONFIRMPASSWORD']);
$tmpl->setvar('_USERTYPE', $cfg['_USERTYPE']);
$tmpl->setvar('_NORMALUSER', $cfg['_NORMALUSER']);
$tmpl->setvar('_ADMINISTRATOR', $cfg['_ADMINISTRATOR']);
$tmpl->setvar('_CREATE', $cfg['_CREATE']);
$tmpl->setvar('_USERIDREQUIRED', $cfg['_USERIDREQUIRED']);
$tmpl->setvar('_PASSWORDLENGTH', $cfg['_PASSWORDLENGTH']);
$tmpl->setvar('_PASSWORDNOTMATCH', $cfg['_PASSWORDNOTMATCH']);
$tmpl->setvar('_PLEASECHECKFOLLOWING', $cfg['_PLEASECHECKFOLLOWING']);
//
tmplSetTitleBar("Administration - Create User");
tmplSetAdminMenu();
tmplSetUserSection();
tmplSetFoot();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:CreateUser.php


示例6: array

        $tmpCatLinks = '';
        $tmpLen = 0;
        $link_list = array();
        foreach ($sEngine->getMainCategories() as $mainId => $mainName) {
            array_push($link_list, array('searchEngine' => $searchEngine, 'mainId' => $mainId, 'mainName' => $mainName));
        }
        $tmpl->setloop('link_list', $link_list);
        $mainGenre = tfb_getRequestVar('mainGenre');
        $subCats = $sEngine->getSubCategories($mainGenre);
        if (empty($mainGenre) && array_key_exists("subGenre", $_REQUEST) || count($subCats) <= 0) {
            $tmpl->setvar('no_genre', 1);
            $tmpl->setvar('performSearch', array_key_exists("LATEST", $_REQUEST) && $_REQUEST["LATEST"] == "1" ? $sEngine->getLatest() : $sEngine->performSearch($searchterm));
        } else {
            $mainGenreName = $sEngine->GetMainCatName($mainGenre);
            $tmpl->setvar('mainGenreName', $mainGenreName);
            $list_cats = array();
            foreach ($subCats as $subId => $subName) {
                array_push($list_cats, array('subId' => $subId, 'subName' => $subName));
            }
            $tmpl->setloop('list_cats', $list_cats);
        }
    }
}
//
$tmpl->setvar('_SEARCH', $cfg['_SEARCH']);
//
tmplSetTitleBar("Torrent " . $cfg['_SEARCH']);
tmplSetFoot();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:torrentSearch.php


示例7: array

        $tmpl->setvar('no_inx', 0);
        $tmpl->setloop('message_list', $message_list);
    }
    $tmpl->setvar('_SENDMESSAGETO', $cfg['_SENDMESSAGETO']);
    $tmpl->setvar('_COMPOSE', $cfg['_COMPOSE']);
    $tmpl->setvar('_CHOOSEAUSER', $cfg['_CHOOSEAUSER']);
    $userList = array();
    for ($inx = 0; $inx < sizeof($cfg['users']); $inx++) {
        array_push($userList, array('user' => htmlentities($cfg['users'][$inx], ENT_QUOTES)));
    }
    $tmpl->setloop('messageList_user', $userList);
}
// set vars
$tmpl->setvar('date1', date($cfg['_DATETIMEFORMAT'], $time));
//
$tmpl->setvar('_FROM', $cfg['_FROM']);
$tmpl->setvar('_REPLY', $cfg['_REPLY']);
$tmpl->setvar('_DELETE', $cfg['_DELETE']);
$tmpl->setvar('_DATE', $cfg['_DATE']);
$tmpl->setvar('_ADMIN', $cfg['_ADMIN']);
$tmpl->setvar('_MESSAGE', $cfg['_MESSAGE']);
$tmpl->setvar('_INBOX', $cfg['_INBOX']);
$tmpl->setvar('_RETURNTOMESSAGES', $cfg['_RETURNTOMESSAGES']);
//
$tmpl->setvar('table_admin_border', $cfg["table_admin_border"]);
//
tmplSetTitleBar($cfg["pagetitle"] . ' - ' . $cfg['_MESSAGES']);
tmplSetFoot();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:Ezerbeth,项目名称:torrentflux,代码行数:31,代码来源:readmsg.php


示例8: checkUsername

$usernameCheck = checkUsername($newUser);
// check password
$passwordCheck = checkPassword($pass1, $pass2);
// new user ?
$newUser = strtolower($newUser);
if ($usernameCheck === true && $passwordCheck === true) {
    addNewUser($newUser, $pass1, $userType);
    AuditAction($cfg["constants"]["admin"], $cfg['_NEWUSER'] . ": " . $newUser);
    @header("location: admin.php?op=showUsers");
    exit;
}
// init template-instance
tmplInitializeInstance($cfg["theme"], "page.admin.addUser.tmpl");
// set vars
$tmpl->setvar('newUser', $newUser);
// error
// backward-compat-vars
$tmpl->setvar('_TRYDIFFERENTUSERID', $cfg['_TRYDIFFERENTUSERID']);
$tmpl->setvar('_HASBEENUSED', $cfg['_HASBEENUSED']);
// error-vars
$tmpl->setvar('errUsername', $usernameCheck !== true ? 1 : 0);
$tmpl->setvar('errMsgUsername', $usernameCheck !== true ? $usernameCheck : '');
$tmpl->setvar('errPassword', $passwordCheck !== true ? 1 : 0);
$tmpl->setvar('errMsgPassword', $passwordCheck !== true ? $passwordCheck : '');
//
tmplSetTitleBar("Administration - Add User");
tmplSetAdminMenu();
tmplSetFoot();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:addUser.php


示例9: str_replace

    $dirS = str_replace($cfg["path"], '', $dir);
    if (!(tfb_isValidPath($dir) && hasPermission($dirS, $cfg["user"], 'r'))) {
        AuditAction($cfg["constants"]["error"], "ILLEGAL SFV-ACCESS: " . $cfg["user"] . " tried to check " . $dirS);
        @error("Illegal access. Action has been logged.", "", "");
    }
}
if (!empty($file)) {
    $fileS = str_replace($cfg["path"], '', $file);
    if (!(tfb_isValidPath($file) && isValidEntry(basename($file)) && hasPermission($fileS, $cfg["user"], 'r'))) {
        AuditAction($cfg["constants"]["error"], "ILLEGAL SFV-ACCESS: " . $cfg["user"] . " tried to check " . $fileS);
        @error("Illegal access. Action has been logged.", "", "");
    }
}
// init template-instance
tmplInitializeInstance($cfg["theme"], "page.checkSFV.tmpl");
// process
$cmd = $cfg['bin_cksfv'] . ' -C ' . tfb_shellencode($dir) . ' -f ' . tfb_shellencode($file);
$handle = popen($cmd . ' 2>&1', 'r');
$buff = isset($cfg["debuglevel"]) && $cfg["debuglevel"] == 2 ? "<strong>Debug:</strong> Evaluating command:<br/><br/><pre>" . tfb_htmlencode($cmd) . "</pre><br/>Output follows below:<br/>" : "";
$buff .= "<pre>";
while (!feof($handle)) {
    $buff .= tfb_htmlencode(@fgets($handle, 30));
}
$tmpl->setvar('buff', $buff);
pclose($handle);
$buff .= "</pre>";
// set vars
tmplSetTitleBar($cfg["pagetitle"] . ' - checkSFV', false);
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:sulaweyo,项目名称:torrentflux-b4rt-php7,代码行数:31,代码来源:checkSFV.php


示例10: array

        $tmpl->setvar('is_file', 1);
        $tmpl->setvar('mainTitle', $sEngine->mainTitle);
        $tmpl->setvar('searchEngine', $searchEngine);
        $tmpl->setvar('mainURL', $sEngine->mainURL);
        $tmpl->setvar('author', $sEngine->author);
        $tmpl->setvar('version', $sEngine->version);
        if (strlen($sEngine->updateURL) > 0) {
            $tmpl->setvar('update_pos', 1);
            $tmpl->setvar('updateURL', $sEngine->updateURL);
        }
        if (!($sEngine->catFilterName == '')) {
            $tmpl->setvar('cat_pos', 1);
            $tmpl->setvar('catFilterName', $sEngine->catFilterName);
            $cats = array();
            foreach ($sEngine->getMainCategories(false) as $mainId => $mainName) {
                array_push($cats, array('mainId' => $mainId, 'in_array' => @in_array($mainId, $sEngine->catFilter) ? 1 : 0, 'mainName' => $mainName));
            }
            $tmpl->setloop('cats', $cats);
        }
    } else {
        $tmpl->setvar('is_file', 0);
    }
}
$tmpl->setloop('Engine_List', tmplSetSearchEngineDDL($searchEngine, true));
//
tmplSetTitleBar("Administration - Search Settings");
tmplSetAdminMenu();
tmplSetFoot();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:Ezerbeth,项目名称:torrentflux,代码行数:31,代码来源:searchSettings.php


示例11: tmplInitializeInstance

    @ob_end_clean();
    @header("location: ../../../index.php");
    exit;
}
/******************************************************************************/
// readrss functions
require_once 'inc/functions/functions.readrss.php';
// init template-instance
tmplInitializeInstance($cfg["theme"], "page.admin.editRSS.tmpl");
// set vars
$arLinks = GetRSSLinks();
$arRid = Array_Keys($arLinks);
$inx = 0;
$link_rss = array();
foreach ($arLinks as $link) {
    $rid = $arRid[$inx++];
    array_push($link_rss, array('true' => true, 'rid' => $rid, 'link' => $link));
}
$tmpl->setloop('link_rss', $link_rss);
$tmpl->setvar('enable_dereferrer', $cfg["enable_dereferrer"]);
//
$tmpl->setvar('_FULLURLLINK', $cfg['_FULLURLLINK']);
$tmpl->setvar('_UPDATE', $cfg['_UPDATE']);
$tmpl->setvar('_DELETE', $cfg['_DELETE']);
//
tmplSetTitleBar("Administration - RSS");
tmplSetAdminMenu();
tmplSetFoot();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:sulaweyo,项目名称:torrentflux-b4rt-php7,代码行数:31,代码来源:editRSS.php


示例12: tmplSetClientSelectForm

        $tmpl->setvar('enableBtclientChooser', $cfg["enable_btclient_chooser"]);
        if ($cfg["enable_btclient_chooser"] != 0) {
            tmplSetClientSelectForm($ch->client);
        } else {
            $tmpl->setvar('btclientDefault', $ch->client);
        }
    } else {
        $tmpl->setvar('enableClientChooser', 0);
    }
    // set vars
    transfer_setProfiledVars();
    // dirtree
    if ($cfg["supportMap"][$ch->client]['savepath'] == 1) {
        $tmpl->setvar('showdirtree', $cfg["showdirtree"]);
        if ($cfg["showdirtree"] == 1) {
            tmplSetDirTree($ch->savepath, $cfg["maxdepth"]);
        }
    } else {
        $tmpl->setvar('showdirtree', 0);
    }
    // send-box
    $tmpl->setvar('sendboxShow', $ch->type == "wget" ? 0 : 1);
    $tmpl->setvar('sendboxAttr', $ch->running == 1 ? "checked" : "disabled");
}
// title + foot
tmplSetFoot(false);
tmplSetTitleBar($transferLabel . " - Settings", false);
// iid
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:transferSettings.php


示例13: getTorrentDataSize

            }
        } else {
            $tmpl->setvar('showdirtree', 0);
        }
        // hash-check
        $tmpl->setvar('skip_hash_check_enabled', $cfg["supportMap"][$ch->client]['skip_hash_check']);
        if ($cfg["supportMap"][$ch->client]['skip_hash_check'] == 1) {
            $dsize = getTorrentDataSize($transfer);
            $tmpl->setvar('is_skip', $dsize > 0 && $dsize != 4096 ? $cfg["skiphashcheck"] : 0);
        } else {
            $tmpl->setvar('is_skip', 0);
        }
        // queue
        $tmpl->setvar('is_queue', FluxdQmgr::isRunning() ? 1 : 0);
        // break
        break;
    default:
        /* default */
        @error("Invalid pageop", "", "", array($pageop));
}
// title + foot
tmplSetFoot(false);
tmplSetTitleBar($transferLabel . " - Control", false);
// lang vars
$tmpl->setvar('_RUNTRANSFER', $cfg['_RUNTRANSFER']);
$tmpl->setvar('_STOPTRANSFER', $cfg['_STOPTRANSFER']);
$tmpl->setvar('_DELQUEUE', $cfg['_DELQUEUE']);
// iid
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:transferControl.php


示例14: AuditAction

}
/******************************************************************************/
// is enabled ?
if ($cfg["enable_multiupload"] != 1) {
    AuditAction($cfg["constants"]["error"], "ILLEGAL ACCESS: " . $cfg["user"] . " tried to use multiupload");
    @error("multiupload is disabled", "index.php?iid=index", "");
}
// init template-instance
tmplInitializeInstance($cfg["theme"], "page.multiup.tmpl");
// form
$row_list = array();
for ($j = 0; $j < $cfg["hack_multiupload_rows"]; ++$j) {
    array_push($row_list, array());
}
$tmpl->setloop('row_list', $row_list);
// queue
$tmpl->setvar('queueActive', FluxdQmgr::isRunning() ? 1 : 0);
//
$tmpl->setvar('file_types_label', $cfg['file_types_label']);
//
$tmpl->setvar('_UPLOAD', $cfg['_UPLOAD']);
$tmpl->setvar('_SELECTFILE', $cfg['_SELECTFILE']);
$tmpl->setvar('_ID_IMAGES', $cfg['_ID_IMAGES']);
$tmpl->setvar('_MULTIPLE_UPLOAD', $cfg['_MULTIPLE_UPLOAD']);
//
$tmpl->setvar('enable_multiupload', $cfg["enable_multiupload"]);
tmplSetTitleBar($cfg["pagetitle"] . ' - ' . $cfg['_MULTIPLE_UPLOAD']);
tmplSetFoot();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:ThYpHo0n,项目名称:torrentflux,代码行数:31,代码来源:multiup.php


示例15: tmplInitializeInstance

 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.

 To read the license please visit http://www.gnu.org/copyleft/gpl.html

*******************************************************************************/
// prevent direct invocation
if (!isset($cfg['user']) || isset($_REQUEST['cfg'])) {
    @ob_end_clean();
    @header("location: ../../index.php");
    exit;
}
/******************************************************************************/
// common functions
require_once 'inc/functions/functions.common.php';
// transfer functions
require_once 'inc/functions/functions.transfer.php';
// init template-instance
tmplInitializeInstance($cfg["theme"], "page.transferLog.tmpl");
// init transfer
transfer_init();
// log-content
$tmpl->setvar('transferLog', getTransferLog($transfer));
// title + foot
tmplSetFoot(false);
tmplSetTitleBar($transferLabel . " - Log", false);
// iid
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:sulaweyo,项目名称:torrentflux-b4rt-php7,代码行数:31,代码来源:transferLog.php


示例16: tmplSetSearchEngineDDL

$tmpl->setvar('drivespace', $cfg['driveSpace']);
$tmpl->setvar('freeSpaceFormatted', $cfg['freeSpaceFormatted']);
$tmpl->setvar('file_types_label', $cfg['file_types_label']);
$tmpl->setloop('Engine_List', tmplSetSearchEngineDDL($cfg["searchEngine"]));
//
$tmpl->setvar('_ABOUTTODELETE', $cfg['_ABOUTTODELETE']);
$tmpl->setvar('_SELECTFILE', $cfg['_SELECTFILE']);
$tmpl->setvar('_UPLOAD', $cfg['_UPLOAD']);
$tmpl->setvar('_MULTIPLE_UPLOAD', $cfg['_MULTIPLE_UPLOAD']);
$tmpl->setvar('_URLFILE', $cfg['_URLFILE']);
$tmpl->setvar('_GETFILE', $cfg['_GETFILE']);
$tmpl->setvar('_SEARCH', $cfg['_SEARCH']);
$tmpl->setvar('_LINKS', $cfg['_LINKS']);
$tmpl->setvar('_DOWNLOADSPEED', $cfg['_DOWNLOADSPEED']);
$tmpl->setvar('_UPLOADSPEED', $cfg['_UPLOADSPEED']);
$tmpl->setvar('_TOTALSPEED', $cfg['_TOTALSPEED']);
$tmpl->setvar('_ID_CONNECTIONS', $cfg['_ID_CONNECTIONS']);
$tmpl->setvar('_SERVERLOAD', $cfg['_SERVERLOAD']);
$tmpl->setvar('_ONLINE', $cfg['_ONLINE']);
$tmpl->setvar('_OFFLINE', $cfg['_OFFLINE']);
$tmpl->setvar('_ID_IMAGES', $cfg['_ID_IMAGES']);
$tmpl->setvar('_DIRECTORYLIST', $cfg['_DIRECTORYLIST']);
$tmpl->setvar('_DRIVESPACEUSED', $cfg['_DRIVESPACEUSED']);
$tmpl->setvar('_ADMINMESSAGE', $cfg['_ADMINMESSAGE']);
$tmpl->setvar('_DRIVESPACE', $cfg['_DRIVESPACE']);
//
tmplSetTitleBar($cfg["pagetitle"]);
tmplSetDriveSpaceBar();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:Ezerbeth,项目名称:torrentflux,代码行数:31,代码来源:index.php


示例17: array_push

        $is_edit = 1;
    } else {
        $is_edit = 0;
    }
    if ($inx > 1) {
        $counter = 2;
    }
    if ($inx == 1) {
        $counter = 1;
    }
    array_push($link_list, array('is_edit' => $is_edit, 'url' => $link['url'], 'sitename' => $link['sitename'], 'lid' => $lid, 'counter' => $counter, 'counter2' => $inx != count($arLinks) ? 1 : 0, 'last_link' => false));
}
// Set a tmpl var to indicate this is last link so we can format/align the last
// link correctly:
$link_list[count($link_list) - 1]['last_link'] = true;
$tmpl->setloop('link_list', $link_list);
$tmpl->setvar('enable_dereferrer', $cfg["enable_dereferrer"]);
//
$tmpl->setvar('_ADMINEDITLINKS', $cfg['_ADMINEDITLINKS']);
$tmpl->setvar('_FULLURLLINK', $cfg['_FULLURLLINK']);
$tmpl->setvar('_FULLSITENAME', $cfg['_FULLSITENAME']);
$tmpl->setvar('_UPDATE', $cfg['_UPDATE']);
$tmpl->setvar('_DELETE', $cfg['_DELETE']);
$tmpl->setvar('_EDIT', $cfg['_EDIT']);
//
tmplSetTitleBar($cfg['_ADMINEDITLINKS']);
tmplSetAdminMenu();
tmplSetFoot();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:Ezerbeth,项目名称:torrentflux,代码行数:31,代码来源:editLinks.php


示例18: addslashes

        if (get_magic_quotes_gpc() !== 1) {
            $targetDir = addslashes($targetDir);
        }
        // Use single quote to escape mv args:
        $cmd = "mv '" . $cfg["path"] . $file . "' '" . $targetDir . "'";
        $cmd .= ' 2>&1';
        $handle = popen($cmd, 'r');
        // get the output and print it.
        $gotError = -1;
        $buff = "";
        while (!feof($handle)) {
            $buff .= @fgets($handle, 30);
            $gotError = $gotError + 1;
        }
        $tmpl->setvar('messages', nl2br($buff));
        pclose($handle);
        if ($gotError <= 0) {
            $tmpl->setvar('got_no_error', 1);
            $tmpl->setvar('file', $file);
        } else {
            $tmpl->setvar('got_no_error', 0);
        }
    } else {
        $tmpl->setvar('is_valid', 1);
    }
}
//
tmplSetTitleBar($cfg["pagetitle"] . " - " . $cfg['_MOVE_FILE_TITLE'], false);
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:Ezerbeth,项目名称:torrentflux,代码行数:31,代码来源:move.php


示例19: count

    $sql = "SELECT count(*) FROM tf_users";
    $user_count = $db->GetOne($sql);
    if ($user_count == 0) {
        firstLogin($user, $iamhim);
        $next_loc = "admin.php?op=serverSettings";
    }
    // perform auth
    if (performAuthentication($user, $iamhim, $md5password) == 1) {
        @header("location: " . $next_loc);
        exit;
    } else {
        $tmpl->setvar('login_failed', 1);
        // reset the captcha if this was an auth types of 5 or 6.
        $bSetReCaptcha = $cfg["auth_type"] == 5 || $cfg["auth_type"] == 6;
    }
}
// Do we need to reset the captcha for this page?
if ($bSetReCaptcha) {
    // write recaptcha code
    $tmpl->setvar('recaptcha_html', recaptcha_get_html($cfg["recaptcha_public_key"], $error));
}
// defines
$tmpl->setvar('auth_type', $cfg["auth_type"]);
$tmpl->setvar('auth_type_cookie', $nAuthTypeCookie);
// 2009-05-12 tells template we are type 1 or 6.
tmplSetTitleBar($cfg["pagetitle"], false);
tmplSetFoot(false);
tmplSetIidVars();
$tmpl->setvar('iid', 'login');
// parse template
$tmpl->pparse();
开发者ID:Ezerbeth,项目名称:torrentflux,代码行数:31,代码来源:login.php


示例20: array

$tmpl->setvar('transferStatsType', $cfg["transferStatsType"]);
$tmpl->setvar('transferStatsUpdate', $cfg["transferStatsUpdate"]);
// themes
$theme_list = array();
$arThemes = GetThemes();
for ($inx = 0; $inx < sizeof($arThemes); $inx++) {
    array_push($theme_list, array('arThemes' => preg_replace('/_beta$/', ' (beta)', $arThemes[$inx]), 'arThemes2' => $arThemes[$inx], 'selected' => $cfg["default_theme"] == $arThemes[$inx] ? "selected=\"selected\"" : ""));
}
$tmpl->setloop('theme_list', $theme_list);
// tf standard themes
$tfstandard_theme_list = array();
$arThemes = GetThemesStandard();
for ($inx = 0; $inx < sizeof($arThemes); $inx++) {
    $arThemes2[$inx] = "tf_standard_themes/" . $arThemes[$inx];
    array_push($tfstandard_theme_list, array('arThemes' => $arThemes[$inx], 'arThemes2' => $arThemes2[$inx], 'selected' => $cfg["default_theme"] == $arThemes2[$inx] ? "selected=\"selected\"" : ""));
}
$tmpl->setloop('tfstandard_theme_list', $tfstandard_theme_list);
// languages
$lang_list = array();
$arLanguage = GetLanguages();
for ($inx = 0; $inx < sizeof($arLanguage); $inx++) {
    array_push($lang_list, array('arLanguage' => $arLanguage[$inx], 'selected' => $cfg["default_language"] == $arLanguage[$inx] ? "selected" : "", 'GetLanguageFromFile' => GetLanguageFromFile($arLanguage[$inx])));
}
$tmpl->setloop('lang_list', $lang_list);
//
tmplSetTitleBar("Administration - WebApp Settings");
tmplSetAdminMenu();
tmplSetFoot();
tmplSetIidVars();
// parse template
$tmpl->pparse();
开发者ID:sulaweyo,项目名称:torrentflux-b4rt-php7,代码行数:31,代码来源:webappSettings.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tmpl_iterate函数代码示例发布时间:2022-05-23
下一篇:
PHP tmplSetFoot函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap