Disabled admin scripts in main/cron/ to avoid excess load

skala
Yannick Warnier 13 years ago
parent 0c66fb27e9
commit 845166729a
  1. 2
      main/cron/img/list_used_img.php
  2. 1
      main/cron/lang/langstats.php
  3. 2
      main/cron/lang/list_undefined_langvars.php
  4. 2
      main/cron/lang/list_unused_langvars.php
  5. 1
      main/cron/notification.php

@ -6,7 +6,7 @@
/**
* Includes and declarations
*/
//if (PHP_SAPI!='cli') { die('Run this script through the command line or comment this line in the code'); }
if (PHP_SAPI!='cli') { die('Run this script through the command line or comment this line in the code'); }
require_once '../../inc/global.inc.php';
$path = api_get_path(SYS_CODE_PATH).'img/';
ini_set('memory_limit','128M');

@ -9,6 +9,7 @@
/**
* Requires
*/
die();
require_once '../../inc/global.inc.php';
require_once 'langstats.class.php';
/**

@ -6,7 +6,7 @@
/**
* Includes and declarations
*/
//if (PHP_SAPI!='cli') { die('Run this script through the command line or comment this line in the code'); }
die();
require_once '../../inc/global.inc.php';
require_once api_get_path(SYS_CODE_PATH).'admin/sub_language.class.php';
$path = api_get_path(SYS_LANG_PATH).'english';

@ -6,7 +6,7 @@
/**
* Includes and declarations
*/
//if (PHP_SAPI!='cli') { die('Run this script through the command line or comment this line in the code'); }
die();
require_once '../../inc/global.inc.php';
require_once api_get_path(SYS_CODE_PATH).'admin/sub_language.class.php';
$path = api_get_path(SYS_LANG_PATH).'english';

@ -7,6 +7,7 @@
/**
* Initialization
*/
if (PHP_SAPI!='cli') { die('Run this script through the command line or comment this line in the code'); }
$language_file = array('userInfo');
require_once '../inc/global.inc.php';

Loading…
Cancel
Save