Mariusz Muszyński 8 лет назад
Родитель
Сommit
cd4ef5a983
1 измененных файлов с 10 добавлено и 3 удалено
  1. 10 3
      SE/stuff/scripts/debian/install_functions_and_events.php

+ 10 - 3
SE/stuff/scripts/debian/install_functions_and_events.php

@@ -3,10 +3,17 @@
 error_reporting(E_ALL & ~E_NOTICE);
 $_SERVER['SERVER_NAME'] = gethostname();
 //require("/Library/Server/Web/Data/Sites/Default/dev-bzyk/se-lib/bootstrap.php");
-#require("/Library/Server/Web/Data/Sites/Default/SE/se-lib/bootstrap.php");
+require("/Library/Server/Web/Data/Sites/Default/SE/se-lib/bootstrap.php");
 date_default_timezone_set('Europe/Warsaw');
+require_once APP_PATH_ROOT . "/superedit-SEF.php";
+SEF('DEBUG_S');
+
+function die1($arg) {
+ echo "\n<br> ERROR!!! ".$arg." error ".mysql_error();
+ exit(1);
+}
 
 if (count($argv) != 2) die("Parameter error\n");
 if (!file_exists($file = $argv[1])) die("File not found\n");
-if (!($unserialzed = @unserialize(file_get_contents($file)))) die("Error while parsing file\n");
-DB::getDB()->STRUCTURE_GENERATE_PARSE($unserialize, []);
+if (!($unserialized = @unserialize(file_get_contents($file)))) die("Error while parsing file\n");
+DB::getDB()->STRUCTURE_GENERATE_PARSE($unserialized, []);