commit 65ec09af7403897a81ed2675fc02287ab2627d60
parent fa2aad7d6ffd22d6f03d09e5e3a0a5e013f5d454
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 19 Aug 2014 17:33:33 +0200
auto commit
Diffstat:
16 files changed, 327 insertions(+), 398 deletions(-)
diff --git a/core/admin/admin.php b/core/admin/admin.php
@@ -1,4 +1,14 @@
<?php
+/**
+* Administration
+*
+* This script is a navigation to all things that you can configurate.
+*
+* @author Marcel Radzio <info@nordgedanken.de>
+* @version 0.2 17/08/2014 19:57
+*/
+
+ //Check if the User loged in
if (!isset($_COOKIE["user"])){
echo $_COOKIE["user"];
echo "Bitte erst <a href=\"login.php\">einloggen</a>.";
diff --git a/core/admin/user/login_check.debug b/core/admin/user/login_check.debug
@@ -0,0 +1,27 @@
+echo $username;
+echo $verbindung;
+echo $ergebnis;
+
+echo "<br/>";
+echo "-----------------------------";
+echo "<br/>";
+//echo $row[1];
+echo "<br/>";
+echo "-----------------------------";
+echo "<br/>";
+echo "Back aus include";
+echo $inputKey;
+echo "<br/>";
+echo $inputText;
+echo "<br/>";
+echo "<br/>";
+echo "-----------------------------";
+echo "<br/>";
+ echo "After decryption: ".$dec."<br/>";
+
+echo "<br/>";
+echo $_POST['password'];
+echo "<br/>";
+ echo $row->password;
+ echo "<br/>";
+ echo $encrypted_string;
diff --git a/core/admin/user/login_check.php b/core/admin/user/login_check.php
@@ -1,9 +1,19 @@
<?php
+/**
+* Check the User Datas
+*
+* This script check if the data o the form is equal the data of the database.
+*
+* @author Marcel Radzio <info@nordgedanken.de>
+* @version 0.2 17/08/2014 19:39
+*/
+ //Fill variables
$username = $_POST["username"];
$pw = $_REQUEST['password'];
-
+
+ //Check if the variables are empty
if(empty($pw)){
echo"Bääähhh!!!";
exit;
@@ -13,16 +23,18 @@
exit;
}
+ //Open DatabaseConnection
$verbindung = mysql_connect("localhost", "root" , "1199Mtr3#")
or die("Verbindung zur Datenbank konnte nicht hergestellt werden");
mysql_select_db("blog") or die ("Datenbank konnte nicht ausgewaelt werden");
+ //Request User Data from Database
$abfrage = "SELECT EMail, password FROM users WHERE EMail LIKE '$username' LIMIT 1";
$ergebnis = mysql_query($abfrage);
$row = mysql_fetch_object($ergebnis);
- //secure
+ //Decrypt database password variable
include '../secure/aes.php';
$inputKey = '1554831687984849746489478';
@@ -37,7 +49,7 @@
-
+ //Check if Database password equal Form Password
if($dec == $_POST['password']){
ob_start();
$expire=time()+60*60*24*30;
@@ -49,35 +61,5 @@
else{
echo "Benutzername und/oder Passwort waren falsch.";
}
-/*
-DEBUG
-----
-echo $username;
-echo $verbindung;
-echo $ergebnis;
-
-echo "<br/>";
-echo "-----------------------------";
-echo "<br/>";
-//echo $row[1];
-echo "<br/>";
-echo "-----------------------------";
-echo "<br/>";
-echo "Back aus include";
-echo $inputKey;
-echo "<br/>";
-echo $inputText;
-echo "<br/>";
-echo "<br/>";
-echo "-----------------------------";
-echo "<br/>";
- echo "After decryption: ".$dec."<br/>";
-echo "<br/>";
-echo $_POST['password'];
-echo "<br/>";
- echo $row->password;
- echo "<br/>";
- echo $encrypted_string;
-*/
?>
diff --git a/core/admin/user/logout.php b/core/admin/user/logout.php
@@ -1,4 +1,11 @@
<?php
+/**
+* Delete Cookies
+*
+* @author Marcel Radzio <info@nordgedanken.de>
+* @version 0.2 17/08/2014 19:46
+*/
+
setcookie('user', '#', time() -1, '/', 'rpimarcel1.fritz.box', false, false);
setcookie('user', '#', time() -1, '/', '192.168.178.40', false, false);
echo"<p>Erfolgreich abgemeldet</p></br>"
diff --git a/core/admin/user/register_activation.php b/core/admin/user/register_activation.php
@@ -1,20 +1,35 @@
<?php
+/**
+* Activate Users
+*
+* This script activate the Users in the Database
+*
+* @author Marcel Radzio <info@nordgedanken.de>
+* @version 0.2 17/08/2014 19:52
+*/
+
+ //Set global variables
$DatabaseHost = "localhost";
$DatabaseUser = "root";
$DatabasePassword = "1199Mtr3#";
$Database = "blog";
$TableAktivierung = "users";
-
+
+ //Check for the ID of the user and the Activationcode
if($_REQUEST['ID'] && $_REQUEST['Aktivierungscode']){
- $DatabasePointer = mysql_connect($DatabaseHost, $DatabaseUser, $DatabasePassword);
+ //Open Database connection
+ $DatabasePointer = mysqli_connect($DatabaseHost, $DatabaseUser, $DatabasePassword);
mysql_select_db($Database, $DatabasePointer);
$_REQUEST['ID'] = mysql_real_escape_string($_REQUEST['ID']);
$_REQUEST['Aktivierungscode'] = mysql_real_escape_string($_REQUEST['Aktivierungscode']);
+ //Get variables from Database
$ResultPointer = mysql_query("SELECT ID FROM $TableAktivierung WHERE ID = '".$_REQUEST['ID']."' AND Aktivierungscode = '".$_REQUEST['Aktivierungscode']."'", $DatabasePointer);
+ //Check if $ResultPointer filled
if(mysql_num_rows($ResultPointer) > 0){
+ //Activate the User
@mysql_query("UPDATE $TableAktivierung SET Aktiviert = '1' WHERE ID = '".$_REQUEST['ID']."'", $DatabasePointer);
echo"Vielen Dank für Ihre Registrierung. Der Aktivierungsprozess ist nun abgeschlossen.";
}
diff --git a/core/admin/user/register_handling.php b/core/admin/user/register_handling.php
@@ -1,18 +1,32 @@
<?php
+/**
+* Handling the register progress
+*
+* This script put the variables into the database
+*
+* @author Marcel Radzio <info@nordgedanken.de>
+* @version 0.2 17/08/2014 19:48
+*/
+
+
+ //Set variables
$DatabaseHost = "localhost";
$DatabaseUser = "root";
$DatabasePassword = "1199Mtr3#";
$Database = "blog";
$TableAktivierung = "users";
$Absender = "info@nordgedanken.de";
+
+ //Check if the form is sended
if($_POST['Send']){
+ //Open Database connection
$DatabasePointer = mysql_connect($DatabaseHost, $DatabaseUser, $DatabasePassword);
mysql_select_db($Database, $DatabasePointer);
$_POST['EMail'] = mysql_real_escape_string($_POST['EMail']);
$_POST['Name'] = mysql_real_escape_string($_POST['Name']);
$_POST['pw'] = mysql_real_escape_string($_POST['pw']);
- //secure
+ //Encrypt the password
include '../../secure/aes.php';
$imputKey = '1554831687984849746489478';
$imputText = $_REQUEST['pw'];
@@ -21,22 +35,17 @@
$enc = $aes->encrypt();
$aes->setData($enc);
//echo "After encryption: ".$enc."<br/>";
-
+
+ //Set first login Date and generate random Activatecode
$Erstellt = date("Y-m-d H:i:s");
$Aktivierungscode = rand(1, 9999);
-
+
+ //Push it to the Database
mysql_query("INSERT INTO $TableAktivierung (Aktivierungscode, Erstellt, EMail, Aktiviert, name, password) VALUES ('$Aktivierungscode', '$Erstellt', '".$_REQUEST['EMail']."', '0', '".$_REQUEST['Name']."', '$enc')", $DatabasePointer);
+ //Send Email for Registration
$ID = mysql_insert_id();
mail($_POST['EMail'], "Registrierung abschließen", "Hallo,\n\num die Registrierung abzuschließen, klicken Sie bitte auf den folgenden Link:\n\nhttp://192.168.178.40/cms_new/core/admin/register_activation.php?ID=$ID&Aktivierungscode=$Aktivierungscode", "FROM: $Absender");
echo"Um die Registrierung abzuschließen, rufen Sie Ihr E-Mail-Postfach ab und klicken Sie auf den Aktivierungslink in der soeben an Sie versandten E-Mail.";
}
- //else{
- // echo'<form action="" method="post">';
- // echo'Benutzername: <input maxlength="255" name="Name" type="text"><br>';
- // echo'eMail: <input maxlength="255" name="EMail" type="text"><br>';
- // echo'Wähle dein Passwort: <input maxlength="255" name="pw" type="password"><br>';
- // echo'<input name="Send" type="submit" value="Absenden">';
- // echo'</form>';
- //}
?>
diff --git a/core/blog/posts.php b/core/blog/posts.php
@@ -1,50 +1,34 @@
<?php
- include('../inc/db_connect.inc.php');
- #$query = 'SELECT * FROM posts';
- #$db_command = mysqli_query($query);
-
- /*while($row = mysqli_fetch_object($db_command)){
- echo '</br>';
- echo '</br>';
- echo '<h4>' . $row->title . '</h4>';
- echo '</br>';
- echo '<p>' . $row->text . '</p>';
- echo '</br>';
- echo '</br>';
- echo '<p><i>Erstellt um: ' . $row->time . '</p></i>';
+/**
+* Get posts from Database
+*
+* This script will the post variables with the database data.
+*
+* @author Marcel Radzio <info@nordgedanken.de>
+* @version 0.2 17/08/2014 19:39
+*/
+ //Check if Database connection established
+ if (mysqli_connect_errno()) {
+ printf("Verbindung fehlgeschlagen: %s\n", mysqli_connect_error());
+ exit();
}
-
- while($row = mysqli_fetch_object($db_command)){
- echo '</br>';
- echo '</br>';
- echo '<p><i>Erstellt von: ' . $row->name . '</p></i>';
- }*/
-
-
- if ($resultat = $db->query('SELECT * FROM posts')) {
- // Antwort der Datenbank in ein Objekt übergeben und
- // mithilfe der while-Schleife durchlaufen
+ //Check if Data in it
+ if ($resultat = $db_connection->query('SELECT * FROM posts')) {
+ //Put database data in variables
while($daten = $resultat->fetch_object() ){
- echo '</br>';
- echo '</br>';
- echo '<h4>' . $daten->title . '</h4>';
- echo '</br>';
- echo '<p>' . $daten->text . '</p>';
- echo '</br>';
- echo '</br>';
- echo '<p><i>Erstellt um: ' . $daten->time . '</p></i>';
+ $post_title = $daten->title;
+ $post_text = $daten->text;
+ $post_author = $daten->name;
+ $post_date = $daten->time;
+ $post_categrory = $daten->category;
}
- // Speicher freigeben
$resultat->close();
} else {
- // Sollten keine Datensätze enthalten sein, diese Meldung ausgeben
+ //If no data in Database give error
echo "Es konnten keine Daten aus der Datenbank ausgelesen werden";
}
-// Verbindung zum Datenbankserver beenden
-$db->close();
+// Close database connection
+$db_connection->close();
- if($db_command == 0){
- print ("FEHLER");
- };
diff --git a/core/inc/db_connect.inc.php b/core/inc/db_connect.inc.php
@@ -1,9 +1,14 @@
-<?php
-
-$db_servername = "localhost";
-$db_username = "root";
-$db_password = "1199Mtr3#";
-$db_name = "blog";
-
-@$db = new mysqli("$db_servername", "$db_username", "$db_password", "$db_name");
-
+<?php
+
+$db_servername = 'localhost';
+
+
+$db_username = 'root';
+
+
+$db_password = '1199Mtr3#';
+
+
+$db_name = 'test';
+
+$connection = mysqli_connect($db_servername, $db_username, $db_password, $db_name) or die ("Verbindung war nicht möglich");
+\ No newline at end of file
diff --git a/install/add_database.php b/install/add_database.php
@@ -1,10 +1,112 @@
<?php
+/**
+* Add Database
+*
+* This script add the Database
+*
+* @author Marcel Radzio <info@nordgedanken.de>
+* @version 0.2 18/08/2014 18:51
+*/
+
require_once ('../core/inc/db_connect.inc.php');
- $sql = 'CREATE DATABASE '.$db_name;
+ $sql = "CREATE DATABASE $db_name";
$result = mysqli_query($connection, $sql);
- echo 'Erstellen erfolgreich';
+ echo 'Datenbank erfolgreich erstellt';
+
+
+ copy ('../core/inc/db_connect.inc.php','../core/inc/db_connect.inc.php.1');
+
+
+//###################
+//# MySQL #
+//###################
+
+//#Serverpfad
+require ('../core/inc/db_connect.inc.php.1');
+$filename = '../core/inc/db_connect.inc.php';
+
+if (!$handle = fopen($filename, "w")) {
+ print "Kann die Datei $filename nicht öffnen";
+ exit;
+ }
+fclose($handle);
+// Sichergehen, dass die Datei existiert und beschreibbar ist
+if (is_writable($filename)) {
+
+ // Wir öffnen $filename im "Anhänge" - Modus.
+ // Der Dateizeiger befindet sich am Ende der Datei, und
+ // dort wird $somecontent später mit fwrite() geschrieben.
+ if (!$handle = fopen($filename, "a")) {
+ print "Kann die Datei $filename nicht öffnen";
+ exit;
+ }
+
+// #Serverpfad
+ $serverpfad = $db_servername;
+ $var_str_sp = var_export($serverpfad, true);
+ $var_sp = "<?php\n\n\$db_servername = $var_str_sp;\n";
+
+ // Schreibe $somecontent in die geöffnete Datei.
+ if (!fwrite($handle, $var_sp)) {
+ print "Kann in die Datei $filename nicht schreiben";
+ print "</br>";
+ exit;
+ }
+
+ print "Fertig, in Datei $filename wurde $var_str_sp geschrieben";
+ print "</br>";
+// #Userame
+ $username = $db_username;
+ $var_str_u = var_export($username, true);
+ $var_u = "\n\n\$db_username = $var_str_u;\n";
+
+ if (!fwrite($handle, $var_u)) {
+ print "Kann in die Datei $filename nicht schreiben";
+ exit;
+ }
+
+
+ print "Fertig, in Datei $filename wurde $var_str_u geschrieben";
+ print "</br>";
+// #Passwort
+ $password = $db_password;
+ $var_str_pw = var_export($password, true);
+ $var_pw = "\n\n\$db_password = $var_str_pw;\n";
+ if (!fwrite($handle, $var_pw)) {
+ print "Kann in die Datei $filename nicht schreiben";
+ exit;
+ }
+
+ print "Fertig, in Datei $filename wurde $var_str_pw geschrieben";
+ print "</br>";
+// #DB Name
+ $db_name = $db_name;
+ $var_str_dbn = var_export($db_name, true);
+ $var_dbn = "\n\n\$db_name = $var_str_dbn;\n\n";
+
+ if (!fwrite($handle, $var_dbn)) {
+ print "Kann in die Datei $filename nicht schreiben";
+ exit;
+ }
+
+ print "Fertig, in Datei $filename wurde $var_str_dbn geschrieben";
+ print "</br>";
+// #Funktion der Datenbank
+ if (!fwrite($handle, '$connection = mysqli_connect($db_servername, $db_username, $db_password, $db_name) or die ("Verbindung war nicht möglich");')) {
+ print "Kann in die Datei $filename nicht schreiben";
+ exit;
+ }
+ print "</br>";
+ fclose($handle);
+
+} else {
+ print "Die Datei $filename ist nicht schreibbar";
+}
+
+unlink('../core/inc/db_connect.inc.php.1')
+
?>
diff --git a/install/add_tables.php b/install/add_tables.php
@@ -1,6 +1,14 @@
<?php
+/**
+* Add Tables
+*
+* This script configure the the database tables for the CMS
+*
+* @author Marcel Radzio <info@nordgedanken.de>
+* @version 0.2 18/08/2014 18:49
+*/
+//Posts erstellen
require_once ('../core/inc/db_connect.inc.php');
- mysql_select_db($db_name) or die ('Die Datenbank ist nicht vorhanden');
$sql = "
CREATE TABLE `posts` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
@@ -13,4 +21,20 @@
$result = mysqli_query($connection, $sql)
or die("Anfrage fehlgeschlagen: " . mysql_error());
echo 'Erstellen erfolgreich';
+//User erstellen
+ require_once ('../core/inc/db_connect.inc.php');
+ $sql = "
+ CREATE TABLE `users` (
+ `id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+ `name` VARCHAR( 11 ) NOT NULL ,
+ `email` TEXT NOT NULL ,
+ `password` VARCHAR(50) NOT NULL ,
+ `registertime` TEXT NOT NULL ,
+ `activationcode` INT( 11 ) NOT NULL,
+ `acivated` TEXT NOT NULL
+ ) ENGINE = MYISAM ;
+ ";
+ $result = mysqli_query($connection, $sql)
+ or die("Anfrage fehlgeschlagen: " . mysql_error());
+ echo 'Erstellen erfolgreich';
?>
diff --git a/install/generate_configs.php b/install/generate_configs.php
@@ -1,8 +1,16 @@
<?php
+/**
+* Generate Configs
+*
+* This script generates the basic configs.
+*
+* @author Marcel Radzio <info@nordgedanken.de>
+* @version 0.2 18/08/2014 18:48
+*/
+
//###################
//# MySQL #
//###################
-
//#Serverpfad
$filename = '../core/inc/db_connect.inc.php';
diff --git a/install/install.php b/install/install.php
@@ -1,3 +1,11 @@
+/**
+* Module Check
+*
+* This script checks for requiered modules.
+*
+* @author Marcel Radzio <info@nordgedanken.de>
+* @version 0.2 18/08/2014 18:45
+*/
<!Doctype html>
<html>
<head>
diff --git a/themes/.htaccess b/themes/.htaccess
@@ -0,0 +1 @@
+Options -Indexes
diff --git a/themes/accentbox/contact.php b/themes/accentbox/contact.php
@@ -1,238 +1,41 @@
-<!DOCTYPE html>
-<html crossriderapp2258="true" class=" js flexbox no-touch rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio" dir="ltr" lang="en"><head>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <meta charset="UTF-8">
-
- <title>Accentbox Theme Demo</title>
-
- <!--iOS/android/handheld specific -->
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
-
- <link rel="stylesheet" type="text/css" media="all" href="css/style.css">
-
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
-
- <script src="js/modernizr.js"></script>
- <script src="js/customscript.js" type="text/javascript"></script>
-
- <style type="text/css">
- #header h1, #header h2 {
- text-indent: -999em;
- min-width:200px; margin-top: 0;
- }
- #header h1 a, #header h2 a{
- background: url(images/logo.png) no-repeat;
- min-width: 200px;
- display: block;
- min-height: 80px;
- line-height: 28px;
- }
- .more a, .bubble a:hover, #commentform input#submit {
- background-color: #79ACCD;
- }
- a, .title a:hover, #navigation ul ul li a:hover, #navigation > ul > li > a:hover {
- color:#79ACCD;
- }
- </style>
-
- </head>
-
- <body>
-
- <header class="main-header">
- <div class="container">
- <div id="header">
- <h1 id="logo">
- <a href="#">Accentbox WordPress Theme Demo</a>
- </h1><!-- END #logo -->
- <div class="widget-area widget-header"> <ul><div class="textwidget"></div></ul></div>
- </div><!--#header-->
- </div><!--.container-->
- </header>
-
- <div class="container">
- <div class="secondary-navigation">
- <nav id="navigation">
- <ul class="menu"><li class="menu-item"><a href="#">Home</a></li>
- <li class="menu-item"><a href="#">About</a></li>
- <li class="menu-item"><a href="#">Contact Us</a></li>
- <li class="menu-item"><a href="#">Awesomeness</a></li>
- <li class="menu-item"><a href="#">featured</a></li>
- <li class="menu-item"><a href="#">Brochure</a></li>
- <li class="menu-item"><a href="#">Design</a></li>
- <li class="menu-item"><a href="#">Inspiration</a></li>
- </ul>
- <select><option value="" selected="selected">Go to...</option><option value="#">Home</option><option value="#">About</option><option value="#">Contact Us</option><option value="#">Awesomeness</option><option value="#">featured</option><option value="#">Brochure</option><option value="#">Design</option><option value="#">Inspiration</option></select></nav>
- </div>
- </div>
-
- <div id="page">
+<?php
+ $page = "Contact";
+ include('templates/header.php');
+ include('templates/page_header.php');
+?>
+<div id="page">
<div class="content">
<article class="article">
<div id="content_box">
<div class="post excerpt ">
+ <?php
+ include('../../core/inc/db_connect.inc.php');
+ include('../../core/blog/posts.php');
+ ?>
<header>
<div class="bubble"><a href="#">4</a></div>
<h2 class="title">
- <a href="#" rel="bookmark">Porttitor Lectus Tincidunt Elementum Nascetur Montes</a>
+ <?php
+ echo "<a href='#' rel='bookmark'> $post_title </a>";
+ ?>
</h2>
<div class="post-info">
- <span class="theauthor"><a href="#" rel="author">MTS</a></span>
- <time>March 26, 2012</time>
- <span class="thecategory"><a href="#" rel="category tag">Awesomeness</a></span>
+ <?php
+ echo "<span class='theauthor'><a href='#' rel='author'>$post_author</a></span>";
+ echo "<time>$post_date</time>";
+ echo "<span class='thecategory'><a href='#' rel='category tag'>$post_categrory</a></span>";
+ ?>
</div>
</header><!--.header-->
<div class="post-content image-caption-format-1">
<a href="#" rel="nofollow" id="featured-thumbnail">
- <div class="featured-thumbnail"><img src="images/2457315858_32ffd98aec_n-150x150.jpg" class="attachment-featured wp-post-image" height="150" width="150"><div> </a>
- <p>Nascetur, vel massa enim lundium nec in, phasellus vel nisi
- nec penatibus? Duis phasellus, ut! Amet risus ultricies integer!
- Elementum natoque! Nec, tincidunt risus adipiscing. Magna, augue
- dignissim in elementum diam ultricies. Enim, enim, sed augue nec? Montes
- habitasse ac, ridiculus, placerat cras sed! Dis nunc? Adipiscing, porta
- magna? Nunc non lundium? Vel, pulvinar aenean, </p>
- <p class="more"><a href="#">Read More…</a></p>
- </div>
- </div><!--.post excerpt-->
-
- <div class="post excerpt ">
- <header>
- <div class="bubble"><a href="#">0</a></div>
- <h2 class="title">
- <a href="#" rel="bookmark">Mauris Dictum Libero Id Justo Fusce In Est</a>
- </h2>
- <div class="post-info">
- <span class="theauthor"><a href="#" rel="author">MTS</a></span>
- <time>September 17, 2008</time>
- <span class="thecategory"><a href="#" rel="category tag">Awesomeness</a>, <a href="#" rel="category tag">featured</a></span>
- </div>
- </header><!--.header-->
- <div class="post-content image-caption-format-1">
- <a href="#" rel="nofollow" id="featured-thumbnail">
-
- <div class="featured-thumbnail"><img src="images/6585158069_29788f608e_n-150x150.jpg" class="attachment-featured wp-post-image" height="150" width="150"></div> </a>
- <p>Nulla sagittis convallis arcu. Sed sed nunc. Curabitur
- consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et,
- nibh. Duis vulputate elit in elit. Mauris dictum libero id justo. Fusce
- in est. Sed nec diam. Pellentesque habitant morbi tristique senectus et
- netus et malesuada fames ac turpis egestas. Quisque semper nibh eget
- nibh. Sed tempor. </p>
- <p class="more"><a href="#">Read More…</a>
- </p>
- </div>
- </div><!--.post excerpt-->
-
- <div class="post excerpt last">
- <header>
- <div class="bubble"><a href="#">0</a></div>
- <h2 class="title">
- <a href="#" rel="bookmark">Cum Sociis Natoque Penatibus Magnis</a>
- </h2>
- <div class="post-info">
- <span class="theauthor"><a href="#" rel="author">MTS</a></span>
- <time>September 17, 2008</time>
- <span class="thecategory"><a href="#" rel="category tag">Child Category III</a>, <a href="#" rel="category tag">featured</a>, <a href="#" rel="category tag">Parent Category III</a></span>
- </div>
- </header><!--.header-->
- <div class="post-content image-caption-format-1">
- <a href="#" rel="nofollow" id="featured-thumbnail">
-
- <div class="featured-thumbnail"><img src="images/44066633_e0ab44de09_n-150x150.jpg" class="attachment-featured wp-post-image" height="150" width="150"></div> </a>
- <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed
- eleifend urna eu sapien. Quisque posuere nunc eu massa. Praesent
- bibendum lorem non leo. Morbi volutpat, urna eu fermentum rutrum, ligula
- lacus interdum mauris, ac pulvinar libero pede a enim. Etiam commodo
- malesuada ante. Donec nec ligula. Curabitur mollis semper diam. Duis
- viverra nibh a felis </p>
- <p class="more"><a href="#">Read More…</a>
- </p>
- </div>
- </div><!--.post excerpt-->
-
- <div class="post excerpt ">
- <header>
- <div class="bubble"><a href="#">2</a></div>
- <h2 class="title">
- <a href="#" rel="bookmark">Aliquet Pid Massa Porttitor Dictumst Ac Aenean A Dolor?</a>
- </h2>
- <div class="post-info">
- <span class="theauthor"><a href="#" rel="author">MTS</a></span>
- <time>September 11, 2008</time>
- <span class="thecategory"><a href="#" rel="category tag">Awesomeness</a>, <a href="#" rel="category tag">featured</a></span>
- </div>
- </header><!--.header-->
- <div class="post-content image-caption-format-1">
- <a href="#" rel="nofollow" id="featured-thumbnail">
-
- <div class="featured-thumbnail"><img src="images/2470289415_b98e0e1dae_n-150x150.jpg" class="attachment-featured wp-post-image" height="150" width="150"></div> </a>
- <p>Elit quis est sit integer rhoncus integer vel lorem mattis
- rhoncus natoque, cum. Sed, cras, sed? Dis tincidunt! Vel lacus
- elementum, in augue mus. Placerat, velit tristique et, magna tristique
- dolor magna, aliquam et elementum in elementum! Turpis placerat proin
- porta etiam augue adipiscing ridiculus. In, ridiculus nec aliquam nisi
- turpis rhoncus in tempor. A, </p>
- <p class="more"><a href="#">Read More…</a>
- </p>
- </div>
- </div><!--.post excerpt-->
-
- <div class="post excerpt ">
- <header>
- <div class="bubble"><a href="#">0</a></div>
- <h2 class="title">
- <a href="#" rel="bookmark">Quotes Time!</a>
- </h2>
- <div class="post-info">
- <span class="theauthor"><a href="#" rel="author">MTS</a></span>
- <time>September 11, 2008</time>
- <span class="thecategory"><a href="#" rel="category tag">Awesomeness</a></span>
- </div>
- </header><!--.header-->
- <div class="post-content image-caption-format-1">
- <a href="#" rel="nofollow" id="featured-thumbnail">
-
- <div class="featured-thumbnail"></div> </a>
- <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
- Curabitur quam augue, vehicula quis, tincidunt vel, varius vitae, nulla.
- Sed convallis orci. Duis libero orci, pretium a, convallis quis,
- pellentesque a, dolor. Curabitur vitae nisi non dolor vestibulum
- consequat. Proin vestibulum. Ut ligula. Nullam sed dolor id odio
- volutpat pulvinar. Integer a leo. In et eros </p>
- <p class="more"><a href="#">Read More…</a>
- </p>
- </div>
- </div><!--.post excerpt-->
-
- <div class="post excerpt last">
- <header>
- <div class="bubble"><a href="#">0</a></div>
- <h2 class="title">
- <a href="#" rel="bookmark">A Post With A Left-Aligned Image</a>
- </h2>
- <div class="post-info">
- <span class="theauthor"><a href="#" rel="author">MTS</a></span>
- <time>September 11, 2008</time>
- <span class="thecategory"><a href="#" rel="category tag">Parent Category II</a>, <a href="#" rel="category tag">Parent Category III</a></span>
- </div>
- </header><!--.header-->
- <div class="post-content image-caption-format-1">
- <a href="#" rel="nofollow" id="featured-thumbnail">
-
- <div class="featured-thumbnail"><img src="images/3478158612_4a09ab2d3c-150x150.jpg" class="attachment-featured wp-post-image" height="150" width="150"></div> </a>
- <p>Nulla sagittis convallis arcu. Sed sed nunc. Curabitur
- consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et,
- nibh. Duis vulputate elit in elit. Mauris dictum libero id justo. Fusce
- in est. Sed nec diam. Pellentesque habitant morbi tristique senectus et
- netus et malesuada fames ac turpis egestas. Quisque semper nibh eget
- nibh. Sed tempor. </p>
- <p class="more"><a href="#">Read More…</a>
- </p>
+ <div class="featured-thumbnail"><img src="images/2457315858_32ffd98aec_n-150x150.jpg" class="attachment-featured wp-post-image" height="150" width="150"><div>
+ </a>
+ <?php
+ echo "$post_text";
+ ?>
</div>
</div><!--.post excerpt-->
@@ -244,81 +47,16 @@
</div>
</article>
- <aside class="sidebar c-4-12">
- <div id="sidebars" class="g">
- <div class="sidebar">
- <ul class="sidebar_list">
- <li class="widget widget-sidebar">
- <form method="get" id="searchform" class="search-form" _lpchecked="1">
- <fieldset>
- <input name="s" id="s" value="Search this Site..." type="text">
- <input id="search-image" class="sbutton" src="images/search.png" style="border: 0px none; vertical-align: top;" type="image">
- </fieldset>
- </form>
- </li>
-
- <li class="widget widget-sidebar"><div class="ad-300"><a href="#"><img src="images/stylishuserinterface300x250.jpg" height="250" width="300"></a></div></li>
- <li class="widget widget-sidebar"><h3>Our Sponsors</h3><div class="ad-125"><ul><li class="oddad"><a href="#"><img src="images/125x125.gif" height="125" width="125"></a></li><li class="evenad"><a href="#"><img src="images/125x125.gif" height="125" width="125"></a></li></ul></div></li>
- <li class="widget widget-sidebar"> <h3>Recent Posts</h3> <ul>
- <li><a href="#">Porttitor Lectus Tincidunt Elementum Nascetur Montes</a></li>
- <li><a href="#">Mauris Dictum Libero Id Justo Fusce In Est</a></li>
- <li><a href="#">Cum Sociis Natoque Penatibus Magnis</a></li>
- <li><a href="#">Aliquet Pid Massa Porttitor Dictumst Ac Aenean A Dolor?</a></li>
- <li><a href="#">Quotes Time!</a></li>
- </ul>
- </li>
- <li class="widget widget-sidebar">
- <div class="mts-subscribe">
-
- <form style="" action="#" method="post" target="popupwindow" _lpchecked="1">
- <input value="Your email Address..." type="text">
- <input value="mythemeshop" name="uri" type="hidden"><input name="loc" value="en_US" type="hidden"><input value="Subscribe" type="submit">
- </form>
-
- <div class="result"></div>
-
- </div><!--subscribe_widget-->
-
- </li>
- </ul>
- </div>
- </div><!--sidebars-->
- </aside>
+<?php
+ include('templates/page_navigation.php');
+?>
</div><!--#page-->
</div><!--.container-->
- <footer>
- <div class="container">
- <div class="footer-widgets">
- <div class="f-widget">
- <div class="widget"><h3>Lorem ipsum</h3>
- <div class="textwidget">Lorem
- ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur quam
- augue, vehicula quis, tincidunt vel, varius vitae, nulla. Sed convallis
- orci. Duis libero orci, pretium a.</div>
- </div>
- </div>
- <div class="f-widget">
- <div class="widget"><h3>Consectetuer adipiscing</h3> <div class="textwidget">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. <a href="#">Curabitur</a> quam augue, vehicula quis, tincidunt vel, varius vitae, nulla. Sed convallis orci. Duis libero orci, pretium a.</div>
- </div>
- </div>
- <div class="f-widget last">
- <div class="widget"> <h3>Recent Posts</h3> <ul>
- <li><a href="#">Porttitor Lectus Tincidunt Elementum Nascetur Montes</a></li>
- <li><a href="#">Mauris Dictum Libero Id Justo Fusce In Est</a></li>
- <li><a href="#">Cum Sociis Natoque Penatibus Magnis</a></li>
- <li><a href="#">Aliquet Pid Massa Porttitor Dictumst Ac Aenean A Dolor?</a></li>
- </ul>
- </div>
- </div>
- <div class="copyrights">
- <div class="row" id="copyright-note">
- <span>© 2012</span> - <span>Theme by <a href="http://mythemeshop.com/">MyThemeShop</a>.</span>
- </div>
- <div class="top"><a href="#">Back to Top ↑</a></div>
- </div>
- </div><!--.footer-widgets-->
- </div><!--.container-->
- </footer><!--footer-->
+<?php
+ include('templates/page_footer.php');
+?>
+
+</body>
+</html>
-</body></html>
diff --git a/themes/accentbox/index.php b/themes/accentbox/index.php
@@ -9,15 +9,23 @@
<div id="content_box">
<div class="post excerpt ">
+ <?php
+ include('../../core/inc/db_connect.inc.php');
+ include('../../core/blog/posts.php');
+ ?>
<header>
<div class="bubble"><a href="#">4</a></div>
<h2 class="title">
- <a href="#" rel="bookmark">Porttitor Lectus Tincidunt Elementum Nascetur Montes</a>
+ <?php
+ echo "<a href='#' rel='bookmark'> $post_title </a>";
+ ?>
</h2>
<div class="post-info">
- <span class="theauthor"><a href="#" rel="author">MTS</a></span>
- <time>March 26, 2012</time>
- <span class="thecategory"><a href="#" rel="category tag">Awesomeness</a></span>
+ <?php
+ echo "<span class='theauthor'><a href='#' rel='author'>$post_author</a></span>";
+ echo "<time>$post_date</time>";
+ echo "<span class='thecategory'><a href='#' rel='category tag'>$post_categrory</a></span>";
+ ?>
</div>
</header><!--.header-->
<div class="post-content image-caption-format-1">
@@ -26,7 +34,7 @@
<div class="featured-thumbnail"><img src="images/2457315858_32ffd98aec_n-150x150.jpg" class="attachment-featured wp-post-image" height="150" width="150"><div>
</a>
<?php
- include('../../core/blog/posts.php');
+ echo "$post_text";
?>
</div>
</div><!--.post excerpt-->
diff --git a/themes/accentbox/templates/page_header.php b/themes/accentbox/templates/page_header.php
@@ -1,5 +1,5 @@
<?php
- include('../../../core/config/variables.config.php');
+ include('../../core/config/variables.config.php');
?>
<body>
<header class="main-header">