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!

Recent content by Predict

  1. Predict

    RevCMS save IP for every login

    Here are some more contributions function getIP() { /* This function attempts to get real IP address. */ if (getenv('HTTP_CLIENT_IP')) { $ip = getenv('HTTP_CLIENT_IP'); } elseif (getenv('HTTP_X_FORWARDED_FOR')) { $ip = getenv('HTTP_X_FORWARDED_FOR'); } elseif...
  2. Predict

    RevCMS save IP for every login

    Awesome contribution You asked for suggestions and mine would be to update the user's last online, rather than inserting data for when they were last online, I assume you have chat logs and timestamps for this kind of thing already? $this->database->query("UPDATE users SET timestamp = ...
  3. Predict

    Custom Phoenix CMS (Design, layout, code, images, zip) Download

    I had this stored away, thought I'd contribute You must be registered for see element. Index/Login Register Documentation Source example Download: You must be registered for see element. Full list of images: You must be registered for see element.
  4. Predict

    [pre-release] dev cms

    I've been pretty busy for the past week, but here's the new template class that'll I'll be using from now on. Basically I didn't like the fact that the template class (original) was using two classes and that there were functions inside the class that weren't needed etc. <?php if...
  5. Predict

    [pre-release] dev cms

    Great work (: Sorry I haven't been active with the project, recently. What I've done since the last update, I've changed, renamed, removed and updated the directories, I somewhat like the new folder structure and when you get chance, please give feedback. I've modified some of the code inside...
  6. Predict

    [pre-release] dev cms

    public static function users_search ($user) { GLOBAL $config, $db; $query = ('SELECT username, look FROM users WHERE username LIKE = ?'); if ($statement = $db->prepare($query)) { $statement->bind_param('s', '%'.$user.'%'); $statement->execute()...
  7. Predict

    [pre-release] dev cms

    They introduce global state into a program. Most programmers should be familiar with why global state is bad. They introduce tight coupling between the singleton and any class that uses it. This means you can't reuse the classes in question without reusing the singleton too. They make unit...
  8. Predict

    [pre-release] dev cms

    I created the array above the loop (while()) to first set up the appropriate condition because of variable scoping, then with the variable that has [] adds a new element to the array, just like the push(), but without the overhead of calling a function. You must be registered for see element...
  9. Predict

    [pre-release] dev cms

    Alright, I didn't do anything last night cause I went out. ANYWAY. I've created the function to show people who are online, including a pagination to limit the number of people shown, per page. public static function users ($ID = NULL) { GLOBAL $config, $db; $query = ('SELECT count(ID)...
  10. Predict

    [pre-release] dev cms

    Anyway, staff page is here at last. public static function staff () { GLOBAL $config, $db; $query = ('SELECT username, rank, look FROM users WHERE rank >= 4 ORDER BY rank ASC'); $ranks = array(4 => "Silver Hobba", 5 => "Gold Hobba" , 6 => "Moderator", 7 => "Administrator"); if...
  11. Predict

    [pre-release] dev cms

    I've looked over each function and placed the close() statement appropriately and alterted some functions that didn't require a return on true and false. E.G. public function user_id ($username) { GLOBAL $db; $query = ('SELECT ID FROM users WHERE username = ? LIMIT 1'); if ($statement...
  12. Predict

    [pre-release] dev cms

    True true, I knew something was wrong with the insert jaajaja FEEL FREE TO IMPROVE THE SOURCE!
  13. Predict

    [pre-release] dev cms

    Oh ye I would like to credit HabbCrazy (habbo fansite) for the backdrop on the skyscrappers, clouds and some various images used. Secondly I would like to credit Habbo for some images being used. Here is the markup for the me.tpl small ain't it? :P <!DOCTYPE html> <html lang="en"> <head>...
  14. Predict

    [pre-release] dev cms

    Alright I started the layout for users (online) and I came up with this. I also added the search function to the personal page. Any contributions to the project would be great, you all have the markup if you want to create any pages jajaa
  15. Predict

    [pre-release] dev cms

    I kinda started creating the register function to create accounts, but I think I'm missing a table to insert into or possibly some fields, who knows. Uhm public function user_register($username, $password, $email) { GLOBAL $db; $query = 'INSERT INTO users (username, password, mail...
Back
Top