本文整理汇总了PHP中tmplSetTitleBar函数的典型用法代码示例。如果您正苦于以下问题:PHP tmplSetTitleBar函数的具体用法?PHP tmplSetTitleBar怎么用?PHP tmplSetTitleBar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tmplSetTitleBar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();