当前位置: 首页>>代码示例>>PHP>>正文


PHP Admin::Refresh方法代码示例

本文整理汇总了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();
 }
开发者ID:tommmic,项目名称:inne,代码行数:17,代码来源:class-system.php

示例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';
开发者ID:tommmic,项目名称:inne,代码行数:31,代码来源:adm_newPage.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);
开发者ID:tommmic,项目名称:inne,代码行数:11,代码来源:logout.php

示例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);
}
开发者ID:tommmic,项目名称:inne,代码行数:13,代码来源:login.php

示例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);
开发者ID:tommmic,项目名称:inne,代码行数:31,代码来源:adm_editPage.php


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