Changeset 863 in ExiteCMS


Ignore:
Timestamp:
10/03/07 00:14:44 (4 years ago)
Author:
hverton
Message:

Added / changed the CMS init flag [ticket #15]
Removed obsolete theme_functions_include.php

Location:
trunk
Files:
1 added
1 deleted
36 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/forums_prune.php

    r834 r863  
    1313| the included gpl.txt file or visit http://gnu.org  | 
    1414+----------------------------------------------------*/ 
    15 if (eregi("forums_prune.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     15if (eregi("forums_prune.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1616 
    1717// temp storage for template variables 
  • trunk/administration/upgrade.php

    r855 r863  
    1313| the included gpl.txt file or visit http://gnu.org  | 
    1414+----------------------------------------------------*/ 
    15 if (!defined('ExiteCMS_INIT')) require_once dirname(__FILE__)."/../includes/core_functions.php"; 
     15if (!defined('CMS_INIT_OK')) require_once dirname(__FILE__)."/../includes/core_functions.php"; 
    1616 
    1717// make sure we have a valid revision level from the settings 
  • trunk/administration/upgrade/rev00700.php

    r855 r863  
    1717$_revision = 700; 
    1818 
    19 if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     19if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    2020 
    2121// make sure the required array's exist 
  • trunk/administration/upgrade/rev00730.php

    r855 r863  
    1414$_revision = 730; 
    1515 
    16 if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     16if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1717 
    1818// make sure the required array's exist 
  • trunk/administration/upgrade/rev00740.php

    r855 r863  
    1414$_revision = 740; 
    1515 
    16 if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     16if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1717 
    1818// make sure the required array's exist 
  • trunk/administration/upgrade/rev00760.php

    r855 r863  
    1414$_revision = 760; 
    1515 
    16 if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     16if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1717 
    1818// make sure the required array's exist 
  • trunk/administration/upgrade/rev00780.php

    r855 r863  
    1414$_revision = 780; 
    1515 
    16 if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     16if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1717 
    1818// make sure the required array's exist 
  • trunk/administration/upgrade/rev00800.php

    r855 r863  
    1414$_revision = 800; 
    1515 
    16 if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     16if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1717 
    1818// make sure the required array's exist 
  • trunk/administration/upgrade/rev00850.php

    r858 r863  
    1414$_revision = '850'; 
    1515 
    16 if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     16if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1717 
    1818// make sure the required array's exist 
  • trunk/administration/upgrade/rev00858.php

    r859 r863  
    1414$_revision = '858'; 
    1515 
    16 if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     16if (eregi("rev".substr("00000".$_revision,-5).".php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1717 
    1818// make sure the required array's exist 
  • trunk/includes/buildlist.php

    r834 r863  
    1111| the included gpl.txt file or visit http://gnu.org 
    1212+----------------------------------------------------*/ 
    13 if (!defined("ExiteCMS_INIT")) { header("Location: ../index.php"); exit; } 
     13if (!defined("INIT_CMS_OK")) { header("Location: ../index.php"); exit; } 
    1414 
    1515$image_files = array(); 
  • trunk/includes/class.httpdownload.php

    r834 r863  
    11<?php 
    2 if (!defined("ExiteCMS_INIT")) { exit; } 
     2if (!defined("INIT_CMS_OK")) { exit; } 
    33 
    44/*------------------ 
  • trunk/includes/comments_include.php

    r835 r863  
    1313| the included gpl.txt file or visit http://gnu.org  | 
    1414+----------------------------------------------------*/ 
    15 if (eregi("comments_include.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     15if (eregi("comments_include.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1616 
    1717// load the locale for this include 
  • trunk/includes/core_functions.php

    r861 r863  
    8484// mark that CMS Engine is properly initialized 
    8585define("INIT_CMS_OK", TRUE); 
    86 define("ExiteCMS_INIT", TRUE); 
    8786 
    8887// load the config file 
  • trunk/includes/db_functions.php

    r861 r863  
    1313| the included gpl.txt file or visit http://gnu.org  | 
    1414+----------------------------------------------------*/ 
    15 if (eregi("db_functions.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     15if (eregi("db_functions.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1616 
    1717// Establish mySQL database connection 
  • trunk/includes/font2image.php

    r847 r863  
    44    Original code by Stewart Rosenberger, http://www.stewartspeak.com/headings/ 
    55 
    6     Converted by WanWizard to work in a PHP-Fusion environment 
     6    Converted by WanWizard to work in am ExiteCMS environment 
    77 
    88    usage: $image_resource = font2image($f2i_array); 
     
    3737 
    3838*/ 
    39 if (!defined("ExiteCMS_INIT")) { header("Location: ../index.php"); exit; }  
     39if (!defined("INIT_CMS_OK")) { header("Location: ../index.php"); exit; }  
    4040 
    4141function font2image($font2image) { 
  • trunk/includes/forum_functions_include.php

    r845 r863  
    1313| the included gpl.txt file or visit http://gnu.org  | 
    1414+----------------------------------------------------*/ 
    15 if (eregi("forum_functions_include.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     15if (eregi("forum_functions_include.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1616 
    1717// add a poll vote to the database 
  • trunk/includes/geoip_include.php

    r834 r863  
    1010| the included gpl.txt file or visit http://gnu.org  | 
    1111+----------------------------------------------------*/ 
    12 if (eregi("geoip_include.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     12if (eregi("geoip_include.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1313 
    1414// initialize the result cache 
  • trunk/includes/menu_include.php

    r834 r863  
    1010| the included gpl.txt file or visit http://gnu.org  | 
    1111+----------------------------------------------------*/ 
    12 if (eregi("menu_include.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     12if (eregi("menu_include.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1313 
    1414/*---------------------------------------------------+ 
  • trunk/includes/photo_functions_include.php

    r834 r863  
    1313| the included gpl.txt file or visit http://gnu.org  | 
    1414+----------------------------------------------------*/ 
    15 if (eregi("photo_functions_include.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     15if (eregi("photo_functions_include.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1616 
    1717function createthumbnail($filetype, $origfile, $thumbfile, $new_w, $new_h) { 
  • trunk/includes/phpmailer_include.php

    r834 r863  
    11<?php 
    2 if (!defined("ExiteCMS_INIT")) { header("Location:../index.php"); exit; } 
     2if (!defined("INIT_CMS_OK")) { header("Location:../index.php"); exit; } 
    33//////////////////////////////////////////////////// 
    44// PHPMailer - PHP email class 
  • trunk/includes/ratings_include.php

    r835 r863  
    1313| the included gpl.txt file or visit http://gnu.org  | 
    1414+----------------------------------------------------*/ 
    15 if (eregi("ratings_include.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     15if (eregi("ratings_include.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1616 
    1717// load the locale for this include 
  • trunk/includes/sendmail_include.php

    r834 r863  
    1010| the included gpl.txt file or visit http://gnu.org 
    1111+----------------------------------------------------*/ 
    12 if (!defined("ExiteCMS_INIT")) { header("Location:../index.php"); exit; } 
     12if (!defined("INIT_CMS_OK")) { header("Location:../index.php"); exit; } 
    1313 
    1414function sendemail($toname,$toemail,$fromname,$fromemail,$subject,$message,$type="plain",$cc="",$bcc="") { 
  • trunk/includes/session_include.php

    r834 r863  
    1010| the included gpl.txt file or visit http://gnu.org 
    1111+----------------------------------------------------*/ 
    12 if (!defined("ExiteCMS_INIT")) { header("Location: ../index.php"); exit; } 
     12if (!defined("INIT_CMS_OK")) { header("Location: ../index.php"); exit; } 
    1313 
    1414function open_session($save_path,$session_name) { 
  • trunk/includes/smtp_include.php

    r834 r863  
    11<?php 
    2 if (!defined("ExiteCMS_INIT")) { header("Location:../index.php"); exit; } 
     2if (!defined("INIT_CMS_OK")) { header("Location:../index.php"); exit; } 
    33//////////////////////////////////////////////////// 
    44// SMTP - PHP SMTP class 
  • trunk/includes/theme_functions.php

    r861 r863  
    1313| the included gpl.txt file or visit http://gnu.org  | 
    1414+----------------------------------------------------*/ 
    15 if (eregi("theme_functions.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     15if (eregi("theme_functions.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1616 
    1717// load the Smarty template engine 
  • trunk/includes/user_functions.php

    r834 r863  
    1313| the included gpl.txt file or visit http://gnu.org  | 
    1414+----------------------------------------------------*/ 
    15 if (eregi("user_functions.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     15if (eregi("user_functions.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1616 
    1717// need to GeoIP functions to determine the users country of origin 
  • trunk/modules/main_menu_panel/main_menu_panel.php

    r834 r863  
    1010| the included gpl.txt file or visit http://gnu.org  | 
    1111+----------------------------------------------------*/ 
    12 if (eregi("main_menu_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     12if (eregi("main_menu_panel.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1313 
    1414// load the menu include 
  • trunk/modules/main_menu_panel/module_installer.php

    r838 r863  
    1212| the included gpl.txt file or visit http://gnu.org  | 
    1313+----------------------------------------------------*/ 
    14 if (!checkrights("I") || !defined("iAUTH") || $aid != iAUTH || !defined('ExiteCMS_INIT')) fallback(BASEDIR."index.php"); 
     14if (!checkrights("I") || !defined("iAUTH") || $aid != iAUTH || !defined('INIT_CMS_OK')) fallback(BASEDIR."index.php"); 
    1515 
    1616/*---------------------------------------------------+ 
  • trunk/modules/user_info_panel/module_installer.php

    r838 r863  
    1212| the included gpl.txt file or visit http://gnu.org  | 
    1313+----------------------------------------------------*/ 
    14 if (!checkrights("I") || !defined("iAUTH") || $aid != iAUTH || !defined('ExiteCMS_INIT')) fallback(BASEDIR."index.php"); 
     14if (!checkrights("I") || !defined("iAUTH") || $aid != iAUTH || !defined('INIT_CMS_OK')) fallback(BASEDIR."index.php"); 
    1515 
    1616/*---------------------------------------------------+ 
  • trunk/modules/user_info_panel/user_info_panel.php

    r834 r863  
    1313| the included gpl.txt file or visit http://gnu.org  | 
    1414+----------------------------------------------------*/ 
    15 if (eregi("user_info_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     15if (eregi("user_info_panel.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1616 
    1717// array's to store the variables for this panel 
  • trunk/modules/welcome_message_panel/module_installer.php

    r838 r863  
    1212| the included gpl.txt file or visit http://gnu.org  | 
    1313+----------------------------------------------------*/ 
    14 if (!checkrights("I") || !defined("iAUTH") || $aid != iAUTH || !defined('ExiteCMS_INIT')) fallback(BASEDIR."index.php"); 
     14if (!checkrights("I") || !defined("iAUTH") || $aid != iAUTH || !defined('INIT_CMS_OK')) fallback(BASEDIR."index.php"); 
    1515 
    1616/*---------------------------------------------------+ 
  • trunk/modules/welcome_message_panel/welcome_message_panel.php

    r834 r863  
    1010| the included gpl.txt file or visit http://gnu.org  | 
    1111+----------------------------------------------------*/ 
    12 if (eregi("welcome_message_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     12if (eregi("welcome_message_panel.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1313 
    1414// array's to store the variables for this panel 
  • trunk/setup.php

    r834 r863  
    8989 
    9090define("FUSION_SELF", isset($_SERVER['REDIRECT_URL']) && $_SERVER['REDIRECT_URL'] != "" ? basename($_SERVER['REDIRECT_URL']) : basename($_SERVER['PHP_SELF'])); 
    91 define('ExiteCMS_INIT', true);           
     91define('CMS_INIT_OK', true);             
    9292 
    9393// error tracking 
  • trunk/themes/PLiTheme/theme.php

    r861 r863  
    1010| the included gpl.txt file or visit http://gnu.org  | 
    1111+----------------------------------------------------*/ 
    12 if (eregi("theme.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     12if (eregi("theme.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1313 
    1414/*-----------------------------------------------------+ 
  • trunk/themes/PLiTheme/theme_functions.php

    r834 r863  
    1010| the included gpl.txt file or visit http://gnu.org  | 
    1111+----------------------------------------------------*/ 
    12 if (eregi("theme_functions.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
     12if (eregi("theme_functions.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    1313 
    1414// include the menu functions to create the header menu bar 
Note: See TracChangeset for help on using the changeset viewer.