hmm bro I dont know then are your ip right in config.lua? in your server folder?Still nothing, tryd this before and now again.
Its been merged into the latest version on github.
yeah, others can login, but nobody cant see my webpagehmm bro I dont know then are your ip right in config.lua? in your server folder?
Yee try what Leesne told ya thats what helped meyeah, others can login, but nobody cant see my webpage
<?php
function getNewPosts($limit = 10) {
global $config, $db;
$cache = Cache::getInstance();
$fetch_from_db = true;
if($cache->enabled())
{
$tmp = '';
if($cache->fetch('top_' . $limit . '_posts', $tmp))
{
$posts = unserialize($tmp);
$fetch_from_db = false;
}
}
if($fetch_from_db)
{
$posts = $db->query('SELECT `author_guid`, `post_text`,`post_date`, `post_topic` FROM `'. TABLE_PREFIX . 'forum` ORDER BY `post_date` DESC LIMIT ' . (int)$limit)->fetchAll();
if($cache->enabled())
$cache->set('top_' . $limit . '_posts', serialize($posts), 120);
}
return $posts;
}
$posts = getNewPosts(7);
echo '<div style="background: #fff">';
foreach($posts as &$post) {
echo '<p><b>T: '.$post['post_topic'].'</b><br/>
P: '.$post['post_text'] . '<br/>
D: ' . date('d.m.y H:i:s',$post['post_date']). '</p>';
}
unset($post);
echo '</div>';
PHP:<?php function getNewPosts($limit = 10) { global $config, $db; $cache = Cache::getInstance(); $fetch_from_db = true; if($cache->enabled()) { $tmp = ''; if($cache->fetch('top_' . $limit . '_posts', $tmp)) { $posts = unserialize($tmp); $fetch_from_db = false; } } if($fetch_from_db) { $posts = $db->query('SELECT `author_guid`, `post_text`,`post_date`, `post_topic` FROM `'. TABLE_PREFIX . 'forum` ORDER BY `post_date` DESC LIMIT ' . (int)$limit)->fetchAll(); if($cache->enabled()) $cache->set('top_' . $limit . '_posts', serialize($posts), 120); } return $posts; } $posts = getNewPosts(7); echo '<div style="background: #fff">'; foreach($posts as &$post) { echo '<p><b>T: '.$post['post_topic'].'</b><br/> P: '.$post['post_text'] . '<br/> D: ' . date('d.m.y H:i:s',$post['post_date']). '</p>'; } unset($post); echo '</div>';
Looking for something like that?
Bit sloppy but does the job.
I trying to use MyAcc in my ot 0.3.6 with sha1 in config.lua but in login return "Invalid Passwd" in game. In database account passwd don't return hash sha1. Am I doing something wrong during the installatio?
When i try to create a character the page turns blank.
Could someone help me? I am using otx3.9 tibia client 11
Hello, I have a problem with the site when creating a character moves me to a white page and nothing more happens does not appear in the database database could you help me?
PL: Witam, mam problem ze strona przy tworzeniu charakteru przenosi mnie do białęj strony i nic więcej sie nie dzieje charakter nie pojawił sie w bazie danych moglibyscie mi pomoc?