本文整理汇总了PHP中Lobby::head方法的典型用法代码示例。如果您正苦于以下问题:PHP Lobby::head方法的具体用法?PHP Lobby::head怎么用?PHP Lobby::head使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lobby
的用法示例。
在下文中一共展示了Lobby::head方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ser
<?php
require "../load.php";
?>
<!DOCTYPE html>
<html>
<head>
<?php
\Lobby::doHook("admin.head.begin");
\Lobby::head("Install App");
//~
?>
</head>
<body>
<?php
\Lobby::doHook("admin.body.begin");
?>
<div class="workspace">
<div class="contents">
<?php
if (H::input("id") == null) {
ser("Error", "No App is mentioned. Install Apps from <a href='lobby-store.php'>Lobby Store</a>");
}
if (H::input("action") == "enable" && H::csrf()) {
$App = new \Lobby\Apps($_GET['id']);
if (!$App->exists) {
ser("Error", "App is not installed");
}
$App->enableApp();
sss("Enabled", "The App <b>{$_GET['id']}</b> is enabled. The author says thanks.<a href='" . $App->info['URL'] . "' class='button green'>Open App</a>");
}
示例2: getOption
<?php
include "../load.php";
?>
<html>
<head>
<?php
\Lobby::doHook("admin.head.begin");
\Lobby::head("Lobby Info");
?>
</head>
<body>
<?php
\Lobby::doHook("admin.body.begin");
include "{$docRoot}/admin/sidebar.php";
?>
<div class="workspace">
<div class="content">
<?php
if (isset($_GET['updated']) && H::csrf()) {
sss("Updated", "Lobby was successfully updated to Version <b>" . getOption("lobby_version") . "</b> from the old " . htmlspecialchars($_GET['oldver']) . " version.");
}
?>
<h1>About</h1>
<p>Here is the information about your Lobby install.</p>
<table border="1" style="margin-top:5px">
<tbody>
<tr>
<td>Version</td>
<td><?php
echo getOption("lobby_version");
示例3: ser
<?php
include "../load.php";
?>
<html>
<head>
<?php
\Lobby::doHook("admin.head.begin");
\Lobby::head("App Manager");
?>
</head>
<body>
<?php
\Lobby::doHook("admin.body.begin");
include "{$docRoot}/admin/sidebar.php";
?>
<div class="workspace">
<div class="content">
<h1>Apps</h1>
<p>Disable or Remove installed apps. You can find and install more Apps from <a href="<?php
echo L_URL;
?>
/admin/lobby-store.php">Lobby Store</a>.</p>
<?php
if (isset($_GET['action']) && isset($_GET['app']) && H::csrf()) {
$action = $_GET['action'];
$app = $_GET['app'];
$App = new \Lobby\Apps($app);
if (!$App->exists) {
ser("Error", "I checked all over, but App does not Exist");
}
示例4: sss
<?php
include "../load.php";
require L_DIR . "/includes/src/Install.php";
?>
<!DOCTYPE html>
<html>
<head>
<?php
\Lobby::head("Install");
?>
</head>
<body class="workspace">
<div class="contents">
<h1 style="margin-bottom: 32px;text-align: center;">
<?php
echo \Lobby::l(L_URL, "Install Lobby");
?>
</h1>
<?php
if (\Lobby::$installed && H::input("step") != 3) {
sss("<a href='" . L_URL . "'>Lobby Installed</a>", "Lobby Is Installed. If you want to reinstall, delete the database tables and remove <b>config.php</b> file.<cl/>If you want to just remake the <b>config.php</b> file, don't delete the database tables, delete the existing <b>config.php</b> file and do " . \Lobby::l("/admin/install.php?step=1", "this installation") . " until Step 3 where \"Database Tables Exist\" error occur");
} elseif (!isset($_GET['step'])) {
?>
<p>Welcome to the Lobby Installation process. Thank you for downloading Lobby.</p>
<p>For further help, see our <a target='_blank' href='http://lobby.subinsb.com/docs/quick'>documentation</a>.</p>
<p>To Start Installation, click the Install button</p>
<center clear>
<a href="?step=1<?php
echo H::csrf("g");
?>
示例5:
<html>
<head>
<?php
\Lobby::head("Change Password");
?>
</head>
<body>
<?php
\Lobby::doHook("admin.body.begin");
?>
<div class="workspace">
<div class="contents">
<h2>Change Password</h2>
<?php
if (isset($_POST['change_password'])) {
if (isset($_POST['current_password']) && $_POST['current_password'] != "" && isset($_POST['new_password']) && $_POST['new_password'] != "" && isset($_POST['retype_password']) && $_POST['retype_password'] != "" && isset($_POST['current_password']) && $_POST['current_password'] != "") {
$curpass = $_POST['current_password'];
$new_password = $_POST['new_password'];
$retype_password = $_POST['retype_password'];
if ($new_password != $retype_password) {
echo "<p><h2>Passwords Doesn't match</h2><p>The passwords you entered didn't match. Try again.</p></p>";
} else {
$change_password = \Fr\LS::changePassword($curpass, $new_password);
if ($change_password === true) {
echo "<h2>Password Changed Successfully</h2>";
}
}
} else {
echo "<p><h2>Password Fields was blank</h2><p>Form fields were left blank</p></p>";
}
}
示例6: foreach
<?php
include "../load.php";
require L_DIR . "/includes/src/Update.php";
?>
<!DOCTYPE html>
<html>
<head>
<?php
\Lobby::doHook("admin.head.begin");
\Lobby::head("Update");
?>
</head>
<body>
<?php
\Lobby::doHook("admin.body.begin");
include "{$docRoot}/admin/sidebar.php";
?>
<div class="workspace">
<div class="content">
<h1>Update</h1>
<a class='button' href='check-updates.php'>Check For New Releases</a>
<?php
$AppUpdates = json_decode(getOption("app_updates"), true);
if (\H::input("action", "POST") == "updateApps" && H::csrf()) {
foreach ($AppUpdates as $appID => $neverMindThisVariable) {
if (isset($_POST[$appID])) {
echo '<iframe src="' . L_URL . "/admin/download.php?type=app&id={$appID}" . H::csrf("g") . '" style="border: 0;width: 100%;height: 200px;"></iframe>';
unset($AppUpdates[$appID]);
}
}
示例7: array
if ($login === false) {
$error = array("Username / Password Wrong", "The username or password you submitted was wrong.");
} else {
if (is_array($login) && $login['status'] == "blocked") {
$error = array("Account Blocked", "Too many login attempts. You can attempt login again after " . $login['minutes'] . " minutes (" . $login['seconds'] . " seconds)");
} else {
\Lobby::redirect("/admin");
}
}
}
}
?>
<html>
<head>
<?php
\Lobby::head("Admin Login");
?>
</head>
<body>
<?php
\Lobby::doHook("admin.body.begin");
?>
<div class="workspace">
<div class="contents">
<h2>Log In</h2>
<form method="POST" action="<?php
echo \Lobby::u("/admin/login");
?>
">
<label clear>
<span clear>Username</span>
示例8: array
*/
\Lobby::addStyle("home", "/includes/lib/core/CSS/font.css");
\Lobby::addStyle("main", "/includes/lib/core/CSS/main.css");
/**
* Some checking to make sure Lobby works fine
*/
if (!is_writable(L_DIR) || !is_writable(APPS_DIR)) {
$GLOBALS['initError'] = array("Wrong Permissions", "The permission of Lobby is not correct. All you have to do is change the permission of <blockquote>" . L_DIR . "</blockquote>to read and write (0775).");
if (\Lobby::$sysinfo['os'] == "linux") {
$GLOBALS['initError'][1] = $GLOBALS['initError'][1] . "<p clear>On Linux systems, do this in terminal : <blockquote>sudo chown \${USER}:www-data " . L_DIR . " -R && sudo chmod 0775 " . L_DIR . " -R</blockquote></p>";
}
}
if (isset($GLOBALS['initError'])) {
echo "<html><head>";
\Lobby::$js = array();
\Lobby::head();
echo "</head><body><div class='workspace'><div class='contents'>";
ser($GLOBALS['initError'][0], $GLOBALS['initError'][1]);
echo "</div></div></body></html>";
exit;
}
\Lobby::curPage(true);
/**
* Add the <head> files if it's not the install page
*/
if (\Lobby::curPage() != "/admin/install.php") {
/**
* Styles
*/
\Lobby::addStyle("jqueryui", "/includes/lib/jquery/jquery-ui.css");
// jQuery UI
示例9: header
<?php
include "../load.php";
header('Content-type: text/html; charset=utf-8');
?>
<html>
<head>
<?php
\Lobby::addStyle("lobby-store", "/includes/lib/core/CSS/lobby-store.css");
\Lobby::head("Lobby Store");
?>
</head>
<body>
<?php
\Lobby::doHook("admin.body.begin");
include "{$docRoot}/admin/sidebar.php";
?>
<div class="workspace">
<div class="content">
<?php
if (isset($_GET['id']) && $_GET['id'] != "") {
$app = \Lobby\Server::Store(array("get" => "app", "id" => $_GET['id']));
if ($app == "false") {
ser("404 - App Not Found", "App was not found in Lobby Store.");
} else {
$appImage = $app['image'] != "" ? $app['image'] : L_URL . "/includes/lib/core/Img/blank.png";
$c = $app['category'];
$sc = $app['sub_category'];
?>
<h1><?php
echo "<a href='" . L_SERVER . "/../apps/{$app['id']}' target='_blank'>{$app['name']}</a>";
示例10: ser
<?php
include "../load.php";
?>
<html>
<head>
<?php
\Lobby::doHook("admin.head.begin");
\Lobby::head("Modules");
?>
</head>
<body>
<?php
\Lobby::doHook("admin.body.begin");
include "{$docRoot}/admin/sidebar.php";
?>
<div class="workspace">
<div class="content">
<h1>Modules</h1>
<p>Modules extend the functionality of Lobby. This page shows the modules that are installed in Lobby.<a clear target="_blank" href="<?php
echo L_SERVER;
?>
/../mods">Read more about Modules</a></p>
<?php
$core_modules = \Lobby\Modules::get("core");
$custom_modules = \Lobby\Modules::get("custom");
$app_modules = \Lobby\Modules::get("app");
echo "<h2>Custom Modules</h2>";
if (count($custom_modules) == 0) {
ser("No Custom Modules", "No custom modules are enabled or installed", false);
} else {