Backing up laptop, committing all unsaved changes
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<IfModule mod_rewrite.c>
|
|
||||||
|
|
||||||
# Magic Quotes are the Root-of-all-Evil and must be burned at the stake.
|
# Magic Quotes are the Root-of-all-Evil and must be burned at the stake.
|
||||||
php_flag magic_quotes_gpc off
|
php_flag magic_quotes_gpc off
|
||||||
|
|
||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
|
||||||
# Enable mod_rewrite for pretty urls
|
# Enable mod_rewrite for pretty urls
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
# Treat all rules as starting from this directory
|
# Treat all rules as starting from this directory
|
||||||
|
|||||||
@@ -8,3 +8,16 @@
|
|||||||
$_template['title'] = 'Home';
|
$_template['title'] = 'Home';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<div>
|
||||||
|
<img class="bio" src="<?php echo $_meta['base-dir']; ?>/resources/bios_scott.jpg" alt="Me?" />
|
||||||
|
|
||||||
|
<p>
|
||||||
|
I am a third year student at ECS in Southampton, studying for a Masters degree in Computer Science (with Networks and Distributed Systems).
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Here you can find a copy of my <a href="<?php echo $_req->construct('page','cv'); ?>" title="Curriculum Vitae">CV</a>,
|
||||||
|
or you can contact me via bar105<img class="at" src="<?php echo $_meta['base-dir']; ?>/resources/at.png" alt="@" />ecs.soton.ac.uk.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
@@ -24,7 +24,7 @@ div.sidebar {
|
|||||||
|
|
||||||
div.page {
|
div.page {
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
margin-left: 9em;
|
margin-left: 15em;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.footer {
|
div.footer {
|
||||||
@@ -79,6 +79,10 @@ div.quote blockquote {
|
|||||||
background-color: lightyellow;
|
background-color: lightyellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img.at {
|
||||||
|
height: 1em;
|
||||||
|
width: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Dialog boxes
|
Dialog boxes
|
||||||
@@ -131,3 +135,17 @@ p.loginform label {
|
|||||||
p.loginform input {
|
p.loginform input {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Homepage
|
||||||
|
*/
|
||||||
|
|
||||||
|
img.bio {
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
|
||||||
|
border: 1px solid grey;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title><?php echo $_template['title']; ?></title>
|
<title><?php echo $_template['title']; ?></title>
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo $_meta['base-dir']; ?>/resources/normal.css" />
|
<link rel="stylesheet" type="text/css" href="<?php echo $_meta['base-dir']; ?>/resources/normal.css" />
|
||||||
|
<script language="javascript" type="text/javascript" src="<?php echo $_meta['base-dir']; ?>/resources/email.js" />
|
||||||
<?php
|
<?php
|
||||||
// If we have a redirection, implement a meta refresh here
|
// If we have a redirection, implement a meta refresh here
|
||||||
if( $_template['redirect-to'] ) {
|
if( $_template['redirect-to'] ) {
|
||||||
@@ -36,7 +37,7 @@
|
|||||||
<strong>Navigation</strong>
|
<strong>Navigation</strong>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="<?php echo $_req->construct('page','home'); ?>" title="Homepage">Home</a></li>
|
<li><a href="<?php echo $_req->construct('page','home'); ?>" title="Homepage">Home</a></li>
|
||||||
<li><a href="<?php echo $_req->construct('page','cv'); ?>" title="Curriculum Vitae">CV</a></li>
|
<li><a href="<?php echo $_req->construct('page','cv'); ?>" title="Curriculum Vitae">Curriculum Vitae</a></li>
|
||||||
<?php if( $_session->is_logged_in() ) { ?>
|
<?php if( $_session->is_logged_in() ) { ?>
|
||||||
<li><a href="<?php echo $_req->construct('page','logout'); ?>" title="Logout">Logout</a></li>
|
<li><a href="<?php echo $_req->construct('page','logout'); ?>" title="Logout">Logout</a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|||||||
10
test.php
10
test.php
@@ -36,4 +36,14 @@
|
|||||||
echo '</pre>';
|
echo '</pre>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($_GET['validate'])) {
|
||||||
|
require_once('code/validation/ivalidator.php');
|
||||||
|
|
||||||
|
try {
|
||||||
|
Validator::check('Value', $_GET['value'], IValidatorFactory::get('Range',5,32));
|
||||||
|
} catch (ValidationException $e) {
|
||||||
|
echo $e->getMessage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user