Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh committed Jan 2, 2011
0 parents commit d07f982
Show file tree
Hide file tree
Showing 172 changed files with 1,944 additions and 0 deletions.
1 change: 1 addition & 0 deletions .htaccess
@@ -0,0 +1 @@
DirectoryIndex index.php index.html index.txt /genericindex/index.php
Empty file added favicon.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon.ico
Binary file not shown.
256 changes: 256 additions & 0 deletions genericindex/index.php
@@ -0,0 +1,256 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>
<?php
$numPuncPossibilities = 5;
echo "chad";
switch($punc1=rand(2,$numPuncPossibilities)){
case 1:
echo " - "; break;
case 2:
echo "... "; break;
case 3:
echo "! "; break;
case 4:
echo ". "; break;
case 5:
echo "? "; break;
}
echo "oh";
switch($punc2=rand(2,$numPuncPossibilities)){
case 1:
echo " - "; break;
case 2:
echo "... "; break;
case 3:
echo "! "; break;
case 4:
echo ". "; break;
case 5:
echo "? "; break;
}
function getExtension($file)
{
$pos = strrpos($file, '.');
if (!$pos)
{
return 'Unknown Filetype';
}
$str = substr($file, $pos);
return $str;
}
function capitalizeWords($string)
{
$string = explode(' ', $string);
foreach ($string as $key)
{
$string[$key] = ucfirst($string[$key]);
}
return implode(' ', $string);
}

$dir_tree = explode("/", $_SERVER['REQUEST_URI']);
$title = urldecode($dir_tree[sizeof($dir_tree)-2]);
switch($title)
{
case "backup":
$title = "Backup";
break;
case "genericindex":
$title = "Generic Index";
break;
case "images":
$title = "Images";
break;
case "jobapplications":
$title = "Job Applications";
break;
case "resumes":
$title = "Resumes";
break;
case "scripts":
$title = "Scripts";
break;
case "stuff":
$title = "Stuff";
break;
case "styles":
$title = "Styles";
break;
case "kittens":
$title = "Kittens";
break;
case "wedding":
$title = "Wedding Stuff";
break;
case "timkeller":
$title = "Tim Keller's Marriage Series";
break;
case "fonts":
$title = "Fonts";
break;
}
echo $title;
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<link rel="stylesheet" type="text/css" href="http://chad-oh.com/styles/all.css"/>
</style>
</head>
<body>
<div id="header">
<?php
$numNounPossibilities = 19;
$noun1 = rand(1, $numNounPossibilities);
do
{
$noun2 = rand(1, $numNounPossibilities);
} while ($noun2 == $noun1);

echo "<a href=http://chad-oh.com/index.php><img src='http://chad-oh.com/images/banner/header_chad.png' width='254px' height='164px' alt='Chad' /></a>";
echo "<a href=http://chad-oh.com/index.php><img src='http://chad-oh.com/images/banner/punctuation_chad/banner_punctuation_chad_".$punc1.".png' width='74px' height='164px' alt='.' /></a>";
echo "<a href=http://chad-oh.com/index.php><img src='http://chad-oh.com/images/banner/header_oh.png' width='218px' height='164px' alt='Oh' /></a>";
echo "<a href=http://chad-oh.com/index.php><img src='http://chad-oh.com/images/banner/punctuation_oh/banner_punctuation_oh_".$punc2.".png' width='154px' height='164px' alt='!' /></a>";
echo "<a href=http://chad-oh.com/index.php><img src='http://chad-oh.com/images/banner/header_corn.png' width='395px' height='105px' alt='Corn'/></a>";
echo "<a href=http://chad-oh.com/index.php><img src='http://chad-oh.com/images/banner/subtitle_1/banner_subtitle_1_".$noun1.".png' width='114px' height='105px' alt='showings'/></a>";
echo "<a href=http://chad-oh.com/index.php><img src='http://chad-oh.com/images/banner/header_&.png' width='25px' height='105px' alt='&'/></a>";
echo "<a href=http://chad-oh.com/index.php><img src='http://chad-oh.com/images/banner/subtitle_2/banner_subtitle_2_".$noun2.".png' width='166px' height='105px' alt='tellings' /></a>";
?>
</div>
<?php
echo "<h1>".$title."</h1>";
?>
<div id="content">
<!--begin content-->
<div id="main">
<!--begin main-->
<div id="dir">
<a href="../"><img src="http://chad-oh.com/images/icons/specialfolder.png" border="0"/>Up A Level</a>
</div>
<?php
switch($dir_tree[1])
{
case "genericindex":
$showcontents = false;
break;
case "images":
$showcontents = true;
break;
case "jobapplications":
$showcontents = false;
break;
case "scripts":
$showcontents = false;
break;
case "styles":
$showcontents = true;
break;
default:
$showcontents = true;
}

if ($showcontents)
{
$directory = str_replace("%20", " ", $_SERVER['DOCUMENT_ROOT'].$_SERVER['REQUEST_URI']);

$dir_results = array ();
$dir_results_presentable = array ();

$file_results = array ();
$file_results_presentable = array ();

$handler = opendir($directory);
while ($file = readdir($handler))
{
if (substr($file, 0, 1) != ".")
{
if (is_dir("$directory/$file"))
{
$dir_results[] = $file;
$dir_results_presentable[] = capitalizeWords($file);
} elseif ($file != "index.php")
{
$file_results[] = $file;
$file_results_presentable[] = capitalizeWords($file);
}
}
}
closedir($handler);

array_multisort($dir_results_presentable, $dir_results);
array_multisort($file_results_presentable, $file_results);

for ($i = 0; $i < sizeof($dir_results); $i++)
{
echo "<div id='dir'><a href='".$dir_results[$i]."'><img src='http://chad-oh.com/images/icons/folder.png' border='0'/>".$dir_results_presentable[$i]."</a></div>";
}

if (sizeof($dir_results) > 0)
{
echo "<div id='divider'><img src='http://chad-oh.com/images/divider2.png' /></div>";
}

for ($i = 0; $i < sizeof($file_results); $i++)
{
echo "<div id='file'><a href='".$file_results[$i]."'>";
$img = "/images/icons/filetypeicons/".substr(getExtension($file_results[$i]), 1).".png";
if (file_exists($_SERVER['DOCUMENT_ROOT'].$img))
{
echo "<img src='".$img."' border='0'/>";
} else
{
echo "<img src='http://chad-oh.com/images/icons/filetypeicons/blankdocument.png' border='0' />";
}

echo $file_results_presentable[$i]."</a></div>";
}

if (sizeof($file_results) > 0)
{
echo "<div id='divider'><img src='http://chad-oh.com/images/divider1.png' /></div>";
}
}
?>
</div><!--end main--><!-- Begin #sidebar -->
<div id="sidebar">
<div id="sidebar2">
<h2 class="sidebar-title">Links</h2>
<ul>
<li>
<a href="http://chad-oh.com/goings-on.php">What I'm up to</a>
</li>
<li>
<a href="http://picasaweb.google.com/chad.chadoh">Photos</a>
</li>
<li>
<a href="http://www.myspace.com/theroaringkittens">Some Music I've helped make</a>
</li>
<li>
<a href="http://www.twitter.com/chadoh">Twitter</a>
</li>
<li>
<a href="http://www.linkedin.com/in/chadoh">LinkedIn</a>
</li>
<li>
<a href="http://www.facebook.com/chadoh">Facebook</a>
</li>
<li>
<a href="http://www.chad-oh.com/">Home</a>
</li>
</ul>
<br/>
<p>
If you're using Firefox 3.5+ or Safari 3.1+, this font is brought to you by <a href="http://www.theleagueofmoveabletype.com/fonts/1-junction">Caroline Hadilaksono</a>. Thanks, Caroline!
</p>
</div>
</div>
<!-- End #sidebar -->
</div>
<!--end content-->
<!--?php
include($_SERVER['DOCUMENT_ROOT'] . "/scripts/visittracker/insertvisit.php");
?-->
</body>
</html>
7 changes: 7 additions & 0 deletions goings-on.php
@@ -0,0 +1,7 @@
<?php
$title = "(goings-on)";
include ("topofpage.php");
?>
<iframe src="https://www.google.com/calendar/embed?showTitle=0&amp;showPrint=0&amp;mode=WEEK&amp;height=600&amp;wkst=1&amp;bgcolor=%23000000&amp;src=chad.ostrowski%40gmail.com&amp;color=%2328754E&amp;ctz=America%2FNew_York" style="border-width:0 " width="100%" height="600px" frameborder="0" scrolling="no">
</iframe>
</body>
Binary file added images/banner/banner template.xcf
Binary file not shown.
Binary file added images/banner/header background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/header_&.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/header_chad.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/header_corn.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/header_full_temp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/header_oh.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/subtitle_1/banner_subtitle_1_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/subtitle_1/banner_subtitle_1_10.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/subtitle_1/banner_subtitle_1_11.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/subtitle_1/banner_subtitle_1_12.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/subtitle_1/banner_subtitle_1_13.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/subtitle_1/banner_subtitle_1_14.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/subtitle_1/banner_subtitle_1_15.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/subtitle_1/banner_subtitle_1_16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/banner/subtitle_1/banner_subtitle_1_17.png
Binary file added images/banner/subtitle_1/banner_subtitle_1_18.png
Binary file added images/banner/subtitle_1/banner_subtitle_1_19.png
Binary file added images/banner/subtitle_1/banner_subtitle_1_2.png
Binary file added images/banner/subtitle_1/banner_subtitle_1_3.png
Binary file added images/banner/subtitle_1/banner_subtitle_1_5.png
Binary file added images/banner/subtitle_1/banner_subtitle_1_6.png
Binary file added images/banner/subtitle_1/banner_subtitle_1_7.png
Binary file added images/banner/subtitle_1/banner_subtitle_1_8.png
Binary file added images/banner/subtitle_1/banner_subtitle_1_9.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_1.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_10.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_11.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_12.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_13.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_14.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_15.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_16.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_17.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_18.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_2.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_3.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_5.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_6.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_7.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_8.png
Binary file added images/banner/subtitle_2/banner_subtitle_2_9.png
Binary file added images/divider1.png
Binary file added images/divider2.png
Binary file added images/divider_contact.png
Binary file added images/divider_do.png
Binary file added images/divider_done.png
Binary file added images/divider_education.png
Binary file added images/divider_employers.png
Binary file added images/divider_footer.png
Binary file added images/divider_workexperience.png
Binary file added images/erica.jpg
Binary file added images/favicon 1.ico
Binary file not shown.
Binary file added images/favicon 3.ico
Binary file not shown.
Binary file added images/favicon.ico
Binary file not shown.
Binary file added images/filmstills/Bumming.png
Binary file added images/filmstills/BummingSmall.PNG
Binary file added images/filmstills/CigaretteHaver.png
Binary file added images/filmstills/CigaretteHaverSmall.PNG
Binary file added images/filmstills/CigaretteWanter.png
Binary file added images/filmstills/CigaretteWanterSmall.PNG
Binary file added images/filmstills/FeedingSquirrels.png
Binary file added images/filmstills/FeedingSquirrelsSmall.PNG
Binary file added images/filmstills/FumanchuSwing.png
Binary file added images/filmstills/FumanchuSwingSmall.PNG
Binary file added images/icons/filetypeicons/3gp.png
Binary file added images/icons/filetypeicons/7zip.png
Binary file added images/icons/filetypeicons/aac.png
Binary file added images/icons/filetypeicons/ace.png
Binary file added images/icons/filetypeicons/aiff.png
Binary file added images/icons/filetypeicons/ape.png
Binary file added images/icons/filetypeicons/arj.png
Binary file added images/icons/filetypeicons/asf.png
Binary file added images/icons/filetypeicons/asp.png
Binary file added images/icons/filetypeicons/avi.png
Binary file added images/icons/filetypeicons/blankdocument.png
Binary file added images/icons/filetypeicons/bmp.png
Binary file added images/icons/filetypeicons/cab.png
Binary file added images/icons/filetypeicons/cgi.png
Binary file added images/icons/filetypeicons/css.png
Binary file added images/icons/filetypeicons/dat.png
Binary file added images/icons/filetypeicons/divx.png
Binary file added images/icons/filetypeicons/doc.png
Binary file added images/icons/filetypeicons/docx.png
Binary file added images/icons/filetypeicons/flac.png
Binary file added images/icons/filetypeicons/gif.png
Binary file added images/icons/filetypeicons/gzip.png
Binary file added images/icons/filetypeicons/html.png
Binary file added images/icons/filetypeicons/jpg.png
Binary file added images/icons/filetypeicons/js.png
Binary file added images/icons/filetypeicons/mov.png
Binary file added images/icons/filetypeicons/mp3.png
Binary file added images/icons/filetypeicons/mp4.png
Binary file added images/icons/filetypeicons/mpc.png
Binary file added images/icons/filetypeicons/mpeg.png
Binary file added images/icons/filetypeicons/mpeg4.png
Binary file added images/icons/filetypeicons/ocg.png
Binary file added images/icons/filetypeicons/pdf.png
Binary file added images/icons/filetypeicons/php.png
Binary file added images/icons/filetypeicons/pl.png
Binary file added images/icons/filetypeicons/png.png
Binary file added images/icons/filetypeicons/psd.png
Binary file added images/icons/filetypeicons/rar.png
Binary file added images/icons/filetypeicons/rm.png
Binary file added images/icons/filetypeicons/rtf.png
Binary file added images/icons/filetypeicons/svcd.png
Binary file added images/icons/filetypeicons/swf.png
Binary file added images/icons/filetypeicons/tar.png
Binary file added images/icons/filetypeicons/tga.png
Binary file added images/icons/filetypeicons/tiff.png
Binary file added images/icons/filetypeicons/txt.png
Binary file added images/icons/filetypeicons/vcd.png
Binary file added images/icons/filetypeicons/vob.png
Binary file added images/icons/filetypeicons/vqf.png
Binary file added images/icons/filetypeicons/wav.png
Binary file added images/icons/filetypeicons/wma.png
Binary file added images/icons/filetypeicons/wmv.png
Binary file added images/icons/filetypeicons/wpd.png
Binary file added images/icons/filetypeicons/xhtml.png
Binary file added images/icons/filetypeicons/xml.png
Binary file added images/icons/filetypeicons/xvid.png
Binary file added images/icons/filetypeicons/zip.png
Binary file added images/icons/folder.png
Binary file added images/icons/home.png
Binary file added images/icons/jiggzyicon.png
Binary file added images/icons/photography.png
Binary file added images/icons/specialfolder.png
Binary file added images/icons/stuff.png
Binary file added images/icons/upload.png
Binary file added images/juno.jpg
Binary file added images/origins.jpg
Binary file added images/origins_large.jpg
Binary file added images/self-portraitTriptych.jpg
Binary file added images/self-portraitTriptychHuge.jpg
Binary file added images/weethebackofmyhead.jpg
Binary file added images/wmnst.JPG
Binary file added images/womanbathroom.jpg
Binary file added images/womanbathroomsmall.jpg

0 comments on commit d07f982

Please sign in to comment.