本文整理汇总了PHP中Admin::Refresh方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin::Refresh方法的具体用法?PHP Admin::Refresh怎么用?PHP Admin::Refresh使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin
的用法示例。
在下文中一共展示了Admin::Refresh方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
if (!file_exists(dirname(__FILE__) . "/../config.php")) {
Admin::Refresh("./install/", 0);
}
$this->GlobalVariables();
$this->SystemInit();
$this->ClassLoader();
if (USING_EXTERN == 'true') {
$this->ExternLoader();
}
$lang = new Lang();
System::$systemCopyLogo = "<img src='" . WEBSITE_ADDRESS . "inneFooter.png' width='40' alt='inne cms' height='20'/> | <a href='" . WEBSITE_ADDRESS . "adm.php' target='_blank' class='btn btn-default btn-xs'><span class='glyphicon glyphicon-wrench'></span> " . Lang::$langData['titleAdministration'] . "</a>";
$this->ModuleLoader();
$this->TemplateLoader();
$this->SendPageDataToTemp();
}
示例2: mysqli_fetch_array
$query = $database->Query("SELECT * FROM " . TABLE_PREFIX . "pages WHERE pageParent='{$pageId}' ORDER BY pagePosition DESC;");
$data = mysqli_fetch_array($query);
$pagePosition = $data["pagePosition"];
$pageMenu = new Page();
$pageMenu->pageParent = $pageId;
$pageMenu->pageType = $pageType;
$pageMenu->pageShow = "1";
$pageMenu->pageTemp = "text_master";
$pageMenu->pageTitle = $pageTitle;
$pageMenu->pagePosition = intval($pagePosition) + 1;
$pageMenu->NewPage();
$pageParent = new Page();
$pageParent->GetInfo($pageId);
$query = $database->Query("SELECT * FROM " . TABLE_PREFIX . "pages ORDER BY pageId DESC;");
$data = mysqli_fetch_array($query);
$parentPageId = $data["pageId"];
$pageContent = $database->handler->real_escape_string($_POST["newPageContent"]);
$pageTextMaster = new MPage();
$pageTextMaster->NewPage($parentPageId, $pageContent);
if ($database->Query("SELECT * FROM " . TABLE_PREFIX . "modules WHERE moduleName='simpleRoutes' AND moduleStatus='1';")->num_rows) {
require_once ABS_PATH . '/modules/simpleRoutes/src/class/class-route.php';
$route = new Route();
if ($pageMenu->pageParent == 0) {
$route->SaveNewRoute("/" . webUriTitle($pageTitle), "p=" . $parentPageId, "");
} else {
$route->SaveNewRoute("/" . webUriTitle($pageParent->pageTitle) . "/" . webUriTitle($pageTitle), "p=" . $parentPageId, "");
}
}
Admin::Refresh("?page=viewPages", "0");
}
require_once dirname(__FILE__) . '/tinymce/tiny_mce.php';
示例3: defined
<?php
/*
* @author: Tomáš Mičulka
* @version: 2.0
* @last_update: 22.4.2014
*/
defined('IN_INNE') or die("Acces denied!");
$user = User::getInstance();
$user->Logout();
Admin::Refresh("./adm.php", 0);
示例4: defined
<?php
/*
* @author: Tomáš Mičulka
* @version: 2.0
* @last_update: 22.4.2014
*/
defined('IN_INNE') or die("Acces denied!");
if (isset(InneAdm::$postData['login'])) {
$user = new User();
$user->Login(InneAdm::$postData['nick'], InneAdm::$postData['password']);
Admin::Refresh("?token={$user->userToken}", 0);
}
示例5: Page
$page_update = new Page();
$page_update->GetInfo($pageId);
$page_update->pageTitle = $galleryName;
$page_update->UpdatePage();
$gallery_update = new MGallery();
$gallery_update->getInfo($pageId);
$gallery_update->name = $galleryName;
$gallery_update->description = $galleryDescription;
$gallery_update->save();
}
if ($_FILES["fileToUpload"]["tmp_name"] != "") {
$newGallery = new MGallery();
$newGallery->getInfo($pageId);
$newImage = new MGPicture($newGallery);
$newImage->save($_FILES["fileToUpload"]);
Admin::Refresh("", "0");
}
if (isset($_POST["send"])) {
$imageId = $database->handler->real_escape_string($_POST["imageId"]);
$imageName = $database->handler->real_escape_string($_POST["image_name"]);
$imageDescription = $database->handler->real_escape_string($_POST["image_description"]);
$image = new MGPicture();
$image->getInfo($imageId);
$image->name = $imageName;
$image->description = $imageDescription;
$image->save();
}
$page = new Page();
$page->GetInfo($pageId);
$gallery = new MGallery();
$gallery->getInfo($pageId);