diff --git a/code/validation/ivalidator.php b/code/validation/ivalidator.php new file mode 100644 index 0000000..62afed3 --- /dev/null +++ b/code/validation/ivalidator.php @@ -0,0 +1,115 @@ +validate( $value ); + } + + // All successful + + } catch (ValidationException $e) { + // Add the friendly name of the variable that failed validation, and rethrow the exception + // for the calling code to catch + $e->append_name($name); + throw $e; + } + } + + + }; + + /* + * Validation Exceptions + */ + + class ValidationException extends BaseException { + + public function __construct($message) { + parent::__construct($message); + } + + public function append_name($name) { + $this->e .= ", while validating '{$name}'."; + } + + }; + + +?> diff --git a/code/validation/range_validator.php b/code/validation/range_validator.php new file mode 100644 index 0000000..da0f9b3 --- /dev/null +++ b/code/validation/range_validator.php @@ -0,0 +1,40 @@ + $max ) + throw new ValidationException("Input is no in the range {$this->min}-{$this->max}"); + } + + }; + +?> diff --git a/deny.htaccess b/deny.htaccess deleted file mode 100644 index a0bb584..0000000 --- a/deny.htaccess +++ /dev/null @@ -1,2 +0,0 @@ -Order Allow,Deny -Deny from all diff --git a/files/BenRobertsCv.pdf b/files/BenRobertsCv.pdf new file mode 100644 index 0000000..a4bfa01 Binary files /dev/null and b/files/BenRobertsCv.pdf differ diff --git a/page-sources/cv.php b/page-sources/cv.php deleted file mode 100644 index bef7c47..0000000 --- a/page-sources/cv.php +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/page-sources/home.php b/page-sources/home.php index fd49340..fe20c73 100644 --- a/page-sources/home.php +++ b/page-sources/home.php @@ -9,14 +9,16 @@ ?>
-
- I am a third year student at ECS in Southampton, studying for a Masters degree in Computer Science (with Networks and Distributed Systems). + I am a third year student at ECS in Southampton, studying for a Master's degree in Computer Science (with Networks and Distributed Systems). + I am about to start an Industrial Year out, working for Netcraft in Bath.
- Here you can find a copy of my CV,
- or you can contact me via bar105
ecs.soton.ac.uk.
+ On this site you can find a copy of my CV,
+ or see what projects I have been working on.
+
+ You can contact me via bar105
ecs.soton.ac.uk.
+ I have not yet written up the list of projects I am working on +
\ No newline at end of file diff --git a/resources/at.png b/resources/at.png new file mode 100644 index 0000000..0f53738 Binary files /dev/null and b/resources/at.png differ diff --git a/resources/email.js b/resources/email.js new file mode 100644 index 0000000..64263f3 --- /dev/null +++ b/resources/email.js @@ -0,0 +1,9 @@ + +window.onload = function() { + for (var imgs = document.getElementsByTagName('img'),i=0,l=imgs.length; iMEng Computer Science @ ecs.soton.ac.uk