Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cache = new Cache();
- $ban = $cache->read('ban');
- // Se não houver frase no cache ou já tiver expirado
- if (!$ban) {
- // Cria uma nova frase e salva-a no cache por 30s
- $puxar = mysql_query("SELECT * FROM bans WHERE added_by = 'PierreAndreis'") or die(insLog('warning', 'MySQL deu erro', $_SESSION['usuarioLogin'], addslashes(mysql_error())));
- $row = mysql_fetch_object($puxar);
- $cache->save('ban', $ban, '1 seconds');
- }
- while($ban) {
- echo $row['reason'];
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement