|
From: OryNider <ory...@us...> - 2008-02-23 15:58:21
|
Update of /cvsroot/mxbb/mx_smartor/album_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2321 Modified Files: album_bbcode.php Log Message: Index: album_bbcode.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_bbcode.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** album_bbcode.php 7 Jun 2007 20:13:17 -0000 1.1 --- album_bbcode.php 23 Feb 2008 15:58:15 -0000 1.2 *************** *** 1,4 **** <?php ! // CTracker_Ignore: File Checked By Human // Tell the Security Scanner that reachable code in this file is not a security issue --- 1,11 ---- <?php ! /** ! * ! * @package Mx-Publisher Module - mx_smartor ! * @version $Id$ ! * @copyright (c) 2002-2006 [OryNider, ory...@rd...] mxBB Development Team ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * ! */ // CTracker_Ignore: File Checked By Human // Tell the Security Scanner that reachable code in this file is not a security issue *************** *** 3007,3010 **** --- 3014,3034 ---- if ( defined('SMILIES_TABLE') ) { + switch (PORTAL_BACKEND) + { + case 'internal': + $smiley_path_url = PORTAL_URL; + $smiley_url = 'smile_url'; + break; + case 'phpbb2': + $smiley_path_url = PHPBB_URL; + $smiley_url = 'smile_url'; + break; + case 'phpbb3': + $smiley_path_url = PHPBB_URL; + $smiley_url = 'smiley_url'; + $board_config['smilies_path'] = str_replace("smiles", "smilies", $board_config['smilies_path']); + break; + } + $sql = "SELECT * FROM " . SMILIES_TABLE; if(($result = $db->sql_query($sql)) !== false) *************** *** 3016,3020 **** $arr = array( 'code' => $smilies[$i]['code'], ! 'replace' => '<img src="http://' . $_SERVER['HTTP_HOST'] . $board_config['script_path'] . 'images/smiles/' . $smilies[$i]['smile_url'] . '" alt="' . htmlspecialchars($smilies[$i]['emotion']) . '" />' ); $bbcode->allowed_smilies[] = $arr; --- 3040,3044 ---- $arr = array( 'code' => $smilies[$i]['code'], ! 'replace' => '<img src="' . $smiley_path_url . $board_config['smilies_path'] . '/' . $smilies[$i][$smiley_url] . '" alt="' . htmlspecialchars($smilies[$i]['emotion']) . '" />' ); $bbcode->allowed_smilies[] = $arr; |