Просмотр исходного кода

Narzędzie do instalacji z „łapy” funkcji i eventów - potrzebne tymczasowo do debiana

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

+ 12 - 0
SE/stuff/scripts/debian/install_functions_and_events.php

@@ -0,0 +1,12 @@
+#!/usr/bin/env php
+<?php
+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");
+date_default_timezone_set('Europe/Warsaw');
+
+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, []);