- <?php
-
- define('PAGE_TITLE', 'Home');
- include 'includes/header.php';
- mininav('main');
-
- ?>
-
- <div class="index-highlight">
- <div class="project-icon"><img src="images/rithiurcom_32.png" width="32" height="32" alt="" /></div>
- <div class="text">
- <span class="title">rithiur.com</span>
- <span class="info">- New website for stuff by Rithiur</span>
- </div>
- <div class="link">» <a href="http://rithiur.com">http://rithiur.com</a></div>
- </div>
-
- <div class="index-highlight">
- <div class="project-icon"><img src="images/blogger_32.png" width="32" height="32" alt="" /></div>
- <div class="text">
- <span class="title">Serversided</span>
- <span class="info">- Blog about web development and stuff related to it</span>
- </div>
- <div class="link">» <a href="http://serversided.blogspot.com">http://serversided.blogspot.com</a></div>
- </div>
-
- <h2>Latest News at phpInDev</h2>
-
- <p>Latest news and happenings here in phpInDev can be found below. Click the
- link for full article</p>
-
- <div id="news">
- <?php
-
- try
- {
- if ($db === false)
- {
- throw new Exception('Unable to access database for newsdata');
- }
-
- $sth = $db->query(
- 'SELECT news_id, news_date, news_url, news_text ' .
- 'FROM pid_news ' .
- 'ORDER BY news_date DESC ' .
- 'LIMIT 10');
-
- foreach ($sth as $row)
- {
- echo
- " <div class=\"news-box\" id=\"news-$row[news_id]\">\n",
- ' <div class="news-date">', date('jS M Y', $row['news_date']), "</div>\n",
- " <div class=\"news-text\">- <a href=\"" . htmlspecialchars($row['news_url']) ."\">$row[news_text]</a></div>\n",
- " </div>\n";
- }
- }
- catch(Exception $e)
- {
- log_exception($e);
- }
-
- ?>
- </div>
-
- <p>For all previous news, see the <a href="archive.php">news archive</a>. News are
- also available in <a href="rss.php">rss format</a>.</p>
-
- <h2>Introduction to phpInDev</h2>
-
- <p>
- phpInDev is a personal website intended to be a homepage for my mostly web
- related projects and other programming stuff I've done. You can find here my
- various php projects such as RSHiLib and Regex Tool in addition to tutorials
- I've written for php and other programming related subjects. Feel free to
- browse around the website and leave me some feedback if you like it.
- </p>
-
- <p>
- Please note that despite the perhaps slightly misleading website name, this
- site has absolutely nothing to do with development of the php langauge itself.
- This website is just my personal website with my php related projects.
- </p>
-
- <p>
- Like my work? You can show your generosity by making a small
- <a href="donate.php">donation</a>.
- </p>
-
- <?php include 'includes/footer.php'; ?>
|