From 07f5140771388c9e0c8a99b0dd2e5d950bdb173b Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 14 Oct 2021 15:16:42 +1100 Subject: moving h-source subdir out. --- h-source/Config/Autoload.php | 44 ------- h-source/Config/Config.php | 58 --------- h-source/Config/Reporting.php | 41 ------ h-source/Config/Restricted.php | 94 -------------- h-source/Config/Route.php | 280 ----------------------------------------- 5 files changed, 517 deletions(-) delete mode 100644 h-source/Config/Autoload.php delete mode 100755 h-source/Config/Config.php delete mode 100755 h-source/Config/Reporting.php delete mode 100755 h-source/Config/Restricted.php delete mode 100644 h-source/Config/Route.php (limited to 'h-source/Config') diff --git a/h-source/Config/Autoload.php b/h-source/Config/Autoload.php deleted file mode 100644 index ee43c13..0000000 --- a/h-source/Config/Autoload.php +++ /dev/null @@ -1,44 +0,0 @@ -. - -if (!defined('EG')) die('Direct access not allowed!'); - - -//class containing all the PHP files that have to be loaded at the beginning of the EasyGiant execution -//the files have to be saved in Application/Include -//all the files have to be PHP files!! -class Autoload -{ - - public static $files = array( - 'params.php', - 'distributions.php', - 'myFunctions.php', - 'hardware.php', - 'languages.php', - 'license.php', - 'vendorTranslations.php', - 'wikiFormatting.php', - 'version.php', - ); - -} \ No newline at end of file diff --git a/h-source/Config/Config.php b/h-source/Config/Config.php deleted file mode 100755 index 1290751..0000000 --- a/h-source/Config/Config.php +++ /dev/null @@ -1,58 +0,0 @@ -. - -if (!defined('EG')) die('Direct access not allowed!'); - - -define('DB', 'hnode'); -define('USER', 'root'); -define('PWD', ''); -define('HOST', 'localhost'); - -/*default controller name*/ -define('DEFAULT_CONTROLLER','home'); - -/*default action*/ -define('DEFAULT_ACTION','index'); - -/*website parameters*/ -define('DOMAIN_NAME','localhost'); - -/*type of database.*/ -//it can be: Mysql, Mysqli or None (first letter in uppercase) -define('DATABASE_TYPE','Mysqli'); - -/*error controller*/ -/*if you set ERROR_CONTROLLER to false, than EasyGiant will set ERROR_CONTROLLER equal to DEFAULT_CONTROLLER*/ -define('ERROR_CONTROLLER','home'); - -/*error action*/ -/*if you set ERROR_ACTION to false, than EasyGiant will set ERROR_ACTION equal to DEFAULT_ACTION*/ -define('ERROR_ACTION','index'); - -/*charset*/ -// set the charset used by all the functions that manage multi byte strings (mb_string functions, htmlentitites, etc) -define('DEFAULT_CHARSET','UTF-8'); - -/*rewrite settings*/ -//set MOD_REWRITE_MODULE to true if you have installed the mod_rewrite module of the server, otherwise MOD_REWRITE_MODULE to false -define('MOD_REWRITE_MODULE',true); diff --git a/h-source/Config/Reporting.php b/h-source/Config/Reporting.php deleted file mode 100755 index 5a2405f..0000000 --- a/h-source/Config/Reporting.php +++ /dev/null @@ -1,41 +0,0 @@ -. - -if (!defined('EG')) die('Direct access not allowed!'); - -class Route -{ - - //controller,action couples that can be reached by the browser - //set 'all' if you want that all the controller,action couples can be reached by the browser - public static $allowed = array( - 'contact,index', - 'credits,index', - 'hardware,catalogue', - 'help,page', - 'faq,page', - 'home,index', - 'image,captcha', - 'issues,viewall', - 'issues,view', - 'my,home', - 'my,password', - 'my,email', - 'my,profile', - 'my,goodbye', - 'notebooks,catalogue', - 'notebooks,view', - 'notebooks,history', - 'notebooks,revision', - 'notebooks,insert', - 'notebooks,update', - 'notebooks,differences', - 'notebooks,climb', - 'notebooks,talk', - 'project,index', - 'users,login', - 'users,logout', - 'users,add', - 'users,confirm', - 'users,change', - 'users,forgot', - 'users,notice', - 'meet,user', - 'meet,contributions', - 'meet,hardware', - 'meet,issues', - 'meet,messages', - 'meet,talk', - 'meet,wiki', - 'meet,wikitalk', - 'wifi,catalogue', - 'wifi,view', - 'wifi,history', - 'wifi,revision', - 'wifi,insert', - 'wifi,update', - 'wifi,differences', - 'wifi,climb', - 'wifi,talk', - 'videocards,catalogue', - 'videocards,view', - 'videocards,history', - 'videocards,revision', - 'videocards,insert', - 'videocards,update', - 'videocards,differences', - 'videocards,climb', - 'videocards,talk', - 'printers,catalogue', - 'printers,view', - 'printers,history', - 'printers,revision', - 'printers,insert', - 'printers,update', - 'printers,differences', - 'printers,climb', - 'printers,talk', - 'scanners,catalogue', - 'scanners,view', - 'scanners,history', - 'scanners,revision', - 'scanners,insert', - 'scanners,update', - 'scanners,differences', - 'scanners,climb', - 'scanners,talk', - 'search,form', - 'search,results', - 'search,pciid', - 'search,lspci', - 'generic,del', - 'generic,cleared', - 'news,index', - 'download,index', - 'download,all', - 'download,notebooks', - 'download,wifi', - 'download,videocards', - 'download,printers', - 'download,scanners', - 'download,threegcards', - 'download,soundcards', - 'download,webcams', - 'download,bluetooth', - 'download,acquisitioncards', - 'download,fingerprintreaders', - 'download,ethernetcards', - 'download,sdcardreaders', - 'download,modems', - 'download,raidadapters', - 'download,hostcontrollers', - 'history,hide', - 'history,show', - 'history,block', - 'history,unblock', - 'history,open', - 'history,close', - 'history,pageblock', - 'history,pageunblock', - 'history,viewall', - 'history,pagehide', - 'history,pageshow', - 'history,devicehide', - 'history,deviceshow', - 'history,deviceapprove', - 'history,deviceclear', - 'history,issuehide', - 'history,issueshow', - 'threegcards,catalogue', - 'threegcards,view', - 'threegcards,history', - 'threegcards,revision', - 'threegcards,insert', - 'threegcards,update', - 'threegcards,differences', - 'threegcards,climb', - 'threegcards,talk', - 'soundcards,catalogue', - 'soundcards,view', - 'soundcards,history', - 'soundcards,revision', - 'soundcards,insert', - 'soundcards,update', - 'soundcards,differences', - 'soundcards,climb', - 'soundcards,talk', - 'webcams,catalogue', - 'webcams,view', - 'webcams,history', - 'webcams,revision', - 'webcams,insert', - 'webcams,update', - 'webcams,differences', - 'webcams,climb', - 'webcams,talk', - 'rss,modifications', - 'rss,statusnet', - 'rss,notapproved', - 'special,modifications', - 'special,modactions', - 'special,adminactions', - 'special,usersactions', - 'special,deleted', - 'special,notapproved', - 'wiki,insert', - 'wiki,update', - 'wiki,page', - 'wiki,history', - 'wiki,revision', - 'wiki,differences', - 'wiki,climb', - 'wiki,talk', - 'wiki,modifications', - 'wiki,pages', - 'wiki,deleted', - 'wiki,blocked', - 'bluetooth,catalogue', - 'bluetooth,view', - 'bluetooth,history', - 'bluetooth,revision', - 'bluetooth,insert', - 'bluetooth,update', - 'bluetooth,differences', - 'bluetooth,climb', - 'bluetooth,talk', - 'client,licenseinfo', - 'client,userinfo', - 'acquisitioncards,catalogue', - 'acquisitioncards,view', - 'acquisitioncards,history', - 'acquisitioncards,revision', - 'acquisitioncards,insert', - 'acquisitioncards,update', - 'acquisitioncards,differences', - 'acquisitioncards,climb', - 'acquisitioncards,talk', - 'fingerprintreaders,catalogue', - 'fingerprintreaders,view', - 'fingerprintreaders,history', - 'fingerprintreaders,revision', - 'fingerprintreaders,insert', - 'fingerprintreaders,update', - 'fingerprintreaders,differences', - 'fingerprintreaders,climb', - 'fingerprintreaders,talk', - 'ethernetcards,catalogue', - 'ethernetcards,view', - 'ethernetcards,history', - 'ethernetcards,revision', - 'ethernetcards,insert', - 'ethernetcards,update', - 'ethernetcards,differences', - 'ethernetcards,climb', - 'ethernetcards,talk', - 'sdcardreaders,catalogue', - 'sdcardreaders,view', - 'sdcardreaders,history', - 'sdcardreaders,revision', - 'sdcardreaders,insert', - 'sdcardreaders,update', - 'sdcardreaders,differences', - 'sdcardreaders,climb', - 'sdcardreaders,talk', - 'modems,catalogue', - 'modems,view', - 'modems,history', - 'modems,revision', - 'modems,insert', - 'modems,update', - 'modems,differences', - 'modems,climb', - 'modems,talk', - 'raidadapters,catalogue', - 'raidadapters,view', - 'raidadapters,history', - 'raidadapters,revision', - 'raidadapters,insert', - 'raidadapters,update', - 'raidadapters,differences', - 'raidadapters,climb', - 'raidadapters,talk', - 'hostcontrollers,catalogue', - 'hostcontrollers,view', - 'hostcontrollers,history', - 'hostcontrollers,revision', - 'hostcontrollers,insert', - 'hostcontrollers,update', - 'hostcontrollers,differences', - 'hostcontrollers,climb', - 'hostcontrollers,talk', - ); - - //it can be 'yes' or 'no' - //set $rewrite to 'yes' if you want that EasyGiant rewrites the URLs according to what specified in $map - public static $rewrite = 'no'; - - //define the urls of your website - //you have to set $rewrite to 'yes' - public static $map = array(); - -} \ No newline at end of file -- cgit v1.2.3