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

PHP setTitle函数代码示例

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

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



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

示例1: setHead

function setHead($title = '', $extra = '', $charset = '')
{
    echo '<head>
    ' . setCharset() . '
    ' . setTitle($title) . '
    ' . setRss() . '
    <style type="text/css" media="all">
        @import "css/defaults.css";
        @import "css/messages.css";
    </style>
    <!-- Begin the rounding blurb and use RUZEE -->
    <script type="text/javascript" src="js/sb.js"></script>
    <script type="text/javascript">
            var border = RUZEE.ShadedBorder.create({ corner:10, shadow:16,  border:1 });
            var minicontainer = RUZEE.ShadedBorder.create({ corner:7, shadow:0,  border:1 });
    </script>';
    echo !empty($extra) ? "\t" . $extra . "\n" : "\n";
    echo "</head>\n";
    #[TODO] Create a good favicon <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
}
开发者ID:Apogeus,项目名称:apogeus,代码行数:20,代码来源:utils.php


示例2: array

             
     	    $validation = $validateRegister->check($_POST, array(
     	            'name' => array('required' => true),
     	            'password' => array('required' => true)
       				));
     */
     $_SESSION["error"] = login($user, $pass);
     header("Location: DTTadmin.php?a=admin");
 } else {
     if ($action == "admin") {
         if (!isset($_SESSION["name"])) {
             header("Location: DTTadmin.php?a=login");
         } else {
             //var_dump($_SESSION["name"]);
             $admin = file_get_contents("widgetAdmin.html");
             echo setTitle($template, "", $admin);
             require_once "adminArt.html";
             $query = $pdo->prepare("SELECT * FROM articleTable");
             $count = 0;
             if ($query->execute()) {
                 while ($row = $query->fetch()) {
                     $count += 1;
                     echo showTable($row, $count);
                 }
             }
             $link = '</table> <br/>' . $count . ' articles in total<br/><br/><a href = "article.php?a=admin&b=add">Add a New Article</a>';
             echo setFoot($link);
         }
     } else {
         if ($action == "logout") {
             logout();
开发者ID:SRferrero,项目名称:DTTtask,代码行数:30,代码来源:DTTadmin.php


示例3: pushKeywords

<?php

pushKeywords('web', 'tool', 'easy', 'simple');
loadModules('strings.php');
setTitle('Tools for the Compuationally Impaired');
开发者ID:BigDub,项目名称:soggypancakes,代码行数:5,代码来源:tools.php


示例4: redirect

<?php

require_once './common.php';
//检查漫游是否开启
if (!$_SITE_CONFIG['my_status']) {
    redirect(SITE_URL, 5, '抱歉:漫游已关闭。系统将在5秒后自动跳转至首页');
}
if (empty($_GET['id'])) {
    exit('请先选择应用');
}
$_GET['id'] = intval($_GET['id']);
$db_prefix = getDbPrefix();
$app = doQuery("SELECT * FROM {$db_prefix}myop_myapp WHERE `appid` = {$_GET['id']} LIMIT 1");
$app = $app[0];
setTitle($app['appname']);
//漫游
$my_appId = $_GET['id'];
$my_suffix = base64_decode(urldecode($_GET['my_suffix']));
$my_prefix = MYOP_URL . '/';
if (!$my_suffix) {
    header('Location: userapp.php?id=' . $my_appId . '&my_suffix=' . urlencode(base64_encode('/')));
    exit;
}
if (preg_match('/^\\//', $my_suffix)) {
    $url = 'http://apps.manyou.com/' . $my_appId . $my_suffix;
} else {
    if ($my_suffix) {
        $url = 'http://apps.manyou.com/' . $my_appId . '/' . $my_suffix;
    } else {
        $url = 'http://apps.manyou.com/' . $my_appId;
    }
开发者ID:laiello,项目名称:thinksns-2,代码行数:31,代码来源:userapp.php


示例5: getCDataTag

        echo getCDataTag(false);
        ?>
    </script>
  </head>
  <body onload="JavaScript:defaultOnload();">
    <?php 
        echo getTopFrame();
        ?>
    <?php 
        echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
        ?>
		<?php 
        echo getCloseBtn("filter_" . $_SESSION['language'] . ".php", "<convert>#label=371<convert>");
        ?>
		<div class="frame_title"><?php 
        echo setTitle("#", "filter", "<convert>#label=80<convert>", 2);
        ?>
</div><!--Erreur-->
		<div class="error"><?php 
        echo getTopBubble();
        ?>
<convert>#label=81<convert><!--Cas non traité !--><?php 
        echo getBotBubble();
        ?>
</div>
<?php 
        break;
}
?>
    <?php 
echo getBotFrame();
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:massif.php


示例6: sc_convert

    if (array_key_exists($_POST['from'], $options)) {
        $from = $_POST['from'];
    }
}
if (!isempty($_POST['to'])) {
    if (array_key_exists($_POST['to'], $options)) {
        $to = $_POST['to'];
    }
}
$input = null;
$output = null;
if (!isempty($_POST['input'])) {
    $input = $_POST['input'];
    $output = sc_convert($input, $from, $to);
}
setTitle('String Converter::' . $SP_TITLE);
include ROOT . '/header.php';
?>
<h1>String Converter</h1>
<h2><?php 
echo $options[$from] . ' to ' . $options[$to];
?>
</h2>
<span>The input needs to be the right length for a byte of each type:</span>
<ul>
<li>ASCII: 1 character long. It takes a lot of effort to mess this one up.</li>
<li>Hexadecimal: 2 characters long. e.x. "0f" instead of just "f"</li>
<li>Decimal: 3 characters long, do not exceed 255. e.x. "097" instead of just "97"</li>
<li>Binary: 8 characters long. e.x. "00000101" instead of just "101"</li>
</ul>
<span>If you are short any characters the conversion will become offset and the last byte will be ignored.</span>
开发者ID:BigDub,项目名称:soggypancakes,代码行数:31,代码来源:stringconvert.php


示例7: file_get_contents

<?php

require_once "DTTCore.php";
$template = file_get_contents("DTTHeader.html");
echo setTitle($template);
try {
    $query = $pdo->prepare("SELECT * FROM articleTable ORDER BY id DESC LIMIT 5");
    if ($query->execute()) {
        while ($row = $query->fetch()) {
            echo display($row);
        }
    }
} catch (Exception $e) {
    $pdo->rollBack();
    echo "Fail: " . $e->getMessage();
}
$query = null;
$pdo = null;
//Override link for footer.
$link = '<a href = "article.php?a=allStories">Article Archive</a>';
echo setFoot($link);
开发者ID:SRferrero,项目名称:DTTtask,代码行数:21,代码来源:index.php


示例8: setTitle

<?php

include_once 'base.php';
setTitle("로그인");
if (isset($_POST['id']) && isset($_POST['pw'])) {
    $result = login($_POST['id'], $_POST['pw']);
    if ($result[0][0] == 'success') {
        echo "string";
        $_SESSION['user_id'] = $result[1][0];
        $_SESSION['user_name'] = $result[1][1];
        $_SESSION['user_level'] = $result[1][2];
        echo "<meta http-equiv='refresh' content='0;url=todaysExercise.php'>";
    } else {
        // 존재하지 않는 아이디거나 비밀번호가 틀림
        echo '<script type="text/javascript">';
        echo 'alert("비밀번호가 틀렷거나 등록되지 않은 아이디 입니다.")';
        echo '</script>';
        $isLogin = false;
    }
} else {
    $isLogin = false;
}
startblock('content');
?>
       <h1 class="login_text">로그인</h1>
       <form action="login.php" method="post">
         <input class="input_id" type="text" name="id" value="" placeholder="id"/><br/>
         <input class="input_password" type="password" name="pw" value="" placeholder="pw"/>
         <input class="btn vtn-default login_button" type="submit" name="" value="login"/>
         <a href="register.php" class="join">회원가입</a>
       </form>
开发者ID:KeoSeong,项目名称:project,代码行数:31,代码来源:login.php


示例9: getBotMenu

            <select class="input1" style="width:100%" name="result" id="result" size="10" disabled="disabled" onclick="JavaScript:selectOnClick(event, this);"><!-- ondblclick="JavaScript:selectOnClick(event, this, event);"-->
              <option></option>
            </select>
          </td></tr></table>
          <input type="button" class="button1" id="advanced" name="advanced" style="visibility:hidden;display:none;" value="<convert>#label=310<convert>" onclick="JavaScript:advancedSearch();" /><!--Recherche avancée...-->
        </form>
        <?php 
    echo getBotMenu();
    ?>
      </div>
<?php 
}
?>
      <div class ="menu" id="help_menu">
        <?php 
echo getTopMenu('<div class="frame_title" style="margin-right:0px;">' . setTitle("#", "details", "<convert>#label=311<convert>", 1) . '</div><!--Aide &amp; contacts-->');
?>
        <ul>
          <li class ="sub_menu">
      	    <a href="contact_<?php 
echo $_SESSION['language'];
?>
.php?type=message" target="filter"><convert>#label=312<convert><!--Contacter votre administrateur/modérateur--></a>
      	  </li>

          <li class ="sub_menu">
            <?php 
$blogURL = "http://blog-" . strtolower($_SESSION['language']) . ".grottocenter.org";
if (!in_array(strtolower($_SESSION['language']), array("fr", "en"))) {
    $blogURL = "http://blog-en.grottocenter.org";
}
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:details.php


示例10: define

        $type = "Admin";
        break;
    case "Login":
        $type = "Login";
        break;
}
define("PAGETYPE", $type);
$GLOBALS["C"]["pagetype"] = $type;
inc("dom-manage");
switch ($type) {
    case "Admin":
        explode("/", $uri)[1];
        if ($uri == "") {
            $uri = "index.php";
        }
        if (file_exists(HERE . "admin" . DS . $uri)) {
            inc("admin" . DS . $uri);
        } else {
            inc("admin" . DS . "404");
        }
        break;
    case "Login":
        inc("pages" . DS . "login");
        break;
    case "none":
        setTitle(L("404", true));
        inc("404");
        break;
}
//Show the Page
echo $GLOBALS["C"]["doc"]->saveHTML();
开发者ID:ZeitZumSterben,项目名称:website-cms,代码行数:31,代码来源:boot.php


示例11: addcategory

function addcategory( $option ) {
	global $savantConf, $Itemid, $mtconf;
	
	$database	=& JFactory::getDBO();
	$my		=& JFactory::getUser();
	
	# Get cat_id / link_id
	$cat_id	= JRequest::getInt('cat_id', 0);
	$link_id	= JRequest::getInt('link_id', 0);

	if ( $cat_id == 0 && $link_id > 0 ) {
		$database->setQuery( "SELECT cl.cat_id FROM (#__mt_links AS l, #__mt_cl AS cl) WHERE l.link_id = cl.link_id AND cl.main = '1' AND link_id ='".$link_id."'" );
		$cat_parent = $database->loadResult();
	} else {
		$cat_parent = $cat_id;
	}

	$database->setQuery( "SELECT cat_name FROM #__mt_cats WHERE cat_id = '".$cat_parent."' LIMIT 1" );
	$cat_name = $database->loadResult();

	$title = JText::sprintf( 'Add cat2', $cat_name);
	setTitle($title);
	

	# Pathway
	$pathWay = new mtPathWay( $cat_parent );

	# Savant Template
	$savant = new Savant2($savantConf);
	assignCommonVar($savant);
	$savant->assign('pathway', $pathWay);
	$savant->assign('cat_parent', $cat_parent);

	if ( $mtconf->get('user_addcategory') == '1' && $my->id < 1 ) {
		# Error. Please login before you can add category
		$savant->assign('error_msg', JText::_( 'Please login before addcategory' ));
		$savant->display( 'page_error.tpl.php' );
	} elseif( $mtconf->get('user_addcategory') == '-1' ) {
		# Add category is disabled
		JError::raiseError(404, JText::_('Resource Not Found'));
	} else {
		# OK. User is allowed to add category
		$savant->display( 'page_addCategory.tpl.php' );
	}

}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:46,代码来源:mtree.php


示例12: getCDataTag

    }

    <?php 
echo getCDataTag(false);
?>
    </script>
  </head>
  <body onload="JavaScript:load();">
    <?php 
echo getTopFrame();
?>
    <?php 
echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
?>
    <div class="frame_title"><?php 
echo setTitle("home_" . $_SESSION['language'] . ".php", "home", "<convert>#label=600<convert>", 1);
?>
</div><!--Acceuil-->
    <table border="0" cellspacing="1" cellpadding="0" class="main_table">
      <tr><td>
        <!--<div>-->
        <?php 
include "home_description.php";
?>
        <!--<ul><li><?php 
//echo getAddThisButton($_SESSION['language'], 'grottocenter')
?>
</li></ul>-->
        <!--</div>-->
      </td></tr>
      <tr><td>
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:home.php


示例13: __construct

 public function __construct()
 {
     setTitle('专业虚拟主机提供商');
     parent::__construct();
 }
开发者ID:srdc2014,项目名称:vhms,代码行数:5,代码来源:public.ctl.php


示例14: header

                 //who expects the own admin injectin bad querys?
                 $query = $pdo->prepare("UPDATE articleTable SET title = '{$title}', sumary = '{$sumary}', article = '{$content}', publishdate = '{$date}' WHERE id = " . $id);
                 $query->execute();
                 header("Location: DTTadmin.php?a=admin");
             }
         }
     }
     break;
 case "edit":
     $id = $_GET["c"];
     //if not null also
     if ($id == null) {
         header("Location: DTTadmin.php?a=admin");
     } else {
         $admin = file_get_contents("widgetAdmin.html");
         echo setTitle($template, "Edit Article", $admin);
         $query = $pdo->prepare("SELECT * FROM articleTable WHERE id = :id");
         $query->execute(array('id' => $id));
         $row = $query->fetch();
         echo loadFormEdit($row);
         $link = '<a href = "article.php?a=admin&b=delete&c=' . $id . '">Delete This Article</a>';
         echo setFoot($link);
     }
     break;
 case "delete":
     $id = $_GET["c"];
     //if not null delete else go admin and dont play with urls
     if (!isset($id)) {
         header("Location: DTTadmin.php?a=admin");
     }
     $query = $pdo->prepare("DELETE FROM articleTable WHERE id = :id");
开发者ID:SRferrero,项目名称:DTTtask,代码行数:31,代码来源:article.php


示例15: getCDataTag

        echo getCDataTag(false);
        ?>
    </script>
  </head>
  <body onload="JavaScript:defaultOnload();">
    <?php 
        echo getTopFrame(false);
        ?>
    <?php 
        echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
        ?>
  	<?php 
        echo getCloseBtn("filter_" . $_SESSION['language'] . ".php", "<convert>#label=371<convert>");
        ?>
  	<div class="frame_title"><?php 
        echo setTitle("#", "popup", "<convert>#label=80<convert>", 1);
        ?>
</div>
  	<div class="error"><?php 
        echo getTopBubble();
        ?>
<convert>#label=81<convert><!--Cas non traité !--><?php 
        echo getBotBubble();
        ?>
</div>
<?php 
        break;
}
?>
    <?php 
if ($type != "topo" && $type != "author") {
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:request.php


示例16: intval

}
//站点地址
$uchUrl = MYOP_URL . '/cp.php?ac=userapp';
//manyou
$my_prefix = $_MY_GLOBAL['my_uchome_url'];
/* http://uchome.manyou.com */
if (empty($_GET['my_suffix'])) {
    $appId = intval($_GET['appid']);
    if ($appId) {
        // 应用简介
        $mode = $_GET['mode'];
        if ($mode == 'about') {
            setTitle('应用简介');
            $my_suffix = '/userapp/about?appId=' . $appId;
        } else {
            setTitle('隐私设置');
            $my_suffix = '/userapp/privacy?appId=' . $appId;
        }
    } else {
        // 管理应用
        $my_suffix = '/userapp/list';
    }
} else {
    // 添加应用 OR 删除应用
    $my_suffix = $_GET['my_suffix'];
}
$my_extra = isset($_GET['my_extra']) ? $_GET['my_extra'] : '';
$delimiter = strrpos($my_suffix, '?') ? '&' : '?';
$myUrl = $my_prefix . urldecode($my_suffix . $delimiter . 'my_extra=' . $my_extra);
// 本地列表
if ($my_suffix == '/userapp/list') {
开发者ID:armebayelm,项目名称:thinksns-vietnam,代码行数:31,代码来源:cp.php


示例17: countByCategory

          	<span class="filter_head"> (<?php 
    echo countByCategory("grotto");
    ?>
) <convert>#label=386<convert><!--Clubs--></span>
        	</label>
        	<div id="div|grotto" class="filter_div">
        	</div>
      	</div>
      </form>
    </div>
<?php 
    if (USER_IS_CONNECTED) {
        ?>
    <div class ="nearMe">
      <div class="frame_title" style="margin-right:0px;"><?php 
        echo setTitle("#", "filter_4", "<convert>#label=564<convert>", 1);
        ?>
</div><!--Options d'affichage-->
      <label for="new_markers" style="display:block;">
        <input type="checkbox" id="new_markers" name="new_markers" onclick="JavaScript:setFilterOptions(this);" /> <convert>#label=562<convert></span><!--Afficher uniquement les nouveautes-->
      </label>
      <label for="reviewed_markers" style="display:block;">
        <input type="checkbox" id="reviewed_markers" name="reviewed_markers" onclick="JavaScript:setFilterOptions(this);" /> <convert>#label=563<convert></span><!--Changements-->
      </label>
      <label for="connected_cavers" style="display:block;">
        <input type="checkbox" id="connected_cavers" name="connected_cavers" onclick="JavaScript:setFilterOptions(this);" /> <convert>#label=567<convert></span><!--Spéléologues connectés-->
      </label>
    </div>
<?php 
    }
}
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:filter.php


示例18: getProperties


//.........这里部分代码省略.........
            $listSQL .= "STD(ABS(IF(ISNULL(ca.Id)=1,eybis.Depth,ca.Depth))) AS Std_Depth, ";
            $listSQL .= "AVG(ABS(IF(ISNULL(ca.Id)=1,eybis.Length,ca.Length))) AS Avg_Length, ";
            $listSQL .= "STD(ABS(IF(ISNULL(ca.Id)=1,eybis.Length,ca.Length))) AS Std_Length ";
            $listSQL .= "FROM `" . $_SESSION['Application_host'] . "`.`T_entry` e ";
            $listSQL .= "INNER JOIN `" . $_SESSION['Application_host'] . "`.`T_single_entry` eybis ON e.Id = eybis.Id ";
            $listSQL .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`J_cave_entry` ce ON e.Id = ce.Id_entry ";
            $listSQL .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`T_cave` ca ON ca.Id = ce.Id_cave ";
            $listSQL .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`J_massif_cave` mc ON (mc.Id_cave = ce.Id_cave OR mc.Id_entry = e.Id) ";
            $listSQL .= "WHERE mc.Id_massif = " . $id . " ";
            $entriesStats = getDataFromSQL($listSQL, __FILE__, "function", __FUNCTION__);
        default:
            $sql = "SELECT cat.* ";
            $sql .= "FROM `" . $_SESSION['Application_host'] . "`.`T_" . $category . "` cat ";
            break;
    }
    $sql .= "WHERE cat.Id = " . $id . " ";
    if (!$isConnected && $category == "entry") {
        $sql .= "AND cat.Is_public = 'YES' ";
    }
    if ($category == "entry") {
        $sql .= "GROUP BY cat.Id ";
        $sql .= "ORDER BY MasName DESC ";
    }
    $data = getDataFromSQL($sql, __FILE__, $opener, __FUNCTION__);
    if ($data['Count'] > 0) {
        $is_public = $data[0]['Contact_is_public'];
        $is_shown = $category == "caver" && ($is_public == Contact_for_registered && $isConnected || $is_public == Contact_for_everybody) || $category != "caver";
        if ($addTitle) {
            if (isset($data[0]['Nickname'])) {
                $title_name = $data[0]['Nickname'];
            } else {
                $title_name = $data[0]['Name'];
            }
            $innerHTML .= getTopMenu(getCloseBtn("JavaScript:resetDetails();", "<convert>#label=371<convert>") . "<div class=\"frame_title\">" . setTitle("#", "details", "<convert>#label=440<convert> " . $title_name, 1) . "</div>");
            //A propos de
        }
        if ($is_shown) {
            $innerHTML .= getInnerLine($data[0]['Name'], $data[0]['Name'], "<convert>#label=199<convert> :");
            //Nom
        }
        $innerHTML .= getInnerLine($entriesList, $entriesList, "<convert>#label=384<convert> :");
        //Entrées :
        $innerHTML .= getInnerLine($entriesStats[0]['Nb'], $entriesStats[0]['Nb'], "<convert>#label=384<convert> :");
        //Entrées :
        $innerHTML .= getInnerLine($entriesStats[0]['Max_Depth'], round($entriesStats[0]['Max_Depth']), "<convert>#label=758<convert> :", "", "<convert>#label=268<convert>");
        //Prof. Max. ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Avg_Depth'], round($entriesStats[0]['Avg_Depth']), "<convert>#label=759<convert> :", "", "<convert>#label=268<convert>");
        //Prof. Moy. ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Std_Depth'], round($entriesStats[0]['Std_Depth']), "<convert>#label=760<convert> :", "", "<convert>#label=268<convert>");
        //E.Type Prof. ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Max_Length'], round($entriesStats[0]['Max_Length']), "<convert>#label=761<convert> :", "", "<convert>#label=268<convert>");
        //Dev. Max. ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Sum_Length'], round($entriesStats[0]['Sum_Length']), "<convert>#label=762<convert> :", "", "<convert>#label=268<convert>");
        //Dev. Total ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Avg_Length'], round($entriesStats[0]['Avg_Length']), "<convert>#label=763<convert> :", "", "<convert>#label=268<convert>");
        //Dev. Moy. ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Std_Length'], round($entriesStats[0]['Std_Length']), "<convert>#label=764<convert> :", "", "<convert>#label=268<convert>");
        //E.Type Dev. ://m
        if ($isConnected) {
            $innerHTML .= getInnerLine($data[0]['Locked'], convertYN($data[0]['Locked'], "<convert>#label=441<convert>", "<convert>#label=442<convert>"), "<convert>#label=443<convert> :");
            //Oui //Non //Est en cours de modification
            $innerHTML .= getInnerLine($data[0]['Is_public'], convertYN($data[0]['Is_public'], "<convert>#label=441<convert>", "<convert>#label=442<convert>"), "<convert>#label=444<convert> :");
            //Est publique
        }
        $innerHTML .= getInnerLine($data[0]['typeName'], $data[0]['typeName'], "<convert>#label=114<convert> :");
        //Type de sous-sol
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:67,代码来源:properties.php


示例19: foreach

foreach ($required_libraries as $library) {
    require_once root . "Resources/Library/{$library}.php";
}
crunch($_GET['app']);
System::Initialize();
$app_list = fsGetApplications();
$app_path = $app_list[System::Application()];
if (file_exists($app_path . 'Application.php')) {
    if (file_exists($app_path . 'Initialize.php')) {
        include $app_path . 'Initialize.php';
    }
    if (System::Authority()->verified) {
        if (file_exists($app_path . 'Info.php')) {
            include $app_path . 'Info.php';
            if (!is_null($application['name'])) {
                setTitle($application['name']);
            }
        }
        if (file_exists($app_path . 'Resources.php')) {
            include $app_path . 'Resources.php';
        }
        require_once $app_path . 'Application.php';
    } else {
        exLog('Authority->verified: false');
        error('Insufficent Privlidges', 'You do not have the required permission to view this page.');
    }
} else {
    exLog('Application Load Failed: ' . System::Application());
    error('Application Not Found', 'The requested application bundle was either not found, or invalid.');
}
add('<hr />');
开发者ID:axiixc,项目名称:elemental,代码行数:31,代码来源:Core.php


示例20: setTitle

<!DOCTYPE html>
<html lang="id">
	<?php 
include "head.php";
if (!isset($title)) {
    setTitle("Admin Area");
}
?>
	<body>
		<!--Start Header-->
		<?php 
include "topbar.php";
?>
		<!--End Header-->
		<!--Start Container-->
		<div id="main" class="container-fluid">
			<div class="row">
				<!--Start Sidebar-->
				<?php 
include "sidebar.php";
?>
				<!--End Sidebar-->
				<!--Start Content-->
				<div id="content" class="col-xs-12 col-sm-9 col-md-10">
					<br>
					<div id="ajax-content"></div>
				</div>
				<!--End Content-->
			</div>
		</div>
		<!--End Container-->
开发者ID:accan83,项目名称:Online-Printing,代码行数:31,代码来源:index_admin.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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