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


PHP functions::error_alert_location方法代码示例

本文整理汇总了PHP中functions::error_alert_location方法的典型用法代码示例。如果您正苦于以下问题:PHP functions::error_alert_location方法的具体用法?PHP functions::error_alert_location怎么用?PHP functions::error_alert_location使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在functions的用法示例。


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

示例1: functions

<?php

include_once "functions.inc.php";
$functions = new functions();
if (isset($ad_password)) {
    $ad_password = $_POST['ad_password'];
}
$installed_file = @fopen("../upload/siteInformations/installed.info.txt", "r");
$installed_pass = @fread($installed_file, 1000);
@fclose($installed_file);
if ($functions->reinstallCheck() == FALSE && ($functions->file_permission("../include/") == FALSE || $functions->file_permission("../upload/sessionCookies/") == FALSE || $functions->file_permission("../upload/siteInformations/") == FALSE || $functions->file_permission("../upload/smartEditor/") == FALSE)) {
    $functions->error_alert_location("1단계가 진행되지 않았습니다.", "index.php");
}
if ($functions->reinstallCheck() == TRUE && ($functions->file_permission("../include/path.info.php") == FALSE || $functions->file_permission("../include/mysql.info.php") == FALSE)) {
    $functions->error_alert_location("재설치인 경우 include/path.info.php, include/mysql.info.php 퍼미션이 707이상으로 설정 되어야 합니다.", "index.php");
}
if ($functions->reinstallCheck() == TRUE && getenv("REQUEST_METHOD") == "GET") {
    $functions->error_alert_location("정상적으로 접근 바랍니다.", "index.php");
}
if ($functions->reinstallCheck() == TRUE && $ad_password != $installed_pass) {
    $functions->error_alert_location("관리자 비밀번호가 일치하지 않습니다.", "index.php");
}
@unlink("../include/path.info.php");
$file = @fopen("../include/path.info.php", "w");
@fwrite($file, "<?php\n    define(\"__DIR_PATH__\",\"" . str_replace('install/' . basename(__FILE__), '', str_replace("\\", "/", realpath(__FILE__))) . "\");\n    define(\"__URL_PATH__\",\"" . str_replace('install/' . basename(__FILE__), '', 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) . "\");\n?>");
@fclose($file);
@unlink("../include/engine.info.php");
$file = @fopen("../include/engine.inc.php", "w");
@fwrite($file, "<?php\n    header(\"Content-Type: text/html; charset=UTF-8\");\n    ini_set(\"display_errors\", 1);\n    ini_set(\"error_reporting\",\"E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE\");\n    include_once \"" . str_replace('install/' . basename(__FILE__), "", str_replace("\\", "/", realpath(__FILE__))) . "include/path.info.php\";\n    include_once __DIR_PATH__.\"include/session.info.php\";\n    include_once __DIR_PATH__.\"include/mysql.info.php\";\n    include_once __DIR_PATH__.\"include/mysql.class.php\";\n    include_once __DIR_PATH__.\"include/lib.class.php\";\n    include_once __DIR_PATH__.\"include/paging.class.php\";\n    include_once __DIR_PATH__.\"include/modeling.class.php\";\n    include_once __DIR_PATH__.\"include/mailSender.class.php\";\n    include_once __DIR_PATH__.\"include/fileUploader.class.php\";\n    include_once __DIR_PATH__.\"include/validator.class.php\";\n?>");
@fclose($file);
?>
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:step2.php

示例2: functions

<?php

include_once "functions.inc.php";
$functions = new functions();
if (getenv("REQUEST_METHOD") == "GET") {
    $functions->error_alert_location("정상적으로 접근 바랍니다.", "index.php");
}
@unlink("../include/mysql.info.php");
if ($functions->file_permission("../include/") == FALSE || $functions->file_permission("../upload/sessionCookies/") == FALSE || $functions->file_permission("../upload/siteInformations/") == FALSE || $functions->file_permission("../upload/smartEditor/") == FALSE) {
    $functions->error_alert_location("1단계가 진행되지 않았습니다.", "index.php");
}
if ($functions->file_check("../include/path.info.php") == FALSE) {
    $functions->error_alert_location("1단계가 진행되지 않았습니다.", "index.php");
}
$host = $_POST['host'];
$db = $_POST['db'];
$id = $_POST['id'];
$password = $_POST['password'];
$connect = @mysql_connect($host, $id, $password);
mysql_select_db($db, $connect);
if (mysql_query("select * from toony_member_list", $connect) && mysql_num_rows(mysql_query("select * from toony_member_list", $connect)) > 0) {
    $installedDB = TRUE;
    $insertAdminDB = TRUE;
} else {
    if (mysql_query("select * from toony_member_list", $connect) && mysql_num_rows(mysql_query("select * from toony_member_list", $connect)) < 1) {
        $installedDB = TRUE;
        $insertAdminDB = FALSE;
    } else {
        $installedDB = FALSE;
        $insertAdminDB = FALSE;
    }
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:step3.php

示例3: functions

<?php 
include_once "functions.inc.php";
$functions = new functions();
if ($functions->file_check("../include/mysql.info.php") == TRUE) {
    @(include "../include/engine.inc.php");
    $connect = @mysql_connect(__HOST__, __DB_USER__, __DB_PASS__);
    mysql_select_db(__DB_NAME__, $connect);
}
if ($functions->file_permission("../include/") == FALSE || $functions->file_permission("../upload/sessionCookies/") == FALSE || $functions->file_permission("../upload/siteInformations/") == FALSE || $functions->file_permission("../upload/smartEditor/") == FALSE) {
    $functions->error_alert_location("1단계가 진행되지 않았습니다.", "index.php");
}
if ($functions->file_check("../include/path.info.php") == FALSE) {
    $functions->error_alert_location("1단계가 진행되지 않았습니다.", "index.php");
}
if ($functions->file_check("../include/mysql.info.php") == FALSE) {
    $functions->error_alert_location("2단계가 진행되지 않았습니다.", "index.php");
}
if (!mysql_query("select * from toony_admin_siteconfig")) {
    $functions->error_alert_location("DB가 정상적으로 설치되지 않았습니다.", "step2.php");
} else {
    if (mysql_num_rows(mysql_query("select * from toony_member_list", $connect)) < 1 && !$_POST['id']) {
        $functions->error_alert_location("3단계가 진행되지 않았습니다.", "step3.php");
    }
}
$method = new methodController();
$method->method_param("POST", "id,password,password02,name");
if (getenv("REQUEST_METHOD") == "POST") {
    mb_internal_encoding('UTF-8');
    if (trim($id) == "") {
        $functions->error_alert_back("아이디를 입력해 주세요");
    }
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:step4.php


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