本文整理汇总了PHP中SE_Language::info方法的典型用法代码示例。如果您正苦于以下问题:PHP SE_Language::info方法的具体用法?PHP SE_Language::info怎么用?PHP SE_Language::info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SE_Language
的用法示例。
在下文中一共展示了SE_Language::info方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
if ($page != "admin_login" && $page != "admin_lostpass" && $page != "admin_lostpass_reset" && $admin->admin_exists == 0) {
header("Location: admin_login.php");
exit;
}
// SET UP LANGUAGE VARIABLES
if (!empty($_GET['lang_id']) && $admin->admin_exists) {
$admin->admin_info['admin_language_id'] = (int) $_GET['lang_id'];
$database->database_query("UPDATE se_admins SET admin_language_id='{$admin->admin_info['admin_language_id']}' WHERE admin_id='{$admin->admin_info['admin_id']}' LIMIT 1");
}
// SET UP LANGUAGE VARIABLES
SE_Language::select($admin);
if (SE_Language::info('language_setlocale')) {
$multi_language = 1;
setlocale(LC_TIME, SE_Language::info('language_setlocale'));
}
header("Content-Language: " . SE_Language::info('language_code'));
// GET PLUGIN USER LEVEL MENU OPTIONS AND INCLUDE PLUGIN PAGES
$global_plugins = array();
$level_menu = array();
$plugins = $database->database_query("SELECT * FROM se_plugins WHERE plugin_disabled=0 ORDER BY plugin_order ASC");
while ($plugin_info = $database->database_fetch_assoc($plugins)) {
$plugin_vars = array();
if (file_exists("admin_header_{$plugin_info['plugin_type']}.php")) {
include "admin_header_{$plugin_info['plugin_type']}.php";
}
// Set the hooks for each of the plugin templates if not using the new hooked template includes (backwards compatibility)
if (empty($plugin_vars['uses_tpl_hooks'])) {
if (file_exists(SE_ROOT . "/templates/admin_header_{$plugin_info['plugin_type']}.tpl")) {
$smarty->assign_hook('admin_header', "admin_header_{$plugin_info['plugin_type']}.tpl");
}
}
示例2: while
}
// SET RESULT VARIABLE
$result = 0;
// SAVE RESULTS
if ($task == "dosave") {
$setting[setting_actions_showlength] = $_POST['setting_actions_showlength'];
$setting[setting_actions_actionsperuser] = $_POST['setting_actions_actionsperuser'];
$setting[setting_actions_selfdelete] = $_POST['setting_actions_selfdelete'];
$setting[setting_actions_privacy] = $_POST['setting_actions_privacy'];
$setting[setting_actions_visibility] = $_POST['setting_actions_visibility'];
$setting[setting_actions_preference] = $_POST['setting_actions_preference'];
$setting[setting_actions_actionsonprofile] = $_POST['setting_actions_actionsonprofile'];
$setting[setting_actions_actionsinlist] = $_POST['setting_actions_actionsinlist'];
$setting[setting_actions_privacy] = $_POST['setting_actions_privacy'];
// GET ACTION TYPES
$current_language = SE_Language::info("language_id");
$actiontype_text = $_POST['actiontype_text'];
$actiontype_enabled = $_POST['actiontype_enabled'];
$actiontype_setting = $_POST['actiontype_setting'];
$actiontypes = $database->database_query("SELECT * FROM se_actiontypes ORDER BY actiontype_id ASC");
while ($actiontype = $database->database_fetch_assoc($actiontypes)) {
$text = htmlspecialchars_decode($actiontype_text[$actiontype[actiontype_id]], ENT_QUOTES);
$database->database_query("UPDATE se_actiontypes SET actiontype_enabled='" . $actiontype_enabled[$actiontype[actiontype_id]] . "', actiontype_setting='" . $actiontype_setting[$actiontype[actiontype_id]] . "' WHERE actiontype_id='{$actiontype['actiontype_id']}'");
$vars = explode(",", $actiontype[actiontype_vars]);
for ($i = 0; $i < count($vars); $i++) {
$text = str_replace($vars[$i], "%" . ($i + 1) . "\$s", $text);
}
SE_Language::edit($actiontype[actiontype_text], $text);
}
// SAVE SETTINGS
$database->database_query("UPDATE se_settings SET setting_actions_showlength='{$setting['setting_actions_showlength']}', \r\n\t\t\t\t\t\t setting_actions_actionsperuser='{$setting['setting_actions_actionsperuser']}', \r\n\t\t\t\t\t\t setting_actions_selfdelete='{$setting['setting_actions_selfdelete']}', \r\n\t\t\t\t\t\t setting_actions_privacy='{$setting['setting_actions_privacy']}', \r\n\t\t\t\t\t\t setting_actions_visibility='{$setting['setting_actions_visibility']}', \r\n\t\t\t\t\t\t setting_actions_preference='{$setting['setting_actions_preference']}', \r\n\t\t\t\t\t\t setting_actions_actionsonprofile='{$setting['setting_actions_actionsonprofile']}',\r\n\t\t\t\t\t\t setting_actions_actionsinlist='{$setting['setting_actions_actionsinlist']}'");