# HG changeset patch # User paulo@twcdns.fastsearch.net # Date 1279696314 25200 # Node ID 561c0b0f3234426d603a1c5e4a8809df365f4240 initial add diff -r 000000000000 -r 561c0b0f3234 index.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/index.php Wed Jul 21 00:11:54 2010 -0700 @@ -0,0 +1,59 @@ + + + + + +-[pauloang.com]- + + + + + +
+
+ +'; + echo ''.$row['Title'].''; + echo ''."\n"; + echo '
'; + echo '
'; + echo 'First added: '.$row['FirstMod'].' '.'
'; + echo 'Last modified: '.$row['LastMod']; + echo '
'; + echo '
'."\n"; + } + + mysql_free_result($results); + mysql_close($link); +?> + +
+ +
+

pbba13@gmail.com

+
+ +
+ + + + diff -r 000000000000 -r 561c0b0f3234 pics/browse.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pics/browse.php Wed Jul 21 00:11:54 2010 -0700 @@ -0,0 +1,23 @@ + + + + + + +<?php echo $title ?> + + + +
+ + + +
+ + + + diff -r 000000000000 -r 561c0b0f3234 pics/common.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pics/common.php Wed Jul 21 00:11:54 2010 -0700 @@ -0,0 +1,80 @@ + ' . "\n"; + + closedir($dh); + } + } + + function browse($browse_dir, $thumbs_dir) { + include('../../../login.php'); + + $database = 'pauloang_pics'; + + $link = mysql_connect('localhost', $username, $password); + if (!$link) + die('Could not connect to MySQL server: ' . mysql_error()); + + $db_selected = mysql_select_db($database, $link); + if (!$db_selected) + die('Could not select database: ' . mysql_error()); + + + foreach ($_GET as $getKey => $getValue) { + if ($getKey == "id" && !empty($_GET[$getKey])) { + $dh = opendir($browse_dir); + if ($dh) { + while (($file = readdir($dh)) !== false) { + if (strncmp($file, ".", 1) != 0) + $files[] = $file; + } + } + closedir($dh); + + sort($files, SORT_NUMERIC); + for ($i = 0, $size = sizeof($files); $i < $size; $i++) { + if ($files[$i] == $getValue) { + if ($i > 0) { + echo ''; + echo ''; + echo '' . "\n"; + } + if ($i < $size - 1) { + echo ''; + echo ''; + echo '' . "\n"; + } + echo '
' . "\n"; + echo ''; + echo ' '; + echo '' . "\n"; + + $query = 'SELECT * FROM '. basename(getcwd()) . ' WHERE id = "' . $getValue . '"'; + $results = mysql_query($query); + + if ($results) { + $row = mysql_fetch_assoc($results); + $caption = $row['caption']; + echo '

' . $caption . '

' . "\n"; + } + + break; + } + } + break; + } + } + } +?> diff -r 000000000000 -r 561c0b0f3234 pics/index.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pics/index.php Wed Jul 21 00:11:54 2010 -0700 @@ -0,0 +1,31 @@ + + + + + + +<?php echo $title ?> + + + + + +
+ +

+This was me (Paulo Ang) and a couple of friends (Vinh Huynh, Daniel Rohrlick) riding our bikes from Santa Ana to Newport Beach to San Diego on the weekend of October 2-3, 2009. +

+ + + +
+ + + + diff -r 000000000000 -r 561c0b0f3234 thule_fit_kits/index.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/thule_fit_kits/index.php Wed Jul 21 00:11:54 2010 -0700 @@ -0,0 +1,81 @@ + + + + + +Thule Fit Kit Database + + + + + +
+ +

+Trying to figure out if you can reuse those Thule fit kit rubber pads or mounting brackets on another car? Here's a database you can check, with PDF installation instruction manuals. +

+ + + + + + + + + + +'; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo '' . "\n"; + } + + mysql_free_result($results); + mysql_close($link); + +?> + +
Kit NumberCarsRubber Pad NumberBracket NumberMiscellaneous Parts
' . $row['kit_id'] . ''; + $cars = explode(';', $row['car']); + foreach ($cars as $car) + echo $car . '
'; + echo '
' . $row['rubber_pad'] . '' . $row['bracket'] . ''; + $misc = explode(',', $row['misc']); + foreach ($misc as $misc_item) { + if ($misc_item) { + $misc_item = trim($misc_item); + $misc_filename = 'misc_' . $misc_item . '.png'; + if (file_exists($misc_filename)) + echo '' . $misc_item . ' '; + else + echo $misc_item . ','; + } + } + echo '
+
+ + + +