zCMS [PHP, OOP, Phoenix, Secure]

Status
Not open for further replies.
LOL! All you need to do is replace $_SERVER['REMOTE_ADDR'] with $_SERVER['HTTP_X_FORWARDED_FOR'] or just go into the top of global and do $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];

There's more if you want it's caching to not **** up some of your stuff ^.^
 
It wouldn't **** up, REMOTE_ADDR relays the Cloudflare IP, then if you use CDN HTTP_X_FORWARDED_FOR relays your IP, nothing more... so explain how it can **** up caching or whatever? lol.

Because it caches images and ****. Tbh I just downloaded a wordpress plugin and took ideas from that, but I never tested with out the code, I just figured I needed it for it to work.

---------- Post added at 09:14 PM ---------- Previous post was at 09:14 PM ----------

Could you release a database?

A regular uberdb will do fine (with some adjustments for the users table)
 
Jonty do that and release db, thinks he want it for his new project.:love:
 
hey just looking at some of the code and saw this, just wondering...
comp-me.tpl
PHP:
<?php

    $getBadges = dbquery("SELECT * FROM user_badges WHERE user_id = '" . USER_ID . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 5");
		
?>

<div id="badge-back">
    <ul class="badge-back"><br>
<?php
    while($b = mysql_fetch_assoc($getBadges)){
               //echo ' <img src="http://assets.zaphotel.net/c_images/album1584/' . $b['badge_id'] . '.gif">';
(your doing a while loop but not doing anything with it...)
}
    ?>

    </div>

why not delete it if ur not using the query? i know its not a huge deal but still...
 
hey just looking at some of the code and saw this, just wondering...
comp-me.tpl
PHP:
<?php

    $getBadges = dbquery("SELECT * FROM user_badges WHERE user_id = '" . USER_ID . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 5");
        
?>

<div id="badge-back">
    <ul class="badge-back"><br>
<?php
    while($b = mysql_fetch_assoc($getBadges)){
               //echo ' <img src="http://assets.zaphotel.net/c_images/album1584/' . $b['badge_id'] . '.gif">';
(your doing a while loop but not doing anything with it...)
}
    ?>

    </div>
why not delete it if ur not using the query? i know its not a huge deal but still...

I took it out temporarily, never added it back.
 
I always get this error at the top and it never lets me login:
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 11 in C:\xampp\htdocs\inc\class.core.php on line 197
 
Title: Unknown column 'expert' in 'field list'
Text: Unknown column 'expert' in 'field list' Is what i get O.o? Nice release jonty :)
 
I'm a nub at this can you give a sql? and thanks for the quick reply :)

SQL query:

ALTER TABLE `users` ADD `expert` INT( '0', '1' ) NOT NULL DEFAULT '0'

MySQL said:

#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 ''0','1') NOT NULL DEFAULT '0'' at line 1
 
Last edited:
O.o?
Title: Unknown column 'forumname' in 'field list'
Text: Unknown column 'forumname' in 'field list'

Is There A Way I Can Remove Forumname?
 
Thanks JontyCat You Own The Best Retro

---------- Post added at 06:08 AM ---------- Previous post was at 05:58 AM ----------

Test.
 
Nice release bro, glad to see some people still believe in contributing to the 'boon community ;D
 
Status
Not open for further replies.
Back