http://img594.imageshack.us/img594/1323/logopqk.png
AdvacPHP - Also known as Advac Content Management System
AdvacPHP is a simple coded news system, it allows site owners to keep there users up to date with small articles!
The CMS comes with a admin panel allowing you to create news/articles along with the article creators name!
Images:
http://img31.imageshack.us/img31/7367/rz1d.png
http://img560.imageshack.us/img560/8963/rz2.png
http://img195.imageshack.us/img195/9833/rz3.png
Snippets:
The CMS is in BETA stages, and will be secured more in R2. Also, please don't flame me, as I am quite new to PHP!PHP Code:<?php
$query = "SELECT id, title, author, post, DATE_FORMAT(date, '%d %M, %Y') as sd FROM news_posts";
$result = @mysql_query($query);
if ($result) {
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo '<p><b><h1>'.$row['title'].'</h1></b>
<h2>Posted by: <b>'.$row['author'].'</b><br /><br></h2>
<h3><b><i>Article:</b></i><br> '.$row['post'].'<br /></h3>
';
}
} else {
echo 'There are no news posts to display!';
}
?>
$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error());
@mysql_select_db (DB_NAME) OR die('Could not select the database: ' . mysql_error() );
$title = "AdvacPHP";
$motto = "Free news system for your website!";
$logo = "../images/logo.png";
$text = "<br>Keeping you updated!";
$latest = "Latest news";
Download: advacphp.rar
How to setup?
1) Edit global.php
2) Edit admin/checklogin.php
3Create a db called advacphp and insert:
If you have any suggestions, feel free to comment!PHP Code:-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 07, 2012 at 10:57 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: `advacphp`
--
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nid` int(11) NOT NULL,
`title` varchar(70) NOT NULL,
`author` varchar(50) NOT NULL,
`comment` text NOT NULL,
`DATE` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `members`
--
CREATE TABLE IF NOT EXISTS `members` (
`id` int(4) NOT NULL,
`username` varchar(65) NOT NULL DEFAULT '',
`password` varchar(65) NOT NULL DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `members`
--
INSERT INTO `members` (`id`, `username`, `password`) VALUES
(1, 'Admin', 'abcdefghi123456789');
-- --------------------------------------------------------
--
-- Table structure for table `news_posts`
--
CREATE TABLE IF NOT EXISTS `news_posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(70) NOT NULL,
`author` varchar(50) NOT NULL,
`post` text NOT NULL,
`DATE` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
--
-- Dumping data for table `news_posts`
--
INSERT INTO `news_posts` (`id`, `title`, `author`, `post`, `DATE`) VALUES
(6, 'Welcome to AdvacPHP', 'AdvacAdmin', 'Hello, welcome to AdvacPHP, Advac is still in development, so yeah, enjoy?', '2012-01-07 20:41:34');
/*!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 */;
I will probably re-code the adminlogin later on!
This is free to use and free to develop off!

