PHPretro is way better codedThis has to be the most epic CMS, ever
-|ivar
PHPretro is way better codedThis has to be the most epic CMS, ever
-|ivar
How do i get that anoying alert gone?
LETOP: Pixelen heeft op 25 oktober ene reset gehad!
And:
Client is not working it says: Film niet geladen.
<?php
##########################################||
## PixelenHotel Copyright © 2010 - 2011 ##||
## This CMS is made by pixelenhotel.nl ##||
##########################################||
if(!file_exists('includes/config-.inc.php') && ($_GET['install'] == 'true'))
{
header("location: ./install/index.php");
die('Redirect to installation of PixelCMS');
}
## Settings and Includes for the index.php file
include 'includes/config.inc.php';
##Check Username
if(isset($_GET['do']) && ($_GET['do'] == 'checkUsername'))
{
$pixelData = $pixel->checkExists($_GET['value']);
if($pixelData == false)
{
echo'Beschikbaar';
}else{
echo'Bezet';
}
die();
}
define('TITLE', $taal['login']['title']);
define('NOTIME', true);
include 'includes/header.inc.php';
## Login
if(isset($_POST['login_username']))
{
if(!empty($_POST['login_username']) && (!empty($_POST['login_password'])))
{
if($pixel->checkExists($_POST['login_username']) === true)
{
if(md5($_POST['login_password']) == $pixel->pixelData($_POST['login_username'],'password'))
{
if(in_array($_SERVER['REMOTE_ADDR'],$bannedIPs))
{
$login_error = $taal['login']['banned'].'<br /><i>'.$bannedRedene[$_POST['login_username']].'</i>';
}elseif(in_array($_POST['login_username'],$banned))
{
$login_error = $taal['login']['banned'].'<br /><i>'.$bannedRedene[$_POST['login_username']].'</i>';
}elseif($pixel->pixelData($_POST['login_username'],'rank') != '0')
{
$_SESSION['uId'] = $pixel->pixelData($_POST['login_username'],'id');
$_SESSION['uNaam'] = $pixel->pixelData($_POST['login_username'],'username');
}
else
{
$login_error = $taal['login']['banned'];
}
}
else
{
$login_error = $taal['login']['wrong_pass'];
}
}
else
{
$login_error = $taal['login']['error_nouser'];
}
}
else
{
$login_error = $taal['login']['error_empty'];
}
}
if($pixel->checkSession() === true)
{
if(isset($_POST['login_gotoClient']) && $_POST['login_gotoClient'] == '1'){
header("location: ./security_check?forward=/client");
}else{
header("location: ./security_check");
}
}
?>
<script type="text/javascript">
</script>
<div id="login">
<div id="content">
<div class="beach_image"></div>
<div class="top_heads">
<div style="float: right; background: url(<?php echo ROOT ?>pixel-imaging/avatarhead.php?pixel=Bas&gesture=sml); height: 50px; width: 50px;"></div>
<div style="float: right; background: url(<?php echo ROOT ?>pixel-imaging/avatarhead.php?pixel=Hanneke&gesture=spk); height: 50px; width: 50px;"></div>
<div style="float: right; background: url(<?php echo ROOT ?>pixel-imaging/avatarhead.php?pixel=Niels&gesture=srp); height: 50px; width: 50px;"></div>
<div style="float: right; background: url(<?php echo ROOT ?>pixel-imaging/avatarhead.php?pixel=Erik&gesture=nrm); height: 50px; width: 50px;"></div>
<div style="float: left; background: url(<?php echo ROOT ?>pixel-imaging/avatarhead.php?pixel=Daan&gesture=nrm); height: 50px; width: 50px;"></div>
<div style="float: left; background: url(<?php echo ROOT ?>pixel-imaging/avatarhead.php?pixel=Debbie&gesture=nrm); height: 50px; width: 50px;"></div>
<div style="float: left; background: url(<?php echo ROOT ?>pixel-imaging/avatarhead.php?pixel=Wiki&gesture=sml); height: 50px; width: 50px;"></div>
</div>
<div onClick="window.location = '<?php echo ROOT ?>';" class="logo"></div>
<div class="tags">
<strong><?php echo $taal['tags']['love']; ?>:</strong><br />
<?php
include 'includes/website/tags.php';
?>
</div>
<div class="login">
<?php if(isset($login_error)) { ?>
<div class="error">
<?php echo $login_error ?>
</div>
<?php } ?>
<form action="#" method="post">
<strong><?php echo $taal['login']['username']; ?></strong><br />
<input type="text" class="simple_button" name="login_username" style="width: 242px;" />
<strong><?php echo $taal['login']['password']; ?></strong><br />
<input type="password" class="simple_button" name="login_password" style="width: 242px;" />
<input type="checkbox" class="simple_button" name="login_gotoClient" value="1" style="float: left;" /><strong><?php echo $taal['login']['gotoClient']; ?></strong><br />
<input type="submit" class="simple_button" value="<?php echo $taal['login']['submit']; ?>" />
<input type="button" class="simple_button" onClick="window.location = '/register';" value="<?php echo $taal['login']['register']; ?>" />
</form>
</div>
</div>
</div>
<?php
include 'includes/footer.inc.php';
?>
PHPretro is way better coded![]()
where do you put do not get it?
WARNING: ADD A COLOMN IN THE USERS TABLE!!!
waar moet je zetten snap het niet ?
Can i get a full dutch version of this ????
Of te wel is er een NL versie hiervan ??
Isn't this already dutch?Can i get a full dutch version of this ????
Of te wel is er een NL versie hiervan ??
All works fine now, in dutch
except the following :
---------- Post added at 02:57 AM ---------- Previous post was at 02:41 AM ----------
[/COLOR]and just one more :
"For Those Stuck With Homepages.
I Have Fixed It(Sorta?)
Just Put THIS In your homes_items."
Then i look at the SQL query it shows the Homes_inventory bu not the Homes_items !
Can you post this againg ???
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 02, 2010 at 03:40 PM
-- Server version: 5.1.41
-- PHP Version: 5.3.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!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: `pixelcms`
--
-- --------------------------------------------------------
--
-- Table structure for table `homes_items`
--
CREATE TABLE IF NOT EXISTS `homes_items` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`home_id` int(10) unsigned NOT NULL,
`type` enum('sticker','widget','stickie') NOT NULL DEFAULT 'sticker',
`x` int(11) NOT NULL DEFAULT '0',
`y` int(11) NOT NULL DEFAULT '0',
`z` int(11) NOT NULL DEFAULT '0',
`data` text NOT NULL,
`skin` text NOT NULL,
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`w_type` enum('mijnpixel') NOT NULL,
`item_id` int(10) NOT NULL,
`widget_name` enum('MusiQue') NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1134 ;
--
-- Dumping data for table `homes_items`
--
INSERT INTO `homes_items` (`id`, `home_id`, `type`, `x`, `y`, `z`, `data`, `skin`, `user_id`, `w_type`, `item_id`, `widget_name`)