Stormy
Member
- Apr 11, 2013
- 69
- 11
Hello guys!
A few days ago I started making a simple CMS, you can expand it later yourself if you wish.
Let's start with the screenshots:
Index (login and register):
Myaccount:
Administrator dashboard:
The project is not finished yet. When it is finished it'll be released for everyone!
Snippets:
Greetings me!
A few days ago I started making a simple CMS, you can expand it later yourself if you wish.
Let's start with the screenshots:
Index (login and register):
You must be registered for see links
Myaccount:
You must be registered for see links
Administrator dashboard:
You must be registered for see links
The project is not finished yet. When it is finished it'll be released for everyone!
Snippets:
PHP:
<?php
/*
* _____ _ _
*|_ _| (_) |
* | | _ __ ___ __ _ _ __ _| |_ _ _
* | | | '_ \/ __|/ _` | '_ \| | __| | | |
* _| |_| | | \__ \ (_| | | | | | |_| |_| |
* _____|_| |_|___/\__,_|_| |_|_|\__|\__, |
* __/ |
* |___/
* ----------------------------------------------------
* InsanityCMS a simple homemade CMS by Stormy aka Rob!
* -----------------------------------------------------
* Copyright © Rob 2014
* -----------------------------------------------------
* Version: 1
* -----------------------------------------------------
*/
session_start();
//Database connection //
$host = "localhost"; // Your host //
$user = "root"; // Your database user //
$pass = ""; // Your database password //
$db = "db"; // Your database name //
$connect = new mysqli($host, $user, $pass, $db);
if ($connect->connect_errno) {
echo "Failed to connect to MySQL: (" . $connect->connect_errno . ") " . $connect->connect_error;
}
// website settings //
$version = "1.0";
$url = "http://localhost";
$sitename = "InsanityCMS";
$maintenance = false;
$welcomemessage = true;
$importantnotice = true;
$admindashboardmessage = true;
?>
PHP:
if(isset($_SESSION['name'])) {
$settings = $connect->query("SELECT * FROM users WHERE username='".$_SESSION["name"]."'");
$row = mysqli_fetch_assoc($settings);
$motto = $row['motto'];
$coins = $row['coins'];
$email = $row['email'];
$rank = $row['rank'];
$pf_description = $row['profile_description'];
} else {
echo "";
}
if(isset($_POST["update"])) {
$motto1 = $connect->real_escape_string($_POST["motto"]);
$email1 = $connect->real_escape_string($_POST["email"]);
$update = $connect->query("UPDATE users SET motto WHERE username='".$_SESSION["name"]."', motto= '".$motto1."', email= '".$email1."' ");
}
Greetings me!