-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-php5-project.php
More file actions
executable file
·45 lines (38 loc) · 962 Bytes
/
update-php5-project.php
File metadata and controls
executable file
·45 lines (38 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env php
<?php
require_once __DIR__ . '/xmlnuke-php5/src/Xmlnuke/Util/CreatePhp5Project.php';
use Xmlnuke\Util\CreatePhp5Project;
if (PHP_SAPI == 'cli')
{
echo "\n";
echo "============================\n";
echo "XMLNuke PHP5 Project Updater\n";
echo "By JG @ 2014\n";
echo "============================\n";
echo "\n";
if ($argc < 2)
{
echo "Use this script to update and existing XMLNuke PHP5 project with the essentials XMLNuke files. \n";
echo "The config.php file must be configured properly before run this command. \n";
echo "\n";
echo "Usage: \n";
echo " update-php5-project.php PATHTOYOURPROJECT \n";
echo "\n";
echo "Where: \n";
echo " PATHTOYOURPROJECT is the full path for your project \n";
echo "\n";
}
else
{
try
{
$result = CreatePhp5Project::Update(__DIR__, $argv[1]);
echo "Done.\n";
echo "\n";
}
catch (Exception $ex)
{
echo "Error: " . $ex->getMessage() . "\n\n";
}
}
}