Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Illumina CMS [PHP, OOP, Phoenix/Butterfly, Updated]

Status
Not open for further replies.
Brad
Joined
Aug 8, 2007
Messages
422
Reaction score
14
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

No it's the original one i'll redownload the cms and try that
 
Experienced Elementalist
Joined
Nov 25, 2012
Messages
270
Reaction score
17
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

I provided a userprofile.php edit in one of the last few pages, check for it and it will fix your issue.

Afraid it didn't fix it, it's still saying I have no friends online.
 
Brad
Joined
Aug 8, 2007
Messages
422
Reaction score
14
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

got it working now, 1 promlem can't login houskeeping? says wrong password

and also, group badges don't work
 
Junior Spellweaver
Joined
Jun 1, 2010
Messages
152
Reaction score
27
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

got it working now, 1 promlem can't login houskeeping? says wrong password

and also, group badges don't work
Your minrank in hk_fuses.sql for login is probably higher than your rank, Zap uses a lot of ranks ;P
Group badges have NOTHING to do with Illumina CMS. Swfs, habbo-imaging and your emulator work with group badges.
 
Brad
Joined
Aug 8, 2007
Messages
422
Reaction score
14
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

yeah i know that, Ubercms 2.0.1 works with it, This doesn't
I'v got habbo-imaging in there.
 
Newbie Spellweaver
Joined
Feb 1, 2013
Messages
45
Reaction score
8
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

I get this error when i run the querie:
Feil
SQL-spørring:

ALTER TABLE `users` ADD `position` VARCHAR( 30 ) NOT NULL ALTER TABLE `users` ADD `acc_pornbanned` ENUM( '0', '1' ) NOT NULL DEFAULT '0'

MySQL sa:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `users` ADD `acc_pornbanned` ENUM('0','1') NOT NULL DEFAULT '0'' at line 2
 
Brad
Joined
Aug 8, 2007
Messages
422
Reaction score
14
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

ALTER TABLE `users` ADD `position` VARCHAR( 30 ) NOT NULL ALTER TABLE `users` ADD `acc_pornbanned` ENUM( '0', '1' ) NOT NULL DEFAULT '0'

run thay on its own? work then, Or run the last 2 queries seperately
 
Newbie Spellweaver
Joined
Feb 1, 2013
Messages
45
Reaction score
8
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

ALTER TABLE `users` ADD `position` VARCHAR( 30 ) NOT NULL ALTER TABLE `users` ADD `acc_pornbanned` ENUM( '0', '1' ) NOT NULL DEFAULT '0'

run thay on its own? work then, Or run the last 2 queries seperately

Thank you, but when i enter phpmyadmin: Skjermbilde.PNG - Illumina CMS [PHP, OOP, Phoenix/Butterfly, Updated] - RaGEZONE Forums

phpMyAdmin - Error
Can not start sessjonen without error, check the error messages in your PHP and / or webtjenerloggfil and configure your PHP installation properly.


Hmm i think WTF? Whats happend? Can you or someone help me? Or i just need to reinstall xampp? I use xampp 1.7.3 with this CMS.

I have one error to: When the client loads up to 100% it send me to with a white page.
Here is my config:
<?php class LightCMS {
// o-------------------------------------------------------o
// | Welcome to LightCMS - a simple and effective way to |
// | manage your hotel. Simply set the variables in this |
// | file, and you're on your way to a successful start. |
// | Good luck! -Jonty |
// o-------------------------------------------------------o

// Database Information (IMPORTANT)
public $db_hostname = "localhost";
public $db_username = "root";
public $db_password = "MYDATABASEPASSWORD";
public $db_dbname = "habzo";

// Password Hashing Options (IMPORTANT)
// Valid options:
// MD5 (Uber 1, RevCMS styled hashing)
// Normal (Uber 2 & Illumina styled hashing)
public $hashing_method = "Normal";

// Site Information (IMPORTANT)
public $site_url = "http://localhost";
public $site_name = "Zap Hotel";
public $site_short = "Zap";
public $facebook_account = "ZapHotel";
public $twitter_account = "zaphotelnet";
public $maintenance = false;
public $thehabbos_enabled = false;
public $thehabbos_username = "jcat";
public $c_images = "http://localhost/swfs/c_images";

// Misc Settings
public $pin_code = "1234";
public $FORCE_SSL = false;
public $flash_client_dump = true;
public $mus_ip = '127.0.0.1';
public $mus_port = '30001';

// Registration Controls
public $max_per_ip = 30;
public $reg_enabled = true;
public $default_credits = "15000";
public $default_pixels = "15000";
public $default_homeroom = "598898";
public $default_look = "hd-180-2.sh-290-92.lg-275-92.ch-3030-63.hr-831-61";
public $default_rank = "2";
public $default_motto = "I am new at Zap, hey!";
public $default_gender = "M";

// Server Settings
public $server_type = "Butterfly"; // Phoenix or Butterfly

// Caching Settings
public $apc_enabled = false;


// Client Settings
public $connection_info_host = "localhost";
public $connection_info_port = "30000";
public $variables = "http://localhost/swfs/external_variables.txt";
public $texts = "http://localhost/swfs/external_flash_texts.txt";
public $override_texts = "http://localhost/swfs/external_flash_override_texts.txt";
public $productdata = "http://localhost/swfs/productdata.txt";
public $furnidata = "http://localhost/swfs/furnidata.txt";
public $baseurl = "http://localhost/swfs";
public $habbo_swf = "http://localhost/swfs/habbo.swf";
public $loadingtext = "Please wait! Zap 2.0 is loading.";

// o-------------------------------------------------------------o
// | THIS IS WHERE THE CODING STARTS! DO NOT EDIT IF YOU ARE NEW |
// o-------------------------------------------------------------o
private $extDir = "engine/classes/ext/";
private $classDir = "engine/classes/";
public function exec() {
require $this->extDir . "class_raintpl.php";
require $this->classDir . "class_users.php";
require $this->classDir . "class_settings.php";
require $this->classDir . "class_core.php";
require $this->classDir . "class_db.php";
require $this->classDir . "class_tpl.php";
$this->MySQLi['Hostname'] = $this->db_hostname;
$this->MySQLi['Username'] = $this->db_username;
$this->MySQLi['Password'] = $this->db_password;
$this->MySQLi['Database'] = $this->db_dbname;
session_start();
}
public static function getMainStories($amt) {
global $db, $tpl;
if($r = $db->query("SELECT id,title,topstory_image,snippet FROM site_news ORDER BY id DESC LIMIT " . $amt . "")) {
$c = 0;
while($a = $r->fetch_assoc()) {
$disp = 'block';
$imgurl = $a['topstory_image'];
if($c > 0) { $disp = 'none'; }
$_seo = $a['id'] . "-" . strtolower(str_replace(' ', '-', $a['title']));
echo '<div class="topstory" style="background-image: url(' . $imgurl . '); display: ' . $disp . ';">
<h4>Latest news</h4>
<h3><a href="' . WWW . '/articles/' . $_seo . '">' . $a['title'] . '</a></h3>
<p class="summary">
' . $a['snippet'] . '
</p>
<p>
<a href="' . WWW . '/articles/' . $_seo . '">Read more »</a>
</p>
</div>';
$c++;
}
echo '<div id="topstories-nav" style="display: none"><a href="#" class="prev">« Previous</a><span>1</span> / ' . $c . '<a href="#" class="next">Next »</a></div>';
}
else {
$db->databaseError($db->error);
}
}
public static function getSubStories() {
global $db;
if($r = $db->query("SELECT id,title,datestr FROM site_news ORDER BY id DESC LIMIT 3,3")) {
$oE = "odd";
while($a = $r->fetch_assoc()) {
if($oE == "odd") { $oE = "even"; } else { $oE = "odd"; }
$_seo = $a['id'] . "-" . strtolower(str_replace(' ', '-', $a['title']));
echo '<li class="' . $oE . '">
<a href="' . WWW . '/articles/' . $_seo . '">' . stripslashes($a['title']) . ' »</a><div class="newsitem-date">' . $a['datestr'] . '</div>
</li>';
}
}
else {
$db->databaseError($db->error);
}
}
public static function drawNewsList($selectedId) {
global $db;
if($listquery = $db->query("SELECT id,title FROM site_news ORDER BY id DESC LIMIT 50")) {
while($newslist = $listquery->fetch_assoc()) {
$_seo = $newslist['id'] . "-" . strtolower(str_replace(' ', '-', $newslist['title']));
if($newslist['id'] == $selectedId) {
echo "<li>" . $newslist['title'] . "</li>";
}
else {
echo "<li><a href='" . WWW . "/articles/" . $_seo . "'>" . stripslashes($newslist['title']) . "</a></li>";
}
}
}
else {
$db->databaseError($db->error);
}
}
public static function getHotCampaigns() {
global $db;
if($get = $db->query("SELECT id,enabled,image_url,caption,descr,url FROM site_hotcampaigns ORDER BY id DESC")) {
$oddEven = "odd";
while($camps = $get->fetch_assoc()) {
$imgurl = $camps['image_url'];
$url = $camps['url'];
if($oddEven == "odd") { $oddEven = "even"; } else { $oddEven = "odd"; }
if($camps['enabled'] == 1) {
echo '<li class="' . $oddEven . '">
<div class="hotcampaign-container">
<a href="' . $url . '">
<img src="' . $imgurl . '" align="left" alt="' . $camps['caption'] . '"/></a>
<h3>' . $camps['caption'] . '</h3>
<p>' . $camps['descr'] . '</p>
<p class="link"><a href="' . $url . '">Go there »</a></p>
</div>';
}
}
}
else {
$db->databaseError($db->error);
}
}
public function errorMessage($str) {
return '<center><font color="red"><b>' . $str . '</center></font></b>';
}
public function successMessage($str) {
return '<center><font color="green"><b>' . $str . '</center></font></b>';
}
public function Mus($header, $data = '') {
$musData = $header . chr(1) . $data;
$sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
@socket_connect($sock, $this->mus_ip, $this->mus_port);
@socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE);
@socket_close($sock);
}
public static function drawBadgeList() {
global $users, $db, $light;
echo "<table align='center'>";
if($bdq = $db->query("SELECT badge_id,cost FROM badge_shop")) {
while($bdi = $bdq->fetch_assoc()) {
if(!$users->doesUserHaveBadge(USER_ID, $bdi['badge_id'])) {
$src = "http://";
echo "<tr>";
echo "<td><img src='" . $light->c_images . "/album1584/" . $bdi['badge_id'] . ".gif'></td>";
echo "<td style='font-size:11px;'><form method='post'><input type='hidden' value='" . $bdi['badge_id'] . "' name='BadgeId'> <br />
This badge costs " . number_format($bdi['cost']) . " coins. <br />
<input type='submit' value='Purchase this badge'></form></td>";
echo "</tr>";
}
}
}
else {
$db->databaseError($db->error);
}
echo "</table>";
}
public static function drawRandomHabbos() {
global $db, $users;
if($gethabbosq = $db->query("SELECT username FROM users WHERE online = '1' ORDER BY RAND() LIMIT 18")) {
$i = 0;
while($randomHabbo = $gethabbosq->fetch_assoc()) {
echo '<div id="active-habbo-data-' . $i . '" class="active-habbo-data">
<div class="active-habbo-data-container">
<div class="active-name ' . (($users->userVar($randomHabbo['username'], 'online') == "1") ? 'online' : 'offline') . '">' . $users->userVar($randomHabbo['username'], 'username') . '</div>
Zap created on: ' . $users->userVar($randomHabbo['username'], 'account_created') . '
<p class="moto">' . $users->userVar($randomHabbo['username'], 'motto') . '</p>
</div>
</div>
<input type="hidden" id="active-habbo-url-' . $i . '" value="' . WWW . '/user/' . $users->userVar($randomHabbo['username'], 'username') . '"/>
<input type="hidden" id="active-habbo-image-' . $i . '" class="active-habbo-image" value="' . WWW . '/avatar.php?figure=' . $users->userVar($randomHabbo['username'], 'look') . '&direction=4&head_direction=4" />';
$i++;
}
}
}
public static function drawStaffPageForRank($rankno) {
global $db, $light, $users;
if($getranks = $db->query("SELECT username FROM users WHERE rank = '" . $rankno . "' ORDER BY id ASC")) {
$oddEven = "fff";
while($udata = $getranks->fetch_assoc()) {
if($oddEven != "E6E6E6") {
$oddEven = "E6E6E6";
}
else {
$oddEven = "fff";
}

$u = $udata['username'];
$displayname = $u;

$getBadge = $db->query("SELECT badge_id FROM user_badges WHERE user_id = '" . $users->userVar($u, 'id') . "' AND badge_slot = '1' LIMIT 1");
while($bI = $getBadge->fetch_assoc()) {
$usersBadge = $bI['badge_id'];
}
if($users->userVar($u, 'online') == "1") { $online = "online_anim"; } else { $online = "offline"; }
echo '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: #' . $oddEven . '; font-size:11px;">
<tbody>
<tr>
<td valign="middle" width="25">
<img style="margin-top: -10px;" src="' . WWW . '/avatar.php?figure=' . $users->userVar($u, 'look') . '">
</td>
<td valign="top">
<img src="' . WWW . '/images/habbo_' . $online . '.gif" align="left"><b style="font-size: 110%;"><a href="' . WWW . '/user/' . $u . '">' . $displayname . '</a></b><br /><br />
Motto: <i>' . $users->userVar($u, 'motto') . '</i> <br />
<img src="' . $light->c_images . '/album1584/' . $usersBadge . '.gif">
</td>
</tr>
</tbody>
</table>';
}
}
else {
echo "<i>There are currently no staff members for this group.</i>";
}
}
public static function getWallComments($pageid) {
global $db, $light, $users;
$getComments = $db->query("SELECT id, poster_id, message, likes FROM profile_wall WHERE page_id = '" . $pageid . "' ORDER BY id DESC LIMIT 10");
echo '<table style="font-size:11px;">';
while($cData = $getComments->fetch_assoc()) {
$username = $users->userVar($users->idToName($cData['poster_id']), 'username');
echo "<tr>";
echo "<td><img src='" . WWW . "/avatar.php?figure=" . $users->userVar($username, 'look') . "&gesture=sml&size=m'><br /><center><a href='" . WWW . "/user/" . $username . "'><b>" . $username . "</b></a>";
if($pageid == USER_ID || USER_RANK > 10) {
echo "<br /><br /><a href='" . WWW . "/user/" . $users->idToName($pageid) . "&deleteComment=" . $cData['id'] . "'>Delete</a>";
}
echo "</center></td>";
echo "<td>" . stripslashes($cData["message"]);
echo "</td>";
echo "</tr>";

}
echo "</table>";
}
public static function getUnreadCount($userid) {
global $db;
$query = $db->query("SELECT null FROM profile_wall WHERE page_id = '" . $userid . "' AND owner_read = '0' LIMIT 10");
return $query->num_rows;
}
public static function getOnlineFriends($userid) {
$friendsList = array();
global $db, $users;
$getFriends = $db->query("SELECT receiver,sender FROM messenger_friendships WHERE receiver = '" . $userid . "' OR sender = '" . $userid . "'");
while($friends = $getFriends->fetch_assoc()) {
if($friends['receiver'] != $userid && $friends['sender'] == $userid) {
$friendsList[] = $friends['receiver'];
}
else if($friends['sender'] != $userid && $friends['receiver'] == $userid) {
$friendsList[] = $friends['sender'];
}
}
$friendCount = count($friendsList);

if($friendCount > 0) {
$noFriends = true;
for($i = 0; $i <= $friendCount; $i++) {
$username = $users->idToName($friendsList[$i]);
if($users->userVar($username, 'online') == 1) {
echo "<a href='" . WWW . "/user/" . $username . "'><img src='" . WWW . "/avatar.php?figure=" . $users->userVar($username, 'look') . "&gesture=wav&size=s'></a>";
$noFriends = false;
}
}
if($noFriends) {
echo "<i>This user does not have any friends online.</i>";
}
}
else {
echo "<i>This user does not have any friends.</i>";
}
}
public static function displayUserBadges($userid) {
global $db, $light;
$querye = $db->query("SELECT badge_id FROM user_badges WHERE user_id = '" . $userid . "'");
while($badges = $querye->fetch_assoc()) {
echo "<img src='" . $light->c_images . "/album1584/" . $badges['badge_id'] . ".gif'>";
}
}
}
?>
Hmm, i dont have this problem with HabboPHP and Revcms, so its not the swfs :)
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Dec 17, 2010
Messages
38
Reaction score
4
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

Would have you Database if it please you?
 
Newbie Spellweaver
Joined
Apr 1, 2013
Messages
5
Reaction score
0
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

Untitledccccc - Illumina CMS [PHP, OOP, Phoenix/Butterfly, Updated] - RaGEZONE Forums Untitled - Illumina CMS [PHP, OOP, Phoenix/Butterfly, Updated] - RaGEZONE Forums Can someone help with these errors?
 

Attachments

You must be registered for see attachments list
Joined
Apr 30, 2007
Messages
2,339
Reaction score
1,547
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

Thank you, but when i enter phpmyadmin: View attachment 126627

phpMyAdmin - Error
Can not start sessjonen without error, check the error messages in your PHP and / or webtjenerloggfil and configure your PHP installation properly.


Hmm i think WTF? Whats happend? Can you or someone help me? Or i just need to reinstall xampp? I use xampp 1.7.3 with this CMS.

I have one error to: When the client loads up to 100% it send me to with a white page.
Here is my config:
Hmm, i dont have this problem with HabboPHP and Revcms, so its not the swfs :)

Try navicat instead of phpmyadmin. As for the other problem, that sounds like your external variables to me
 

Bow

Skilled Illusionist
Joined
Jan 28, 2012
Messages
355
Reaction score
163
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

Why remove minimail or not do it?
 
Junior Spellweaver
Joined
May 14, 2009
Messages
130
Reaction score
23
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

Jonty, apparently this CMS has exploits. Two users somehow exploited the CMS on my hotel and fucked everything up. If you would, please add me on Skype. This is urgent.

EDIT: Nevermind, found out the cause. Not an exploit.
 
Last edited:
Brad
Joined
Aug 8, 2007
Messages
422
Reaction score
14
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

why is my groups not working on this cms but works on uber 2.0.1?
 
Joined
Apr 30, 2007
Messages
2,339
Reaction score
1,547
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

Jonty, apparently this CMS has exploits. Two users somehow exploited the CMS on my hotel and fucked everything up. If you would, please add me on Skype. This is urgent.

There are no exploits.

why is my groups not working on this cms but works on uber 2.0.1?

You need to add the habbo imaging stuff to your .htaccess
 
Experienced Elementalist
Joined
Mar 17, 2013
Messages
245
Reaction score
28
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

Just getting a white screen when it goes to index. No code in the view source or anything.
 
Experienced Elementalist
Joined
Mar 17, 2013
Messages
245
Reaction score
28
Re: [REL] Illumina CMS [PHP, OOP, MySQLi, Uber 3]

It's okay I fixed. Sorry my bad, I was using IIS (stupidly haha). Any clue why avatars won't show up on pages? Like for /me or for user profile?
 
Status
Not open for further replies.
Back
Top