<?php //-------------------------------------------------------------------- // BEGIN STANDARD HEADER // ------------------------------------------------------------------> require_once "../header.php"; require_once "../footer.php"; echo GenerateHeader("Contact", 1, 'contact'); ?> <?php // ------------------------------------------------------------------- // BEGIN UNIQUE PAGE CONTENT // ------------------------------------------------------------------> ?> <div id = "contact"> <h2>Want to get in touch?</h2> <ul> <li>Send me an e-mail: <a href="mailto:erichotinger@ehotinger.com">erichotinger@ehotinger.com</a></li><br/> <li>Add me on Facebook: <a href="http://www.facebook.com/lREMl">http://www.facebook.com/lREMl</a></li><br/> <li>Follow me on Twitter: <a href="https://twitter.com/ehotinger">https://twitter.com/ehotinger</a></li> </ul> </div> <?php // -------------------------------------------------------------------- // BEGIN STANDARD FOOTER // ------------------------------------------------------------------> echo GenerateFooter();
} ?> <!DOCTYPE html> <html> <head> <link rel="icon" href="../FavIcon.ico"/> <title>Post Editor</title> <link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="../css/style_reset.css"> <link rel="stylesheet" type="text/css" href="css/design.css"> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> </head> <body style="text-align: center;"> <?php require_once 'src/header.php'; GenerateHeader(PAGE::THOUGHTS); ?> <div id=main class="post_editor"> <?php //See if we are updating a blog post, if so load in data $u_title = ''; $u_tags = ''; $u_content = ''; $u_visible = 'checked'; $u_is_on_odua = ''; $u_post = $_SERVER['PHP_SELF']; //If updating load data from db and set to varaibles above if (isset($_GET['p'])) { $dbconn = post_connect(); $query = "SELECT title, entry, array_to_json(tags), visible, is_on_odua FROM blog WHERE title='{$_GET['p']}'"; $raw_entery = pg_query($query) or die('Query failed: ' . pg_last_error());
<!DOCTYPE html> <html> <head> <?php include_once 'src/styles.php'; ?> <title>Apps by Odua</title> </head> <body> <?php require_once 'src/header.php'; GenerateHeader(PAGE::APPS); ?> <content id="apps_content"> <?php #GENERATE APPS LIST FROM PORTFOLIO DATABASE require_once 'src/db.php'; $dbconn = post_connect(DB::NICGIO); $query = "SELECT name, url, description, photo, is_on_android, is_on_web, is_on_ios FROM projects WHERE is_on_odua = TRUE AND visible = TRUE ORDER BY NAME ASC"; $raw_projects = pg_query($query) or die('Query failed: ' . pg_last_error()); //Make <li> for each project while ($line = pg_fetch_array($raw_projects, null, PGSQL_ASSOC)) { $p_name = $line["name"]; $p_url = $line["url"]; $p_desc = strlen($line["description"]) >= 171 ? substr($line["description"], 0, 167) . "..." : $line["description"]; $p_photo = PORTFOLIOIMAGELOCATION . $line["photo"]; $p_android = $line["is_on_android"] == 't' ? '<img src="img/android.png">' : ''; $p_web = $line["is_on_web"] == 't' ? '<img src="img/chrome.png">' : ''; $p_ios = $line["is_on_ios"] == 't' ? '<img src="img/ios.png">' : ''; echo "<a href='{$p_url}'><apptag>\n <name>{$p_name}</name>\n <img src='{$p_photo}'/>\n <disc>\n {$p_desc}\n </disc><br>\n <platforms>\n {$p_web}\n {$p_android}\n {$p_ios}\n </platforms>\n </apptag></a>"; }
pg_free_result($result); pg_close($dbconn); ?> <!DOCTYPE html> <html> <head> <?php include_once 'src/style.php'; ?> <title>How to Reach Nicholas</title> </head> <body> <?php include 'src/contact_svgs.php'; require_once 'src/header.php'; GenerateHeader(PAGE::CONTACT); ?> <div id=main> <features> <blocked> <svg id="strengths_hex"> <use xlink:href="#hex"/> <g transform="translate(54.999991,55.401955)"> <use class="center_origin"id="strengths_icon_id" xlink:href="#strength_icon" style="-webkit-animation: SHAKEY 1s 500ms 1; animation: SHAKEY 1s 500ms 1;"/> </g> </svg> <name>strengths</name> <br> <content> <?php echo $mStrengths;
<?php //-------------------------------------------------------------------- // BEGIN STANDARD HEADER // ------------------------------------------------------------------> require_once "../header.php"; require_once "../footer.php"; echo GenerateHeader("About", 1, 'about'); ?> <?php // ------------------------------------------------------------------- // BEGIN UNIQUE PAGE CONTENT // ------------------------------------------------------------------> ?> <div id = "about"> <h2>About me</h2> <ul> <div id ="leftInfo"> <li>My name is Eric Hotinger; I'm a 20 year old aspiring software developer from the United States.</li><br/> <li>I grew up in a small town called Fairfield in the heart of Virginia and found myself at Virginia Tech in 2010.</li><br/> <li>Since then, I've learned a lot; some of the lessons might even be reflected in the code chunks and blog excerpts you can find on this site.</li><br/> <li>I'll be graduating in May of 2013 and although I'm not sure what the future holds for me yet, I'm excited.</li><br/> <li>If you're interested in learning more about me, feel free to get in touch with me or check out my <a href = "../blog/">blog</a>.</li><br/> <li>I've also started posting on <a href = "http://stackoverflow.com/users/1959230/eric-hotinger">Stack Overflow</a> recently, so perhaps you'll find some of my future comments insightful!</li> </div> </ul> <div id = "rightInfo"> <img src = "../images/photo.jpg"/> </div>
} } ?> <!DOCTYPE html> <html> <head> <link rel="icon" href="../FavIcon.ico"/> <title>Project Editor</title> <link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="../css/style_reset.css"> <link rel="stylesheet" type="text/css" href="css/design.css"> </head> <body style="text-align: center;"> <?php require_once 'src/header.php'; GenerateHeader(PAGE::PROJECTS); ?> <div id=main class="post_editor"> <?php $a_lang = array(); $dbconn = post_connect(); //Get the list of lanauges $query = "SELECT name, nickname FROM languages;"; $raw_languages = pg_query($query) or die('Query failed: ' . pg_last_error()); while ($line = pg_fetch_array($raw_languages, null, PGSQL_ASSOC)) { $a_lang[$line['name']] = $line['nickname']; } pg_free_result($raw_languages); //See if we are updating a blog post, if so load in data $u_project = ''; $u_loc = '';
<!DOCTYPE html> <html> <head> <?php include_once 'src/styles.php'; ?> <title>Privacy Policy</title> <script type="text/javascript" src="scripts/animations.js"></script> </head> <body> <?php require_once 'src/header.php'; GenerateHeader(PAGE::CHAT); ?> <div id=privacy> <iframe seamless src="https://www.iubenda.com/privacy-policy/574197"></iframe> </div> <?php include 'src/footer.php'; ?> </body> </html>
?> <!DOCTYPE html> <html> <head> <link rel="icon" href="../FavIcon.ico"/> <title>Odua Editor</title> <link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="../css/style_reset.css"> <link rel="stylesheet" type="text/css" href="css/design.css"> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <script type="text/javascript" src="scripts/admin.js"></script> </head> <body style="text-align: center;" id=odua_form_body> <?php require_once 'src/header.php'; GenerateHeader(PAGE::ODUA); ?> <div id=main class="profile"> <form class='odua_form' enctype= "multipart/form-data" method='post' action='odua_post.php'> <h1>General Info</h1> <hr> <div class=textarea_block> <div class=title>We're:</div> <textarea rows=10 cols=30 name='were'><?php echo $data['about']; ?> </textarea> </div> <div class=textarea_block> <div class=title>Hire:</div> <textarea rows=10 cols=30 name='hire'><?php
<?php //-------------------------------------------------------------------- // BEGIN STANDARD HEADER // ------------------------------------------------------------------> require_once "header.php"; require_once "footer.php"; echo GenerateHeader("Software Developer", 0, 'home'); ?> <?php // ------------------------------------------------------------------- // BEGIN UNIQUE PAGE CONTENT // ------------------------------------------------------------------> // FILTERS echo '<form action = "" id = "posts" method = "post">'; $currentTag = 0; // current tag is ALL by default if (isset($_REQUEST['currentTag'])) { $currentTag = $_REQUEST['currentTag']; } echo GenerateFilters($currentTag); echo '<input id = "filter" name = "currentTag" type = "hidden" value = "' . $currentTag . '"/>'; echo '<script type="text/javascript">var currentTag = ' . $currentTag . '</script>'; echo '<script type = "text/javascript"> var currentPageNum = 1 </script>'; $numPages = 0; $groupedPosts = ObtainAllPostsByTypeAndGroup($currentTag); $currentPageNum = 1; echo '<div id = "scripts">'; foreach ($groupedPosts as $group) { $numPages++;
} } ?> <!DOCTYPE html> <html> <head> <link rel="icon" href="../FavIcon.ico"/> <title>Profile Editor</title> <link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="../css/style_reset.css"> <link rel="stylesheet" type="text/css" href="css/design.css"> </head> <body style="text-align: center;"> <?php require_once 'src/header.php'; GenerateHeader(PAGE::PROFILE); ?> <div id=main class="profile"> <?php require_once 'src/db.php'; $dbconn = post_connect(); $query = "SELECT * FROM me;"; $results = pg_query($dbconn, $query) or die('Query failed: ' . pg_last_error()); $raw_me = pg_query($query) or die('Query failed: ' . pg_last_error()); $line = pg_fetch_array($raw_me, null, PGSQL_ASSOC); echo "<img id='photo' height='80px' src='../img/uploads/{$line['photo']}'/>\n <form enctype='multipart/form-data' method='post' action='profile.php'>\n Image: <input type='file' name='image'/>80x80<br>\n <name>Nicholas Gillespie</name> <br>\n <textarea id='project_desc' name='about'>{$line['about']}</textarea><br>\n <name>more about me</name> <br>\n <textarea id='project_desc' name='more'>{$line['more']}</textarea><br>\n <name>strengths</name> <br>\n <textarea id='project_desc' name='strengths'>{$line['strengths']}</textarea><br>\n <name>skills</name> <br>\n <textarea id='project_desc' name='skills'>{$line['skills']}</textarea><br><br>\n <input type='submit' class='button' name='Update'/>\n </form>"; pg_free_result($raw_me); pg_close($dbconn); ?> </div> <?php
pg_free_result($result); pg_close($dbconn); ?> <!DOCTYPE html> <html> <head> <?php include_once 'src/style.php'; ?> <title>Nicholas Gillespie</title> <script type="text/javascript" src="scripts/animations.js"></script> </head> <body> <?php require_once 'src/header.php'; GenerateHeader(PAGE::LANDING); ?> <div id=main> <article> <?php echo "<img id=\"photo\" alt=\"profile photo\" src=\"img/uploads/{$mPhoto}\"/>"; ?> <br> <name><?php echo $mName; ?> </name> <br> <?php echo $mAbout; ?>
$skills = json_decode($data['hire_skills'], true); pg_free_result($raw_entery); pg_close($dbconn); ?> <!DOCTYPE html> <html> <head> <?php include_once 'src/styles.php'; ?> <title>Hire Odua</title> </head> <body> <?php require_once 'src/header.php'; GenerateHeader(PAGE::HIRE); ?> <content> <h3 id=hire-header><?php echo $data['hire_tag']; ?> </h3> <ul class=three-skills> <?php $first_item = true; $root = IMAGELOCATION; foreach ($skills as $skill) { $a_skill = json_decode($skill, true); $iurl = $root . $a_skill['photo']; if ($first_item != true) { echo '<vr></vr>';
?> <!DOCTYPE html> <html> <head> <?php include_once 'src/styles.php'; ?> <title>Odua</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="js/galleria-1.3.5.min.js"></script> <link rel="stylesheet" type="text/css" href="js/theme/gallera.odua_standard_theme.css" /> </head> <body> <?php require_once 'src/header.php'; GenerateHeader(PAGE::HOME); ?> <content> <top> <div class="container"> <div class="galleria"> <?php $root = IMAGELOCATION; foreach (json_decode($data['array_to_json']) as $image) { $iurl = $root . $image; echo '<img width="440" height="260" src="' . $iurl . '">'; } ?> </div> <script> Galleria.loadTheme('js/theme/galleria_odua_standard_theme.js');
<!DOCTYPE html> <html> <head> <?php include_once 'src/styles.php'; ?> <title>Odua's Blog</title> </head> <body> <?php require_once 'src/header.php'; GenerateHeader(PAGE::BLOG); ?> <content> <div id=main class="blog"> <search-box> <input type=text placeholder="search entries" name="search" id="search" value='<?php if (isset($_GET["s"])) { echo $_GET["s"]; } ?> ' onkeyup="checkSubmit(event);"> </search-box> <?php require_once 'src/db.php'; //Connect to the DB and pull language data $dbconn = post_connect(DB::NICGIO); if (!isset($_GET["s"])) { $query = 'SELECT title, date, entry, array_to_json(tags) FROM blog WHERE is_on_odua = TRUE AND visible = TRUE ORDER BY id DESC;'; } else { $search = substr(filter_var($_GET["s"], FILTER_SANITIZE_STRING), 0, 140);