[UBERDB] PixelCMS V1!

Status
Not open for further replies.
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.

If you havent ALREADY removed The ANNOYING Error.

just Replace Your index page with this.

Code:
<?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';
?>


And This "Film niet geladen." Error.
It Means That You Havent Set Up Your SWFs Properly..
If You Translate It, it Says "Movie Not Loaded" :D

Thank me If I helped :D
 
PHPretro is way better coded :P

That Is True :D

But I Still Prefer CMS Over PHP

Even Though PHP Has Homepages ETC, :D

So does This One, :D 'Coz I fixed It Loool :D

---------- Post added at 06:50 PM ---------- Previous post was at 06:11 PM ----------

does ANYONE Have A Fix For the Auth_Ticket?
Its Driving Me NUTS!
Whatever I Do On The Site, It Just GIVES Me, an Auth_Ticket...
 
I downloaded this and configured it (I think all right) but I have no images, except 1 habbo on the register page, but no other images.

Also I have an error on the register page and a few others
 
Last edited:
where do you put do not get it?

WARNING: ADD A COLOMN IN THE USERS TABLE!!!

waar moet je zetten snap het niet ?

Uhhm, Gewoon eventjes je luie reet uit je stoel halen en de MySql UberDB openen en een Query Erin tieften? :rolleyes:
 
Okay,
I DID Sort of Fix the Homepage Thing..
But How Do I Make It So I Can Store Stuff In My Inventory Or Change The Skins ETC ? :S
 
Can i get a full dutch version of this ????
Of te wel is er een NL versie hiervan ??


Translate Yourself :D

for the client, just use Dutch external texts...

---------- Post added at 09:32 PM ---------- Previous post was at 09:22 PM ----------

Hey.
For Version 2 Of This.
Perhaps Code In Notifications? :D
That would be pretty Awesome :D
 
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 :D (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 ???
 
Last edited:
i just looked at the home.php
And this has values that my original database not have expl. :
mijnpixel = stickie
w_type = type
naam - name
etc.
etc.

Do you got a full SQLDB for this site ????
 
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 :D (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 ???

Erm.
Im Confused.
I will Just Go With What I THINK You Said,,,

I Suppose Your Stuck?
First Of All.
What Database Do You Use?

Secondly. Run this Into Your Database :D (PS YOU WILL GET AN ERROR! BUT THE SQL WILL STILL HAVE RUN!!


Code:
 -- 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`)

Just Put That In Your "home_items"

If you dont HAVE That In Your Database.
Change It.

To THIS:
http://forum.ragezone.com/f353/complete-database-v3-703163/
 
Last edited:
Thanks MikeHunt i use uberdb and got the V3 imported,

what i mean was on Page 4 of the post the SQL query state

CREATE TABLE IF NOT EXISTS `homes_inventory` ( ........ etc

and nothing about homes_items that is where i got confused !
But it's solved now :)

All works now accept i can't save the changes i made on the profile page, also the chat doesn't work ???
 
Last edited:
Ok no chat, but how do i get those profiles to work, it lets me edit them, i can choose background, but i can't buy anything and it doesn't saves the background ....
 
Status
Not open for further replies.
Back