diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb612d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +# Eclipse project +.buildpath +.project +.settings diff --git a/code/auth_mysql.php b/code/auth_mysql.php deleted file mode 100644 index cf671db..0000000 --- a/code/auth_mysql.php +++ /dev/null @@ -1,38 +0,0 @@ - diff --git a/code/config.php.dist b/code/config.php.dist deleted file mode 100644 index 4993ec1..0000000 --- a/code/config.php.dist +++ /dev/null @@ -1,103 +0,0 @@ - get_web_base_dir(), - 'script-dir' => get_fs_base_dir(), - 'error-code' => 403, - 'error-message' => 'Unknown Error'); - // Placeholder for template fragments - $_template = array( 'messages' => array(), - 'redirect-to' => false, - 'head' => '', - 'title' => 'Default', - 'page' => ''); - // Forward declarations - $_session = null; - - // Templating - $_config['template-file'] = "{$_meta['script-dir']}/templates/default.php"; - - // Homepage - $_config['homepage'] = "{$_meta['script-dir']}/page-sources/home.php"; - - // Sessions - // How long a logged in session will last without activity from the user - $_config['session-login-timeout'] = 60*60*1; // One hour - // How long the username will be stoed in the users cookie - $_config['session-username-timeout'] = 60*60*24*7; // Seven days - - // See session-handler.php for reasons behind the session-network-* config variables - // session-network-mask is used to determine how much of the users IP is hashed into the salt - $_config['session-network-mask'] = 24; - // session-network-mode defines whether the above parameter was passed as a CIDR form, or dotted decimal form - $_config['session-network-mode'] = MASK_CIDR; - - // Maximum number of items to keep in the users session history - $_config['max-history'] = 5; - - // Account Lockout - // How many incorrect authentication attempts before the user is locked out - $_config['lockout-attempts'] = 3; - // How long the account lockout period lasts. During this time, the user will not - // be able to authenticate, even witha valid passwords - $_config['lockout-duration'] = 60*10; // Ten minutes - - - // Authantication - require_once( "{$_meta['script-dir']}/code/iauthenticator.php" ); - $_config['authentication-module'] = 'mysql'; - - // Database - // Mysql connections parameters - $_config['db'] = null; - $_config['mysql'] = array(); - $_config['mysql']['host'] = 'localhost'; - $_config['mysql']['port'] = 3306; - $_config['mysql']['username'] = ''; - $_config['mysql']['password'] = ''; - $_config['mysql']['database'] = ''; - - // Database tables - $_config['mysql']['prefix'] = ''; - - // Connecting to the database - $_db = null; - require_once( "{$_meta['script-dir']}/code/db_mysql.php" ); - - // Only show php error messages if the application is in debug mode - if( isset($_GET['nodebug']) ) $_config['DEBUG'] = false; - if( !$_config['DEBUG'] ) { - set_error_handler( "null_error_handler" ); - set_exception_handler( "null_exception_handler" ); - } - - // Set the default template for all individual pages - $_template['template-file'] = $_config['template-file']; - - - -?> diff --git a/code/db_mysql.php b/code/db_mysql.php deleted file mode 100644 index 840aa53..0000000 --- a/code/db_mysql.php +++ /dev/null @@ -1,21 +0,0 @@ - diff --git a/code/exceptions.php b/code/exceptions.php deleted file mode 100644 index 264cf86..0000000 --- a/code/exceptions.php +++ /dev/null @@ -1,41 +0,0 @@ -\n"; - echo '
';print_r($this->getTrace());echo ''; - } - } - - }; - - - class FatalException extends BaseException { - // Overridden constructor prints an error message, then terminates the application - public function __construct( $message = '', $code = 0 ) { - parent::__construct( $message, $code ); - die( 'FATAL EXCEPTION: ' . $message ); - } - }; - - - class ConfigException extends BaseException {}; - class SessionException extends BaseException {}; - class AccountLockoutException extends BaseException {}; - class AuthenticationException extends BaseException {}; - class ParameterException extends BaseException {}; - class NotImplementedException extends BaseException {}; - -?> diff --git a/code/functions.php b/code/functions.php deleted file mode 100644 index 9db521f..0000000 --- a/code/functions.php +++ /dev/null @@ -1,78 +0,0 @@ - $value ) { - $dest[$key] = $value; - } - } - - function print_rating_graph( $star_rating ) { - global $_meta; -?> -
- I am still working on my project, but in the mean time I have some binaries available for user testing. - Please report any bugs you might find to my bug tracker. - (Note: The provider of my SSL certificates does not yet have their root CA certificate distributed with Internet Explorer or Opera, so if you need to, please add them as a Trusted CA.) -
-- These binaries are solely for testing purposes, and may not be redistributed from anywhere other than this site. - I am in the process of packaging a source distribution. - -
- - diff --git a/page-sources/error.php b/page-sources/error.php deleted file mode 100644 index 8242c23..0000000 --- a/page-sources/error.php +++ /dev/null @@ -1,15 +0,0 @@ -history_drop_request(); - // Display the error message, and redirect - $_template['title'] = "Errawr"; - $_template['messages'][] = $_meta['error-message']; - $_template['redirect-to'] = $_session->history_get(0); // Top of the list now - -?> \ No newline at end of file diff --git a/page-sources/home.php b/page-sources/home.php deleted file mode 100644 index 4a06114..0000000 --- a/page-sources/home.php +++ /dev/null @@ -1,31 +0,0 @@ - -
- - I have almost finished the final year of a Master's degree in Computer Science at ECS, University of Southampton, UK and am due to graduate in June 2010. -
-- Starting this summer, I will be working for Atos Origin as a Graduate Technical Specialist in the Managed Operations division. -
-- I previously worked for Netcraft in Bath, while taking a year out from my degree studies. My roles included developing and running the SSL Server Survey, reviewing Automated Vulnerability Scan results, and performing occasional penetration tests against web applications for financial institutions. -
-- On this site you can find a full copy of my CV, - or see what projects I have been working on in my spare time. -
-
- You can contact me via me
benroberts.net.
-
- The ebuilds in this overlay have mostly been taken from the Gentoo - bugzilla, where the packages haven't yet made it into the portage tree. There - are also a couple of version-bumped packages, and packages to install my own - software on my own machines. Feel free to use these packages, but do so at your - own risk. -
- -
- You can install this overlay using layman. Add the the
- Sihnon overlay url
- to your overlays variable in /etc/layman/layman.cfg. Then update
- the list of overlays with layman -L and add the Sihnon overlay
- with layman -a sihnon.
-
- The contents of the overlay can be browsed in the - Sihnon overlay browser. -
- diff --git a/page-sources/projects.php b/page-sources/projects.php deleted file mode 100644 index d212534..0000000 --- a/page-sources/projects.php +++ /dev/null @@ -1,33 +0,0 @@ - -{0}{current}{2}'+b+" ",a.extract&&(h+="on line "+a.line+", column "+(a.column+1)+":
"+e.replace(/\[(-?\d)\]/g,function(b,c){return parseInt(a.line)+parseInt(c)||""}).replace(/\{(\d)\}/g,function(b,c){return a.extract[parseInt(c)]||""}).replace(/\{current\}/,a.extract[1].slice(0,a.column)+''+a.extract[1].slice(a.column)+"")),f.innerHTML=h,p([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #ee4444;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.ctx {","color: #dd4444;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),f.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),d.env=="development"&&(g=setInterval(function(){document.body&&(document.getElementById(c)?document.body.replaceChild(f,document.getElementById(c)):document.body.insertBefore(f,document.body.firstChild),clearInterval(g))},10))}Array.isArray||(Array.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"||a instanceof Array}),Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c=this.length>>>0;for(var d=0;d+ I will update this page with an overview of my CV, but in the meatime, please feel free to download a + PDF of my full CV. +
\ No newline at end of file diff --git a/source/webui/templates/errors/401.tpl b/source/webui/templates/errors/401.tpl new file mode 100644 index 0000000..b1f46a9 --- /dev/null +++ b/source/webui/templates/errors/401.tpl @@ -0,0 +1,5 @@ ++ The page you requested ({$requested_page|escape:html}) could not be opened. + Please ensure you are logged in and have permission to access this page. +
\ No newline at end of file diff --git a/source/webui/templates/errors/404.tpl b/source/webui/templates/errors/404.tpl new file mode 100644 index 0000000..956dab8 --- /dev/null +++ b/source/webui/templates/errors/404.tpl @@ -0,0 +1,6 @@ ++ The file you requested ({$requested_page|escape:html}) could not be found. + If you typed in the address manually, check that you have spelled it correctly, + or if you followed a link, let us know and we'll look into it. +
\ No newline at end of file diff --git a/source/webui/templates/errors/unhandled-exception.tpl b/source/webui/templates/errors/unhandled-exception.tpl new file mode 100644 index 0000000..65309f5 --- /dev/null +++ b/source/webui/templates/errors/unhandled-exception.tpl @@ -0,0 +1,62 @@ ++ There was a problem trying to complete the requested action. Please try again and if the problem persists, let us know. +
+ +{if $display_exceptions} ++ An unhandled exception was caught during the page template processing. The full details are shown below: +
+
+ Note: Exception details should not be displayed on production systems.
+ Disable the Display Exceptions
+ setting to omit the exception details from this page.
+
+
+ + I currently work as a Network Projects engineer for Atos + in the Major Projects division. My role here includes design and implementation of LAN and WAN systems in Data Centre environments. +
++ I previously worked for Netcraft in Bath, + while taking a year out from my degree studies. + My roles included developing and running the SSL Server Survey, + reviewing Automated Vulnerability Scan results, + and performing occasional penetration tests against web applications for financial institutions. +
++ I am a former graudate of Computer Science from ECS (University of Southampton) which I studied to the Masters level. +
+ ++ On this site you can find a copy of my CV, + or see what projects I have been working on in my spare time. +
+ ++ You can contact me via {mailto address="me@benroberts.net" encode="hex"}. +
+ + ++ I am still working on my project, but in the mean time I have some binaries available for user testing. + Please report any bugs you might find on the bug tracker. +
++ These binaries are solely for testing purposes, and may not be redistributed from anywhere other than this site. + I may find time to produce a source package in the future. + +
+ diff --git a/source/webui/templates/projects/gentoo-overlay.tpl b/source/webui/templates/projects/gentoo-overlay.tpl new file mode 100644 index 0000000..8cb0788 --- /dev/null +++ b/source/webui/templates/projects/gentoo-overlay.tpl @@ -0,0 +1,22 @@ ++ The ebuilds in this overlay have mostly been taken from the Gentoo + bugzilla, where the packages haven't yet made it into the portage tree. There + are also a couple of version-bumped packages, and packages to install homegrown + software on local machines. Feel free to use these packages, but do so at your + own risk. +
+ +
+ You can install this overlay using layman. Add the the
+ Sihnon overlay url
+ to your overlays variable in /etc/layman/layman.cfg. Then update
+ the list of overlays with layman -L and add the Sihnon overlay
+ with layman -a sihnon.
+
+ The contents of the overlay can be browsed in the + Sihnon Git repository browser. +
diff --git a/source/webui/templates/projects/ripping-cluster.tpl b/source/webui/templates/projects/ripping-cluster.tpl new file mode 100644 index 0000000..1a46c53 --- /dev/null +++ b/source/webui/templates/projects/ripping-cluster.tpl @@ -0,0 +1,36 @@ ++ RippingCluster provides a web interface for managing a cluster of nodes for transcoding DVDs. The application provides the means + to list available sources and prepare a list of titles to rip over a collection of nodes using HandBrake and Gearman. +
+ +
+ + View or clone a copy of the Git repositories from one of the mirrors listed below: +
++ I have a collection of community repositories for both amd64 and i686 architectures. These contain version-bumped or modified packages already + present in the upstream repositories, packages available in Gentoo but not Sabayon, and locally-developed software. Feel free to add these if any + of the packages inside might be of use, but please be aware they are provided as-is with no guarantees. +
+ ++ StatusBoard is a simple PHP web-based tool for displaying the status of services. Administrators can manually record incidents and provide + estimated end times and simple descriptions. This tool is suitable for exposing status information to customers or other third parties and + does not need to be connected to internal systems. +
+ +
+ + View or clone a copy of the Git repositories from one of the mirrors listed below: +
+MEng Computer Science @ ecs.soton.ac.uk
-- About to be redirected... If nothing happens after 10 seconds, please click here. -
- -