소스 검색

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

Mariusz Muszyński 8 년 전
부모
커밋
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, []);