Skip to content

Commit

Permalink
For people who do not read the instructions
Browse files Browse the repository at this point in the history
Nobody in particular, may as well add this since I know how to update my stuff on GitHub now
  • Loading branch information
GM-Script-Writer-62850 committed Jun 24, 2013
1 parent 8e96b3f commit 2be3efc
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Sorry for the lack of explanations in the code feel free to ask what something does

$NAME="PHP Scanner Server";
$VER="1.3-2";
$VER="1.3-3_dev";
$SAE_VER="1.4"; // scanner access enabler version

# ****************
Expand Down Expand Up @@ -212,6 +212,25 @@ function quit(){
if($PAGE==NULL)
$PAGE="Scan";

# ****************
# Verify Install (For anyone who installs from git and does not read the notes written in several places)
# ****************

$dirs=Array('scans','config','config/parallel');
foreach($dirs as $val){
if(!is_dir($val)){
@mkdir($val);
if(is_dir($val))
continue;
$here=getcwd();
$PAGE="Incomplete Installation";
InsertHeader($PAGE);
Print_Message("Missing Directory","<i>$here/$val</i> does not exist!<br/><code>$user</code> also needs to have write access to it<br>To fix run this in a terminal as root<br><code>mkdir $here/$val && chown $user $here/$val</code>","center");
Footer();
quit();
}
}

# ****************
# All Scans Page
# ****************
Expand Down

0 comments on commit 2be3efc

Please sign in to comment.