@@ -138,7 +138,7 @@ class index extends cms {
$this->scripts = "";
$this->display_head();
$this->display_exhibits();
- echo "";
$this->list_projects();
echo <<
@@ -163,7 +163,7 @@ class index extends cms {
git://dylansserver.com
+ "/git/">git://dylansserver.com
some notes:
@@ -172,6 +172,13 @@ class index extends cms {
here [rss ]
+
+ my resume:
+
+
+
[pdf ]
+
OTHER_PROJECTS;
@@ -187,7 +194,7 @@ OTHER_PROJECTS;
protected function display_exhibits() {
echo "
";
- $sql = "SELECT text FROM projects";
+ $sql = "SELECT text FROM projects ORDER BY rank";
$result = $this->db->query($sql);
while ($entry = $result->fetch_object()) {
echo $entry->text;
@@ -201,7 +208,7 @@ OTHER_PROJECTS;
my projects:
HEREDOC;
- $sql = "SELECT title FROM projects";
+ $sql = "SELECT title FROM projects ORDER BY rank";
$result = $this->db->query($sql);
while ($entry = $result->fetch_object()) {
echo "
$entry->title ";
@@ -219,7 +226,7 @@ class project extends index {
WHERE title = ?";
$result = $this->query($sql, "s", $_GET['project']);
if ($result = $result[0]['text']) {
- $text = str_replace("class='exhibit'", "class='exhibit'", $result);
+ $text = str_replace("class='exhibit'", "class='exhibit' style='display:block;'", $result);
echo $text;
echo "
";
} else {
@@ -240,6 +247,24 @@ class page extends cms {
public function __construct() {
parent::__construct();
$this->page_offset();
+ $this->scripts = "
+
+
+
+
+
+ ";
}
private function page_offset() {
@@ -325,8 +350,27 @@ class note extends cms {
public $number_of_comments;
public function __construct() {
- if (isset($_GET['comments'])) {
$this->scripts = "
+
+
+
+
+
+ ";
+
+ if (isset($_GET['comments'])) {
+ $this->scripts .= "
";
}
@@ -398,8 +442,8 @@ class note extends cms {
// and a default author needs to be set
// for no-javascript users.
$stmt->bind_param('sss',
- htmlspecialchars($_POST['name']),
- htmlspecialchars($_POST['text']),
+ $_POST['name'],
+ $_POST['text'],
$this->id);
$stmt->execute();
}
@@ -454,7 +498,7 @@ END_OF_NAVIGATION;
$date_posted = $entry['date_posted'];
$author = $entry['author'];
$text = htmlspecialchars($entry['text']);
- $head = "
$author ";
+ $head = "
" . htmlspecialchars($author) . " ";
echo <<