- Joined
- Mar 4, 2011
- Messages
- 418
- Reaction score
- 44
Hey, I am not back to stay just to look around.
Heres my unfinished template system, this is not for somebody looking to use it considering its not even closed to finished. I was just testing around with stuff and I got to bored with it so I am releasing it.
If you know how to finish it, congrats.
Here ya go
connect.php
lol @ meme 
config.php (change settings)
index.php
and run this SQL.

Heres my unfinished template system, this is not for somebody looking to use it considering its not even closed to finished. I was just testing around with stuff and I got to bored with it so I am releasing it.
If you know how to finish it, congrats.
Here ya go
connect.php
PHP:
<?php
require_once('config.php');
$lol = mysql_connect($dbhost,$dbuser,$dbpassword);
mysql_select_db($db,$lol);
if(!$lol){
die('<img src="http://cdn.memegenerator.net/instances/400x/16391317.jpg" />');
}
else{
}
?>
config.php (change settings)
PHP:
<?php
$dbuser = "root";
$dbhost = "localhost";
$dbpassword = "pass";
$db = "db";
?>
PHP:
<html>
<body>
<head>
<title>Test</title>
</title>
<?php
require_once('connect.php');
$lol = mysql_query("SELECT * FROM style");
$lol123 = mysql_fetch_assoc($lol);
$bg = $lol123['background-color'];
$font = $lol123['font-family'];
$color = $lol123['link-color'];
echo '<style type="text/css">
body{
background-color:#';
echo $bg;
echo ';';
echo 'font-family:';
echo $font;
echo ';}';
echo '';
echo 'a:link {color:#';
echo $color;
echo '}';
echo 'a:visited {color:#';
echo $color;
echo ';}';
echo '.ex
{
width:100%px;
height:100px;
background-color:#336699;
margin: -8;
padding: 0em;
}';
echo '.loll
{
width:100%px;
height:26px;
background-color:#1D536E;
margin: -8;
padding: 6px;
};';
echo '</style>';
echo '<div class="ex">';
echo '</div>';
echo '<div class="loll">';
$res = mysql_query("SELECT * FROM navigator");
while ($row = mysql_fetch_assoc($res)) {
echo ' ';
echo '<a href="';
echo $row["link"];
echo '">';
echo $row["name"];
echo '</a>';
}
echo '</div>';
?>
pls give me your constructive critism and if this helped you, like it.-- phpMyAdmin SQL Dump
-- version 3.4.5
-- phpMyAdmin
--
-- Host: localhost
-- Generation Time: Mar 19, 2012 at 06:55 AM
-- Server version: 5.5.16
-- PHP Version: 5.3.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `temp`
--
-- --------------------------------------------------------
--
-- Table structure for table `navigator`
--
CREATE TABLE IF NOT EXISTS `navigator` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`link` text NOT NULL,
`fontcolor` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `navigator`
--
INSERT INTO `navigator` (`id`, `name`, `link`, `fontcolor`) VALUES
(1, 'Test', 'http://google.ca', '000000'),
(2, 'LOL', 'falfh', 'FFFFFF');
-- --------------------------------------------------------
--
-- Table structure for table `style`
--
CREATE TABLE IF NOT EXISTS `style` (
`background-color` text NOT NULL COMMENT 'The background color of your website (HEX)',
`font-family` text NOT NULL COMMENT 'Font family for everything on your website',
`font-color` text NOT NULL COMMENT 'Font color of your font',
`link-color` text NOT NULL COMMENT 'Color of hyperlinks on your website',
`box-colors` text NOT NULL COMMENT 'Color of your boxes'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `style`
--
INSERT INTO `style` (`background-color`, `font-family`, `font-color`, `link-color`, `box-colors`) VALUES
('C0C0C0', 'Tahoma', '330000', 'FFFFFF', '3399CC');
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;


