Skip to content

Commit a09de7e

Browse files
committed
All Files :)
0 parents  commit a09de7e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3344
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.htaccess

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<IfModule mod_rewrite.c>
2+
RewriteEngine On
3+
RewriteBase /comp212/assign1
4+
5+
RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
6+
RewriteCond %{REQUEST_URI} ^(.*)$
7+
RewriteCond %{REQUEST_FILENAME} !-f
8+
RewriteRule .* core.php [L]
9+
</IfModule>
10+
11+

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Otago University: COMP212 Assigment One
2+
===============
3+
4+
Thomas Mitchell (thomas.mitchell@otago.ac.nz)
5+
6+
Impliamented Functionality
7+
===============
8+
* User Registration (plus JS validation JQuery)
9+
* User+Admin Login
10+
* User login
11+
* User profile edit
12+
* Admin: User list
13+
* Admin: User modify + deletion
14+
* Admin: User creation
15+
* Admin: Admin creation (no superuser password functionality though)

app/.DS_Store

6 KB
Binary file not shown.

app/app.php

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
if(isset($_ENV["USER"])){
3+
if($_ENV["USER"] == "thomas") {
4+
5+
6+
$site_env = "dev";
7+
$site_preceed = 2;
8+
9+
define('SITE_DIR', '/Server/comp212/assign1/');
10+
11+
define('ASSET_URL', 'http://localhost/comp212/assign1/');
12+
define('SITE_URL', 'http://localhost/comp212/assign1/');
13+
14+
define('SQL_DBASHHOST', /* MYSQL HOST - USUALLY LOCALHOST */'localhost');
15+
define('SQL_DBASHUSER', /* DB LOGIN USER */'root');
16+
define('SQL_DBASHPASS', /* DB LOGIN PASS */'root');
17+
18+
define('SQL_DBASHDB', /* DB ITS SELF */'comp212_assign1');
19+
}
20+
} else {
21+
22+
// PRODUCTION DATA REDACTED!
23+
24+
}
25+
26+
27+
require('functions/index_database.inc.php');
28+
require('functions/index_domain.inc.php');
29+
?>

app/functions/.DS_Store

6 KB
Binary file not shown.

app/functions/index_database.inc.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?
2+
3+
4+
// Create a link to the database server
5+
$link = mysql_connect(SQL_DBASHHOST, SQL_DBASHUSER, SQL_DBASHPASS);
6+
if(!$link) :
7+
die('Could not connect: ' . mysql_error());
8+
endif;
9+
10+
// Select a database where our member tables are stored
11+
$db = mysql_select_db(SQL_DBASHDB, $link);
12+
if(!$db) :
13+
die ('Can\'t connect to database : ' . mysql_error());
14+
endif;
15+
16+
?>

app/functions/index_domain.inc.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
4+
5+
6+
7+
function areaurl($number,$site_preceed)
8+
{
9+
$link_root = explode("/", $_SERVER['REQUEST_URI']);
10+
return mysql_real_escape_string($link_root[$number+$site_preceed]);
11+
12+
}
13+
14+
15+
?>

assign1assets/.DS_Store

6 KB
Binary file not shown.

assign1assets/content_grad.png

230 Bytes
Loading

assign1assets/jqueryui/.DS_Store

6 KB
Binary file not shown.

assign1assets/jqueryui/css/.DS_Store

6 KB
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

assign1assets/jqueryui/css/ui-lightness/jquery-ui-1.8.23.custom.css

+563
Large diffs are not rendered by default.

assign1assets/jqueryui/js/jquery-1.8.0.min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assign1assets/jqueryui/js/jquery-ui-1.8.23.custom.min.js

+125
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)