All pastes #783540 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-19 07:24 UTC
rendered paste body

<style type="text/css">
#General_arabic {
   font-family: Tahoma;
   font-size: small;
   font-weight: bold;
   height: 100%;
   width: 100%;
   direction: rtl;
}

a:hover {
   text-decoration: underline overline;
}
a:link {
   text-decoration: none;
}
a:visited {
   text-decoration: none;
}

</style>
   
<?php
    /**
    *
    * @package phpBB3
    * @copyright (c) 2005 phpBB.bz Group
    * @license http://opensource.org/licenses/gpl-license.php GNU Public License
    *
    */

    /**
    * @ignore
    */
    define('IN_PHPBB', true);
    $phpbb_root_path = './';
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.'.$phpEx);

//ÈÏÇíÉ ÇáÊÚÏíá
//forums you do not want to show
// ÇáãäÊÏíÇÊ ÇáÊí áÇ ÊÑíÏ Çä íÚÑÖä
$forums ='';

// ÚÏÏ ÇáãæÇÖíÚ
// topics limit
$limit ='5';



// äåÇíÉ ÇáÊÚÏíá
   


$sql = "SELECT topic_id,topic_title
      FROM php5bb_topics
      WHERE forum_id    NOT IN ('$forums')
      AND topic_approved = 1 ORDER BY topic_id DESC LIMIT $limit";
$result = $db->sql_query($sql);

//echo $sql;

// show out put
//  ÇÎÑÇÌ ÇáÈíÇäÇÊ ááÕÝÍÉ íãßäß ÊÚÏíá Ôßá ÇÎÑÇÌ ÇáÈíÇäÇÊ Úáì ßíÝß
echo "<div id='General_arabic'><ul>";
while ($line = mysql_fetch_array($result)) {
    echo "<li>";
    echo "<a target='_blank' href='viewtopic.php?t=";
    echo $line[topic_id];
    echo " target='_parent'>";
    echo $line[topic_title];
    echo "</a></li>";
    }
    echo "<ul></div>";


// Free resultset
mysql_free_result($result);
   

?>