diff --git a/LICENSE b/LICENSE
old mode 100644
new mode 100755
diff --git a/README.md b/README.md
old mode 100644
new mode 100755
index 972cb6a..528f87a
--- a/README.md
+++ b/README.md
@@ -4,5 +4,6 @@ Yet Another PHP Time Card
# Credits:
Default icon pack - Oliver Charavel "Sekkyumu" at http://sekkyumu.deviantart.com/ (http://sekkyumu.deviantart.com/art/Developpers-Icons-63052312)
-
+Pure CSS - http://purecss.io/
+PHPass - http://www.openwall.com/phpass/
diff --git a/config.inc.php b/config.inc.php
new file mode 100644
index 0000000..d545698
--- /dev/null
+++ b/config.inc.php
@@ -0,0 +1,22 @@
+
+
diff --git a/config.inc.php~ b/config.inc.php~
new file mode 100644
index 0000000..25f6418
--- /dev/null
+++ b/config.inc.php~
@@ -0,0 +1,22 @@
+
+
diff --git a/config.php b/config.php
deleted file mode 100644
index 73973d2..0000000
--- a/config.php
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/dashboard.php b/dashboard.php
new file mode 100644
index 0000000..389e57f
--- /dev/null
+++ b/dashboard.php
@@ -0,0 +1,62 @@
+prepare($query);
+ $stmt->execute(array(':id' => $_SESSION['user_id']));
+ $user = $stmt->fetchObject();
+ echo 'You may make changes to your user profile below if you wish. Updates will take effect immediately on pressing "Save".';
+ echo '
';
+
+// end logged-in content
+ }
+
+ //************************ CONTENT END ************************
+ // Load footer
+ require_once($yaptc_inc . "footer.inc.php");
+?>
diff --git a/dashboard.php~ b/dashboard.php~
new file mode 100644
index 0000000..e7bd699
--- /dev/null
+++ b/dashboard.php~
@@ -0,0 +1,62 @@
+prepare($query);
+ $stmt->execute(array(':id' => $_SESSION['user_id']));
+ $user = $stmt->fetchObject();
+ echo 'You may make changes to your user profile below if you wish. Updates will take effect immediately on pressing "Save".';
+ echo '';
+
+// end logged-in content
+ }
+
+ //************************ CONTENT END ************************
+ // Load footer
+ require_once($yaptc_inc . "footer.inc.php");
+?>
diff --git a/db.php b/db.php
deleted file mode 100644
index 1474462..0000000
--- a/db.php
+++ /dev/null
@@ -1,207 +0,0 @@
-
-
-
-
-
-
-Ajax Add/Delete a Record with jQuery Fade In/Fade Out
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-query("SELECT id,name FROM yaptc_punchtypes");
-
-//get all records from add_delete_record table
-
-while($row = $results->fetch_assoc())
-
-{
-
- echo '- ';
-
- echo '';
-
- echo $row["name"].'
';
-
-}
-
-
-
-//close db connection
-
-$mysqli->close();
-
-?>
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/images/icons/Add Appointment.png b/images/icons/Add Appointment.png
old mode 100644
new mode 100755
diff --git a/images/icons/Add Green Button.png b/images/icons/Add Green Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Add To Favorite.png b/images/icons/Add To Favorite.png
old mode 100644
new mode 100755
diff --git a/images/icons/Add.png b/images/icons/Add.png
old mode 100644
new mode 100755
diff --git a/images/icons/Appointment Cool.png b/images/icons/Appointment Cool.png
old mode 100644
new mode 100755
diff --git a/images/icons/Appointment Urgent.png b/images/icons/Appointment Urgent.png
old mode 100644
new mode 100755
diff --git a/images/icons/Audio CD.png b/images/icons/Audio CD.png
old mode 100644
new mode 100755
diff --git a/images/icons/Audio Document.png b/images/icons/Audio Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Backup Green Button.png b/images/icons/Backup Green Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Bandwidth.png b/images/icons/Bandwidth.png
old mode 100644
new mode 100755
diff --git a/images/icons/Blue Ball.png b/images/icons/Blue Ball.png
old mode 100644
new mode 100755
diff --git a/images/icons/CD.png b/images/icons/CD.png
old mode 100644
new mode 100755
diff --git a/images/icons/Cancel Red Button.png b/images/icons/Cancel Red Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Clear Green Button.png b/images/icons/Clear Green Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Coherence.png b/images/icons/Coherence.png
old mode 100644
new mode 100755
diff --git a/images/icons/Desktop.png b/images/icons/Desktop.png
old mode 100644
new mode 100755
diff --git a/images/icons/Discussion.png b/images/icons/Discussion.png
old mode 100644
new mode 100755
diff --git a/images/icons/Document.png b/images/icons/Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Donate.png b/images/icons/Donate.png
old mode 100644
new mode 100755
diff --git a/images/icons/Eject Blue Button.png b/images/icons/Eject Blue Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Export To Audio Document.png b/images/icons/Export To Audio Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Export To Document.png b/images/icons/Export To Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Export To Movie Document.png b/images/icons/Export To Movie Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Export To Picture Document.png b/images/icons/Export To Picture Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Favorite.png b/images/icons/Favorite.png
old mode 100644
new mode 100755
diff --git a/images/icons/Forward Mail.png b/images/icons/Forward Mail.png
old mode 100644
new mode 100755
diff --git a/images/icons/Fullscreen.png b/images/icons/Fullscreen.png
old mode 100644
new mode 100755
diff --git a/images/icons/Gear Alt.png b/images/icons/Gear Alt.png
old mode 100644
new mode 100755
diff --git a/images/icons/Gear.png b/images/icons/Gear.png
old mode 100644
new mode 100755
diff --git a/images/icons/Get Document.png b/images/icons/Get Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Get Info Blue Button.png b/images/icons/Get Info Blue Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Get Info Purple Button.png b/images/icons/Get Info Purple Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Get Mail.png b/images/icons/Get Mail.png
old mode 100644
new mode 100755
diff --git a/images/icons/Green Ball.png b/images/icons/Green Ball.png
old mode 100644
new mode 100755
diff --git a/images/icons/Grey Ball.png b/images/icons/Grey Ball.png
old mode 100644
new mode 100755
diff --git a/images/icons/Help Blue Button.png b/images/icons/Help Blue Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Help Purple Button.png b/images/icons/Help Purple Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/History.png b/images/icons/History.png
old mode 100644
new mode 100755
diff --git a/images/icons/Import Audio Document.png b/images/icons/Import Audio Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Import Document.png b/images/icons/Import Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Import Movie Document.png b/images/icons/Import Movie Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Import Picture Document.png b/images/icons/Import Picture Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Internet History.png b/images/icons/Internet History.png
old mode 100644
new mode 100755
diff --git a/images/icons/Mail.png b/images/icons/Mail.png
old mode 100644
new mode 100755
diff --git a/images/icons/Menu Item.png b/images/icons/Menu Item.png
old mode 100644
new mode 100755
diff --git a/images/icons/Menu.png b/images/icons/Menu.png
old mode 100644
new mode 100755
diff --git a/images/icons/Minus Green Button.png b/images/icons/Minus Green Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Minus Red Button.png b/images/icons/Minus Red Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Movie CD.png b/images/icons/Movie CD.png
old mode 100644
new mode 100755
diff --git a/images/icons/Movie Document.png b/images/icons/Movie Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Mr. Bomb.png b/images/icons/Mr. Bomb.png
old mode 100644
new mode 100755
diff --git a/images/icons/Network.png b/images/icons/Network.png
old mode 100644
new mode 100755
diff --git a/images/icons/New Document.png b/images/icons/New Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/New Mail.png b/images/icons/New Mail.png
old mode 100644
new mode 100755
diff --git a/images/icons/Orange Ball.png b/images/icons/Orange Ball.png
old mode 100644
new mode 100755
diff --git a/images/icons/Pause All.png b/images/icons/Pause All.png
old mode 100644
new mode 100755
diff --git a/images/icons/Pause Blue Button.png b/images/icons/Pause Blue Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Pause Green Button.png b/images/icons/Pause Green Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Pause.png b/images/icons/Pause.png
old mode 100644
new mode 100755
diff --git a/images/icons/Picture CD.png b/images/icons/Picture CD.png
old mode 100644
new mode 100755
diff --git a/images/icons/Picture Document.png b/images/icons/Picture Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Play All.png b/images/icons/Play All.png
old mode 100644
new mode 100755
diff --git a/images/icons/Play Blue Button.png b/images/icons/Play Blue Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Play Green Button.png b/images/icons/Play Green Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Play.png b/images/icons/Play.png
old mode 100644
new mode 100755
diff --git a/images/icons/Plugin Green Button.png b/images/icons/Plugin Green Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Purple Ball.png b/images/icons/Purple Ball.png
old mode 100644
new mode 100755
diff --git a/images/icons/Record Button.png b/images/icons/Record Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Record Red Button.png b/images/icons/Record Red Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Red Ball.png b/images/icons/Red Ball.png
old mode 100644
new mode 100755
diff --git a/images/icons/Remove Appointment.png b/images/icons/Remove Appointment.png
old mode 100644
new mode 100755
diff --git a/images/icons/Remove Document.png b/images/icons/Remove Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Remove.png b/images/icons/Remove.png
old mode 100644
new mode 100755
diff --git a/images/icons/Rename Document.png b/images/icons/Rename Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Run.png b/images/icons/Run.png
old mode 100644
new mode 100755
diff --git a/images/icons/Send Document.png b/images/icons/Send Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Send Mail.png b/images/icons/Send Mail.png
old mode 100644
new mode 100755
diff --git a/images/icons/Smiley Blue.png b/images/icons/Smiley Blue.png
old mode 100644
new mode 100755
diff --git a/images/icons/Smiley Sad Blue.png b/images/icons/Smiley Sad Blue.png
old mode 100644
new mode 100755
diff --git a/images/icons/Smiley Sad.png b/images/icons/Smiley Sad.png
old mode 100644
new mode 100755
diff --git a/images/icons/Smiley Star Pink.png b/images/icons/Smiley Star Pink.png
old mode 100644
new mode 100755
diff --git a/images/icons/Smiley Star Sad.png b/images/icons/Smiley Star Sad.png
old mode 100644
new mode 100755
diff --git a/images/icons/Smiley Star.png b/images/icons/Smiley Star.png
old mode 100644
new mode 100755
diff --git a/images/icons/Smiley.png b/images/icons/Smiley.png
old mode 100644
new mode 100755
diff --git a/images/icons/Spotlight Blue Button.png b/images/icons/Spotlight Blue Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Star.png b/images/icons/Star.png
old mode 100644
new mode 100755
diff --git a/images/icons/Stop All.png b/images/icons/Stop All.png
old mode 100644
new mode 100755
diff --git a/images/icons/Stop Green Button.png b/images/icons/Stop Green Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Stop Red Button.png b/images/icons/Stop Red Button.png
old mode 100644
new mode 100755
diff --git a/images/icons/Stop.png b/images/icons/Stop.png
old mode 100644
new mode 100755
diff --git a/images/icons/Terminal.png b/images/icons/Terminal.png
old mode 100644
new mode 100755
diff --git a/images/icons/Transfer Document.png b/images/icons/Transfer Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Transfer.png b/images/icons/Transfer.png
old mode 100644
new mode 100755
diff --git a/images/icons/Trash Empty.png b/images/icons/Trash Empty.png
old mode 100644
new mode 100755
diff --git a/images/icons/Trash Full.png b/images/icons/Trash Full.png
old mode 100644
new mode 100755
diff --git a/images/icons/Universal Binary.png b/images/icons/Universal Binary.png
old mode 100644
new mode 100755
diff --git a/images/icons/Unread Mail Alt.png b/images/icons/Unread Mail Alt.png
old mode 100644
new mode 100755
diff --git a/images/icons/Unread Mail.png b/images/icons/Unread Mail.png
old mode 100644
new mode 100755
diff --git a/images/icons/User.png b/images/icons/User.png
old mode 100644
new mode 100755
diff --git a/images/icons/Users.png b/images/icons/Users.png
old mode 100644
new mode 100755
diff --git a/images/icons/Web Browser.png b/images/icons/Web Browser.png
old mode 100644
new mode 100755
diff --git a/images/icons/Write Document.png b/images/icons/Write Document.png
old mode 100644
new mode 100755
diff --git a/images/icons/Yellow Ball.png b/images/icons/Yellow Ball.png
old mode 100644
new mode 100755
diff --git a/images/icons/iChat Alt.png b/images/icons/iChat Alt.png
old mode 100644
new mode 100755
diff --git a/images/icons/iChat.png b/images/icons/iChat.png
old mode 100644
new mode 100755
diff --git a/includes/date_time.js b/includes/date_time.js
new file mode 100644
index 0000000..c6e40f3
--- /dev/null
+++ b/includes/date_time.js
@@ -0,0 +1,29 @@
+function date_time(id)
+{
+ date = new Date;
+ year = date.getFullYear();
+ month = date.getMonth();
+ months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
+ d = date.getDate();
+ day = date.getDay();
+ days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
+ h = date.getHours();
+ if(h<10)
+ {
+ h = "0"+h;
+ }
+ m = date.getMinutes();
+ if(m<10)
+ {
+ m = "0"+m;
+ }
+ s = date.getSeconds();
+ if(s<10)
+ {
+ s = "0"+s;
+ }
+ result = ''+days[day]+' '+months[month]+' '+d+' '+year+' '+h+':'+m+':'+s;
+ document.getElementById(id).innerHTML = result;
+ setTimeout('date_time("'+id+'");','1000');
+ return true;
+}
diff --git a/includes/date_time.js~ b/includes/date_time.js~
new file mode 100644
index 0000000..ba1d559
--- /dev/null
+++ b/includes/date_time.js~
@@ -0,0 +1,29 @@
+function date_time(id)
+{
+ date = new Date;
+ year = date.getFullYear();
+ month = date.getMonth();
+ months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'Jully', 'August', 'September', 'October', 'November', 'December');
+ d = date.getDate();
+ day = date.getDay();
+ days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
+ h = date.getHours();
+ if(h<10)
+ {
+ h = "0"+h;
+ }
+ m = date.getMinutes();
+ if(m<10)
+ {
+ m = "0"+m;
+ }
+ s = date.getSeconds();
+ if(s<10)
+ {
+ s = "0"+s;
+ }
+ result = ''+days[day]+' '+months[month]+' '+d+' '+year+' '+h+':'+m+':'+s;
+ document.getElementById(id).innerHTML = result;
+ setTimeout('date_time("'+id+'");','1000');
+ return true;
+}
diff --git a/includes/footer.inc.php b/includes/footer.inc.php
new file mode 100644
index 0000000..3c86349
--- /dev/null
+++ b/includes/footer.inc.php
@@ -0,0 +1,9 @@
+
+
+
+
+
+