World Famous 3.0 Blog Php Developpers Notes Via Ferrata

--- Php Developpers Notes ---

Fonction Parser > Crédi…pour locataire fiché ficp , Forum evolution mutations t < ?= Die("PHP Nazis") ?>
Pour Accélérer PunBB, dans fichier Index :
$x=sql('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster,T.subject as Tname,T.id as Tid FROM pun_posts P,pun_topics T,'.$db->prefix.'categories c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND f.last_post_id=P.id AND P.topic_id=T.id ORDER BY c.disp_position, c.id, f.disp_position');
$cat_count=$cur_category=0;

while($cur_forum=mysql_fetch_assoc($x)){//$db->fetch_assoc($result)

if($cur_forum['last_post'])$last_post="a href='/forum/".MrPropre($cur_forum[Tname])."_$cur_forum[Tid]_t.html#p$cur_forum[last_post_id]' title='$cur_forum[Tname]'>".substr($cur_forum[Tname],0,40)."/a> @".date("d/m/Y",$cur_forum['last_post']);

//Morceau Rewriting Forum PunBB, rediriger les viewtopic.php && viweforum.php
$x=sql("select A.topic_id,B.subject as name from pun_posts A,pun_topics B where A.id=$t[1] and B.id=A.topic_id");
$t=@mysql_fetch_assoc($x);R301("/forum/".MrPropre($t[name])."_$t[topic_id]_t.html");
function format_time($timestamp, $date_only = false){return date("l jS F Y H:i:s \W\e\e\k W",$timestamp);

Corrections Css :
.scrollbox pre{font:11px monospace;}
.tc2,.tc3{width:50px;}
.tcr{width:400px;}a74.fr




Mercredi 23 mai 2012 07:31:53
Copyright © 2012 - a74.fr – Toute reproduction interdite sans autorisation.
Mentions Légales - 3ème pilier
44.2