Skip to content

Commit

Permalink
Too many changes to list in 1 line
Browse files Browse the repository at this point in the history
  • Loading branch information
GM-Script-Writer-62850 committed Jul 19, 2013
1 parent 754f606 commit 0c98673
Show file tree
Hide file tree
Showing 79 changed files with 618 additions and 268 deletions.
7 changes: 5 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ErrorDocument 403 /inc/
ErrorDocument 404 /inc/
ErrorDocument 403 /res/index.php
ErrorDocument 404 /res/error.php

# Create 403 errors to use 403 error page as a replacement
Options -Indexes

# I will leave these here for you to enable
# ErrorDocument 401 https://i.chzbgr.com/maxW500/1935027968/hE19A8C6D/
Expand Down
43 changes: 43 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php // Global Varables
$FreeSpaceWarn=2048;// In Megabytes, Warning is displayed if there is less then the amount specified
$Fortune=true;// Enable/disable fortunes in the debug console
$ExtraScanners=false;// Adds sample scanners from ./inc/scanhelp/
$CheckForUpdates=true;// Enables auto update checking
$RequireLogin=false;// Require user to login (A 'geek' could bypass this without too much trouble using JavaScript); Create the user 'root' 1st, also Authorization is root's password
$SessionDuration=86400;// Max time (in seconds) signed in is 24hrs (irrelevant with the above off)
$Theme='3C9642.3C7796.3C9642.FFFFFF.3C9642.FFFFFF.000000.383838.FFFFFF.FF0000.FFFFFF'; // Default Color Scheme
// End Global Varables

$NAME="PHP Scanner Server";
$VER="1.3-8_dev";
$SAE_VER="1.4"; // Scanner Access Enabler version

// Login Stuff
$Auth=true;
if($RequireLogin){
if(!isset($_COOKIE['Authenticated']))
$Auth=false;
else if(time()>intval($_COOKIE['Authenticated'])+$SessionDuration)// NOT FOR USE ON 32BIT OS IN 2038 http://en.wikipedia.org/wiki/Year_2038_problem
$Auth=false;
}

// A few functions I need even on error pages
function html($X){
return htmlspecialchars($X);
}
function url($X){
return rawurlencode($X);
}
function js($X){
return str_replace("\n",'\\n',addslashes($X));
}
function InsertHeader($title) { # Spit out HTML header
$page=$GLOBALS['PAGE'];
include "res/inc/header.php";
return $path;
}
function Footer($path) { # Spit out HTML footer
$title=$GLOBALS['PAGE'];
include "res/inc/footer.php";
}
?>
2 changes: 1 addition & 1 deletion favicon.ico
24 changes: 0 additions & 24 deletions inc/index.php

This file was deleted.

25 changes: 0 additions & 25 deletions inc/writescripts/phpinfo.js

This file was deleted.

Loading

0 comments on commit 0c98673

Please sign in to comment.