1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

More $imode removal

This commit is contained in:
CaMer0n
2009-07-07 07:33:00 +00:00
parent c29c2fb698
commit 04f3934852
9 changed files with 50 additions and 61 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/bbcode_shortcodes.php,v $
| $Revision: 1.10 $
| $Date: 2009-01-07 20:04:25 $
| $Author: mcfly_e107 $
| $Revision: 1.11 $
| $Date: 2009-07-07 07:32:59 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -29,7 +29,7 @@ class bbcode_shortcodes
function get_bb($parm)
{
//FIXME - cachevars/getcachedvars!
global $pref, $eplug_bb, $bbcode_func, $bbcode_help, $bbcode_filedir, $bbcode_imagedir, $bbcode_helpactive, $bbcode_helptag, $register_bb, $imode;
global $pref, $eplug_bb, $bbcode_func, $bbcode_help, $bbcode_filedir, $bbcode_imagedir, $bbcode_helpactive, $bbcode_helptag, $register_bb;
if(defsettrue('e_WYSIWYG')){ return; }

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/download_shortcodes.php,v $
| $Revision: 1.17 $
| $Date: 2009-01-04 12:52:45 $
| $Author: e107steved $
| $Revision: 1.18 $
| $Date: 2009-07-07 07:32:59 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -288,7 +288,7 @@ SC_END
SC_BEGIN DOWNLOAD_VIEW_RATING
require_once(e_HANDLER."rate_class.php");
$rater = new rater;
global $dl, $imode;
global $dl;
$text = "
<table style='width:100%'>
<tr>
@@ -296,10 +296,10 @@ SC_BEGIN DOWNLOAD_VIEW_RATING
if ($ratearray = $rater->getrating("download", $dl['download_id'])) {
for($c = 1; $c <= $ratearray[1]; $c++) {
$text .= "<img src='".e_IMAGE."packs/".$imode."/rate/star.png' alt='' />";
$text .= "<img src='".e_IMAGE."rate/star.png' alt='' />";
}
if ($ratearray[2]) {
$text .= "<img src='".e_IMAGE."packs/".$imode."/rate/".$ratearray[2].".png' alt='' />";
$text .= "<img src='".e_IMAGE."rate/".$ratearray[2].".png' alt='' />";
}
if ($ratearray[2] == "") {
$ratearray[2] = 0;