Пример #1
0
 function __construct()
 {
     //! check if executed from CLI
     if (Core::$client->ip != "CLI") {
         Http::redirect("403");
     }
     //! convert source to deployment format
     Repository::compress();
     //! update document
     Repository::updateDoc();
 }
Пример #2
0
 function __construct()
 {
     //! check if executed from CLI
     if (\PHPPE\Core::$client->ip != "CLI") {
         die(L("Run from command line") . "\n");
     }
     //! convert source to deployment format
     \PHPPE\Repository::compress();
     //! update document
     \PHPPE\Repository::updateDoc();
     die;
 }