Backing up laptop, committing all unsaved changes

This commit is contained in:
2008-03-09 17:02:16 +00:00
parent 66ca16f8b0
commit 8447c7a41a
6 changed files with 104 additions and 62 deletions

View File

@@ -1,8 +1,8 @@
<IfModule mod_rewrite.c>
# Magic Quotes are the Root-of-all-Evil and must be burned at the stake.
php_flag magic_quotes_gpc off
<IfModule mod_rewrite.c>
# Enable mod_rewrite for pretty urls
RewriteEngine on
# Treat all rules as starting from this directory

View File

@@ -8,3 +8,16 @@
$_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>

View File

@@ -24,7 +24,7 @@ div.sidebar {
div.page {
margin: 1em;
margin-left: 9em;
margin-left: 15em;
}
div.footer {
@@ -79,6 +79,10 @@ div.quote blockquote {
background-color: lightyellow;
}
img.at {
height: 1em;
width: 1em;
}
/*
Dialog boxes
@@ -131,3 +135,17 @@ p.loginform label {
p.loginform input {
float: right;
}
/*
Homepage
*/
img.bio {
display: block;
margin-left: auto;
margin-right: auto;
border: 1px solid grey;
padding: 0.2em;
}

View File

@@ -13,6 +13,7 @@
<head>
<title><?php echo $_template['title']; ?></title>
<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
// If we have a redirection, implement a meta refresh here
if( $_template['redirect-to'] ) {
@@ -36,7 +37,7 @@
<strong>Navigation</strong>
<ul>
<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() ) { ?>
<li><a href="<?php echo $_req->construct('page','logout'); ?>" title="Logout">Logout</a></li>
<?php } ?>

View File

@@ -36,4 +36,14 @@
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();
}
}
?>