mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 03:10:50 +02:00
more imode removal
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
* Administration Area Authorization
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_admin/auth.php,v $
|
||||
* $Revision: 1.7 $
|
||||
* $Date: 2009-01-07 15:40:06 $
|
||||
* $Author: secretr $
|
||||
* $Revision: 1.8 $
|
||||
* $Date: 2009-07-07 06:50:55 $
|
||||
* $Author: e107coders $
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
@@ -135,7 +135,7 @@ class auth
|
||||
# - scope public
|
||||
*/
|
||||
|
||||
global $use_imagecode, $sec_img,$imode, $pref;
|
||||
global $use_imagecode, $sec_img, $pref;
|
||||
|
||||
$text = "<div style='padding:20px;text-align:center'>
|
||||
<form method='post' action='".e_SELF."'";
|
||||
|
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/fileinspector.php,v $
|
||||
| $Revision: 1.13 $
|
||||
| $Date: 2008-10-19 11:35:00 $
|
||||
| $Author: e107steved $
|
||||
| $Revision: 1.14 $
|
||||
| $Date: 2009-07-07 06:50:55 $
|
||||
| $Author: e107coders $
|
||||
|
||||
Includes standalone function - needs finishing
|
||||
+----------------------------------------------------------------------------+
|
||||
@@ -64,7 +64,7 @@ Standalone file scan - checks for a valid set of E107 files<br />";
|
||||
echo "Using directory structure from e107_config.php<br />";
|
||||
}
|
||||
|
||||
$imode = 'nuvola_light';
|
||||
// $imode = 'nuvola_light';
|
||||
$fi = new file_inspector(TRUE);
|
||||
|
||||
// Needed to make everything work
|
||||
@@ -433,7 +433,7 @@ class file_inspector {
|
||||
// &$parent_expand
|
||||
function inspect($list, $deprecated, $level, $dir, &$tree_end, &$parent_expand)
|
||||
{
|
||||
global $coredir, $imode;
|
||||
global $coredir;
|
||||
|
||||
unset ($childOut);
|
||||
$parent_expand = false;
|
||||
@@ -460,9 +460,9 @@ class file_inspector {
|
||||
if ((($dir == $this->BASE_PLUGIN_DIR) || ($dir == $this->BASE_THEMES_DIR)) && !is_readable($path))
|
||||
{ // Its one of the plugin or theme directories which doesn't exist - that could be OK
|
||||
// echo "Plugin or theme folder missing: {$path}<br />";
|
||||
$icon = "<img src='".e_IMAGE."packs/".$imode."/fileinspector/folder_missing.png' class='i' alt='' />";
|
||||
$icon = "<img src='".e_IMAGE."fileinspector/folder_missing.png' class='i' alt='' />";
|
||||
$text = "<div class='d' style='margin-left: ".(($level+1) * 8)."px'>";
|
||||
$text .= "<img src='".e_IMAGE."packs/".$imode."/fileinspector/contract.png' class='e' alt='' /> ".$icon." ".$key." - ".FR_LAN_31;
|
||||
$text .= "<img src='".e_IMAGE."fileinspector/contract.png' class='e' alt='' /> ".$icon." ".$key." - ".FR_LAN_31;
|
||||
$text .= "</div>";
|
||||
$sub_text .= $text;
|
||||
$sub_id = dechex(crc32($path));
|
||||
@@ -681,10 +681,10 @@ class file_inspector {
|
||||
}
|
||||
|
||||
$dir_icon = $dir_icon ? $dir_icon : 'folder.png';
|
||||
$icon = "<img src='".e_IMAGE."packs/".$imode."/fileinspector/".$dir_icon."' class='i' alt='' />";
|
||||
$icon = "<img src='".e_IMAGE."fileinspector/".$dir_icon."' class='i' alt='' />";
|
||||
$hide = ($last_expand && $dir_icon != 'folder_core.png') ? "" : "style='display: none'";
|
||||
$text = "<div class='d' style='margin-left: ".($level * 8)."px'>";
|
||||
$text .= $tree_end ? "<img src='".e_IMAGE."packs/".$imode."/fileinspector/blank.png' class='e' alt='' />" : "<span onclick=\"ec('".$dir_id."')\"><img src='".e_IMAGE."packs/".$imode."/fileinspector/".($hide ? 'expand.png' : 'contract.png')."' class='e' alt='' id='e_".$dir_id."' /></span>";
|
||||
$text .= $tree_end ? "<img src='".e_IMAGE."fileinspector/blank.png' class='e' alt='' />" : "<span onclick=\"ec('".$dir_id."')\"><img src='".e_IMAGE."fileinspector/".($hide ? 'expand.png' : 'contract.png')."' class='e' alt='' id='e_".$dir_id."' /></span>";
|
||||
$text .= " <span onclick=\"sh('f_".$dir_id."')\">".$icon." ".$directory."</span>";
|
||||
$text .= $tree_end ? "" : "<div ".$hide." id='d_".$dir_id."'>".$sub_text."</div>";
|
||||
$text .= "</div>";
|
||||
@@ -696,7 +696,7 @@ class file_inspector {
|
||||
|
||||
function scan_results()
|
||||
{
|
||||
global $ns, $rs, $core_image, $deprecated_image, $imode, $tp, $e107;
|
||||
global $ns, $rs, $core_image, $deprecated_image, $tp, $e107;
|
||||
$scan_text = $this -> inspect($core_image, $deprecated_image, 0, $this -> root_dir);
|
||||
|
||||
// if ($_POST['type'] == 'tree')
|
||||
@@ -736,46 +736,46 @@ class file_inspector {
|
||||
if ($this->dotree)
|
||||
{
|
||||
$text .= "<tr><td class='f' style='padding-left: 4px'>
|
||||
<img src='".e_IMAGE."packs/".$imode."/fileinspector/fileinspector.png' class='i' alt='' /> <b>".FR_LAN_3."</b></td>
|
||||
<img src='".e_IMAGE."fileinspector/fileinspector.png' class='i' alt='' /> <b>".FR_LAN_3."</b></td>
|
||||
<td class='s' style='text-align: right; padding-right: 4px' onclick=\"sh('f_".dechex(crc32($this -> root_dir))."')\">
|
||||
<img src='".e_IMAGE."packs/".$imode."/fileinspector/forward.png' class='i' alt='' /></td></tr>";
|
||||
<img src='".e_IMAGE."fileinspector/forward.png' class='i' alt='' /></td></tr>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$text .= "<tr><td class='f' style='padding-left: 4px' colspan='2'>
|
||||
<img src='".e_IMAGE."packs/".$imode."/fileinspector/fileinspector.png' class='i' alt='' /> <b>".FR_LAN_3."</b></td>
|
||||
<img src='".e_IMAGE."fileinspector/fileinspector.png' class='i' alt='' /> <b>".FR_LAN_3."</b></td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if ($_POST['core'] != 'none') {
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file_core.png' class='i' alt='' /> ".FR_LAN_4.": ".($this -> count['core']['num'] ? $this -> count['core']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['core']['size'], 2)."</td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."fileinspector/file_core.png' class='i' alt='' /> ".FR_LAN_4.": ".($this -> count['core']['num'] ? $this -> count['core']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['core']['size'], 2)."</td></tr>";
|
||||
}
|
||||
if ($_POST['missing']) {
|
||||
$text .= "<tr><td class='f' colspan='2'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file_missing.png' class='i' alt='' /> ".FR_LAN_22.": ".($this -> count['missing']['num'] ? $this -> count['missing']['num'] : FR_LAN_21)." </td></tr>";
|
||||
$text .= "<tr><td class='f' colspan='2'><img src='".e_IMAGE."fileinspector/file_missing.png' class='i' alt='' /> ".FR_LAN_22.": ".($this -> count['missing']['num'] ? $this -> count['missing']['num'] : FR_LAN_21)." </td></tr>";
|
||||
}
|
||||
if ($_POST['noncore']) {
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file_unknown.png' class='i' alt='' /> ".FR_LAN_5.": ".($this -> count['unknown']['num'] ? $this -> count['unknown']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['unknown']['size'], 2)."</td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."fileinspector/file_unknown.png' class='i' alt='' /> ".FR_LAN_5.": ".($this -> count['unknown']['num'] ? $this -> count['unknown']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['unknown']['size'], 2)."</td></tr>";
|
||||
}
|
||||
if ($_POST['oldcore']) {
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file_old.png' class='i' alt='' /> ".FR_LAN_24.": ".($this -> count['deprecated']['num'] ? $this -> count['deprecated']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['deprecated']['size'], 2)."</td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."fileinspector/file_old.png' class='i' alt='' /> ".FR_LAN_24.": ".($this -> count['deprecated']['num'] ? $this -> count['deprecated']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['deprecated']['size'], 2)."</td></tr>";
|
||||
}
|
||||
if ($_POST['core'] == 'all') {
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file.png' class='i' alt='' /> ".FR_LAN_6.": ".($this -> count['core']['num'] + $this -> count['unknown']['num'] + $this -> count['deprecated']['num'])." </td><td class='s'>".$e107->parseMemorySize($this -> count['core']['size'] + $this -> count['unknown']['size'] + $this -> count['deprecated']['size'], 2)."</td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."fileinspector/file.png' class='i' alt='' /> ".FR_LAN_6.": ".($this -> count['core']['num'] + $this -> count['unknown']['num'] + $this -> count['deprecated']['num'])." </td><td class='s'>".$e107->parseMemorySize($this -> count['core']['size'] + $this -> count['unknown']['size'] + $this -> count['deprecated']['size'], 2)."</td></tr>";
|
||||
}
|
||||
if ($_POST['regex']) {
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file.png' class='i' alt='' /> ".FR_LAN_29.": ".($this -> results)." </td><td class='s'> </td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file.png' class='i' alt='' /> ".FR_LAN_30.": ".($this -> line_results)." </td><td class='s'> </td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."fileinspector/file.png' class='i' alt='' /> ".FR_LAN_29.": ".($this -> results)." </td><td class='s'> </td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."fileinspector/file.png' class='i' alt='' /> ".FR_LAN_30.": ".($this -> line_results)." </td><td class='s'> </td></tr>";
|
||||
}
|
||||
|
||||
|
||||
if ($this -> count['warning']['num']) {
|
||||
$text .= "<tr><td colspan='2'> </td></tr>";
|
||||
$text .= "<tr><td style='padding-left: 4px' colspan='2'>
|
||||
<img src='".e_IMAGE."packs/".$imode."/fileinspector/warning.png' class='i' alt='' /> <b>".FR_LAN_26."</b></td></tr>";
|
||||
<img src='".e_IMAGE."fileinspector/warning.png' class='i' alt='' /> <b>".FR_LAN_26."</b></td></tr>";
|
||||
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file_warning.png' class='i' alt='' /> ".FR_LAN_28.": ".($this -> count['warning']['num'] ? $this -> count['warning']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['warning']['size'], 2)."</td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."fileinspector/file_warning.png' class='i' alt='' /> ".FR_LAN_28.": ".($this -> count['warning']['num'] ? $this -> count['warning']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['warning']['size'], 2)."</td></tr>";
|
||||
|
||||
$text .= "<tr><td class='w' colspan='2'><img src='".e_IMAGE."packs/".$imode."/fileinspector/info.png' class='i' alt='' /> ".FR_LAN_27."</td></tr>";
|
||||
$text .= "<tr><td class='w' colspan='2'><img src='".e_IMAGE."fileinspector/info.png' class='i' alt='' /> ".FR_LAN_27."</td></tr>";
|
||||
|
||||
}
|
||||
if ($_POST['integrity'] && $_POST['core'] != 'none') {
|
||||
@@ -783,15 +783,15 @@ class file_inspector {
|
||||
$integrity_text = $this -> count['fail']['num'] ? '( '.$this -> count['fail']['num'].' '.FR_LAN_19.' )' : '( '.FR_LAN_20.' )';
|
||||
$text .= "<tr><td colspan='2'> </td></tr>";
|
||||
$text .= "<tr><td class='f' style='padding-left: 4px' colspan='2'>
|
||||
<img src='".e_IMAGE."packs/".$imode."/fileinspector/".$integrity_icon."' class='i' alt='' /> <b>".FR_LAN_7."</b> ".$integrity_text."</td></tr>";
|
||||
<img src='".e_IMAGE."fileinspector/".$integrity_icon."' class='i' alt='' /> <b>".FR_LAN_7."</b> ".$integrity_text."</td></tr>";
|
||||
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file_check.png' class='i' alt='' /> ".FR_LAN_8.": ".($this -> count['pass']['num'] ? $this -> count['pass']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['pass']['size'], 2)."</td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file_fail.png' class='i' alt='' /> ".FR_LAN_9.": ".($this -> count['fail']['num'] ? $this -> count['fail']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['fail']['size'], 2)."</td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/file_uncalc.png' class='i' alt='' /> ".FR_LAN_25.": ".($this -> count['uncalculable']['num'] ? $this -> count['uncalculable']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['uncalculable']['size'], 2)."</td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."fileinspector/file_check.png' class='i' alt='' /> ".FR_LAN_8.": ".($this -> count['pass']['num'] ? $this -> count['pass']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['pass']['size'], 2)."</td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."fileinspector/file_fail.png' class='i' alt='' /> ".FR_LAN_9.": ".($this -> count['fail']['num'] ? $this -> count['fail']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['fail']['size'], 2)."</td></tr>";
|
||||
$text .= "<tr><td class='f'><img src='".e_IMAGE."fileinspector/file_uncalc.png' class='i' alt='' /> ".FR_LAN_25.": ".($this -> count['uncalculable']['num'] ? $this -> count['uncalculable']['num'] : FR_LAN_21)." </td><td class='s'>".$e107->parseMemorySize($this -> count['uncalculable']['size'], 2)."</td></tr>";
|
||||
|
||||
$text .= "<tr><td colspan='2'> </td></tr>";
|
||||
|
||||
$text .= "<tr><td class='f' colspan='2'><img src='".e_IMAGE."packs/".$imode."/fileinspector/info.png' class='i' alt='' /> ".FR_LAN_10.": </td></tr>";
|
||||
$text .= "<tr><td class='f' colspan='2'><img src='".e_IMAGE."fileinspector/info.png' class='i' alt='' /> ".FR_LAN_10.": </td></tr>";
|
||||
|
||||
$text .= "<tr><td style='padding-right: 4px' colspan='2'>
|
||||
<ul><li>
|
||||
@@ -849,8 +849,8 @@ class file_inspector {
|
||||
// if ($_POST['type'] == 'tree')
|
||||
{
|
||||
$text .= "<tr><td class='f' style='padding-left: 4px' ".($stext['level'] ? "onclick=\"sh('f_".$stext['parent']."')\"" : "").">
|
||||
<img src='".e_IMAGE."packs/".$imode."/fileinspector/".($stext['level'] ? "folder_up.png" : "folder_root.png")."' class='i' alt='' />".($stext['level'] ? " .." : "")."</td>
|
||||
<td class='s' style='text-align: right; padding-right: 4px' onclick=\"sh('initial')\"><img src='".e_IMAGE."packs/".$imode."/fileinspector/close.png' class='i' alt='' /></td></tr>";
|
||||
<img src='".e_IMAGE."fileinspector/".($stext['level'] ? "folder_up.png" : "folder_root.png")."' class='i' alt='' />".($stext['level'] ? " .." : "")."</td>
|
||||
<td class='s' style='text-align: right; padding-right: 4px' onclick=\"sh('initial')\"><img src='".e_IMAGE."fileinspector/close.png' class='i' alt='' /></td></tr>";
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -861,7 +861,7 @@ class file_inspector {
|
||||
$stext['file'] = str_replace($this -> root_dir."/", "", $stext['file']);
|
||||
}
|
||||
$text .= "<tr>
|
||||
<td class='f'><img src='".e_IMAGE."packs/".$imode."/fileinspector/".$stext['icon']."' class='i' alt='' /> ".$stext['file']." ";
|
||||
<td class='f'><img src='".e_IMAGE."fileinspector/".$stext['icon']."' class='i' alt='' /> ".$stext['file']." ";
|
||||
if ($_POST['regex'])
|
||||
{
|
||||
if ($_POST['num'] || $_POST['line']) {
|
||||
@@ -949,9 +949,9 @@ class file_inspector {
|
||||
$data .= "| GNU General Public License (http://gnu.org).\n";
|
||||
$data .= "|\n";
|
||||
$data .= "| \$Source: /cvs_backup/e107_0.8/e107_admin/fileinspector.php,v $\n";
|
||||
$data .= "| \$Revision: 1.13 $\n";
|
||||
$data .= "| \$Date: 2008-10-19 11:35:00 $\n";
|
||||
$data .= "| \$Author: e107steved $\n";
|
||||
$data .= "| \$Revision: 1.14 $\n";
|
||||
$data .= "| \$Date: 2009-07-07 06:50:55 $\n";
|
||||
$data .= "| \$Author: e107coders $\n";
|
||||
$data .= "+----------------------------------------------------------------------------+\n";
|
||||
$data .= "*/\n\n";
|
||||
}
|
||||
@@ -1091,11 +1091,11 @@ class file_inspector {
|
||||
require_once('footer.php');
|
||||
|
||||
function headerjs() {
|
||||
global $e107, $imode;
|
||||
global $e107;
|
||||
$text = "<script type='text/javascript'>
|
||||
<!--
|
||||
c = new Image(); c = '".SITEURLBASE.e_IMAGE_ABS."packs/".$imode."/fileinspector/contract.png';
|
||||
e = '".SITEURLBASE.e_IMAGE_ABS."packs/".$imode."/fileinspector/expand.png';
|
||||
c = new Image(); c = '".SITEURLBASE.e_IMAGE_ABS."fileinspector/contract.png';
|
||||
e = '".SITEURLBASE.e_IMAGE_ABS."fileinspector/expand.png';
|
||||
function ec(ecid) {
|
||||
icon = document.getElementById('e_' + ecid).src;
|
||||
if (icon == e) {
|
||||
|
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/filemanager.php,v $
|
||||
| $Revision: 1.7 $
|
||||
| $Date: 2008-12-30 16:33:18 $
|
||||
| $Author: secretr $
|
||||
| $Revision: 1.8 $
|
||||
| $Date: 2009-07-07 06:50:55 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
require_once("../class2.php");
|
||||
@@ -35,7 +35,7 @@ $emessage = &eMessage::getInstance();
|
||||
$pubfolder = (str_replace("../","",e_QUERY) == str_replace("../","",e_FILE."public/")) ? TRUE : FALSE;
|
||||
|
||||
|
||||
$imagedir = e_IMAGE."packs/".$imode."/filemanager/";
|
||||
$imagedir = e_IMAGE."filemanager/";
|
||||
|
||||
$dir_options[0] = FMLAN_47;
|
||||
$dir_options[1] = FMLAN_35;
|
||||
|
@@ -9,9 +9,9 @@
|
||||
* Administration Area - Site Links
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_admin/links.php,v $
|
||||
* $Revision: 1.22 $
|
||||
* $Date: 2009-04-29 01:51:12 $
|
||||
* $Author: bugrain $
|
||||
* $Revision: 1.23 $
|
||||
* $Date: 2009-07-07 06:50:55 $
|
||||
* $Author: e107coders $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -390,7 +390,7 @@ class links
|
||||
|
||||
function display_row($row2, $indent = FALSE)
|
||||
{
|
||||
global $sql, $rs, $tp, $linkArray, $previous_cat, $imode;
|
||||
global $sql, $rs, $tp, $linkArray, $previous_cat;
|
||||
extract($row2);
|
||||
|
||||
if($link_category > 1 && $link_category != $previous_cat)
|
||||
|
@@ -12,9 +12,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/comment_class.php,v $
|
||||
| $Revision: 1.19 $
|
||||
| $Date: 2009-05-07 20:48:39 $
|
||||
| $Author: e107steved $
|
||||
| $Revision: 1.20 $
|
||||
| $Date: 2009-07-07 06:50:55 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -185,7 +185,7 @@ class comment {
|
||||
function render_comment($row, $table, $action, $id, $width, $subject, $addrating=FALSE)
|
||||
{
|
||||
//addrating : boolean, to show rating system in rendered comment
|
||||
global $sql, $sc_style, $comment_shortcodes, $COMMENTSTYLE, $rater, $gen, $imode;
|
||||
global $sql, $sc_style, $comment_shortcodes, $COMMENTSTYLE, $rater, $gen;
|
||||
global $pref, $comrow, $tp, $NEWIMAGE, $USERNAME, $RATING, $datestamp;
|
||||
global $thisaction, $thistable, $thisid, $e107;
|
||||
|
||||
@@ -210,10 +210,10 @@ class comment {
|
||||
$width = 0;
|
||||
}
|
||||
if(!defined("IMAGE_nonew_comments")){
|
||||
define("IMAGE_nonew_comments", (file_exists(THEME."images/nonew_comments.png") ? "<img src='".THEME_ABS."images/nonew_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."packs/".$imode."/generic/nonew_comments.png' alt='' />"));
|
||||
define("IMAGE_nonew_comments", (file_exists(THEME."images/nonew_comments.png") ? "<img src='".THEME_ABS."images/nonew_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/nonew_comments.png' alt='' />"));
|
||||
}
|
||||
if(!defined("IMAGE_new_comments")){
|
||||
define("IMAGE_new_comments", (file_exists(THEME."images/new_comments.png") ? "<img src='".THEME_ABS."images/new_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."packs/".$imode."/generic/new_comments.png' alt='' /> "));
|
||||
define("IMAGE_new_comments", (file_exists(THEME."images/new_comments.png") ? "<img src='".THEME_ABS."images/new_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/new_comments.png' alt='' /> "));
|
||||
}
|
||||
$ns = new e107table;
|
||||
if(!$gen || !is_object($gen)){ $gen = new convert; }
|
||||
|
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/emailprint_class.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2008-09-04 20:07:27 $
|
||||
| $Author: e107steved $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2009-07-07 06:50:55 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -32,8 +32,7 @@ class emailprint
|
||||
// $look = 1 --->display email icon only
|
||||
// $look = 2 --->display print icon only
|
||||
|
||||
global $imode;
|
||||
|
||||
|
||||
$text_emailprint = "";
|
||||
|
||||
//new method emailprint_class : (only news is core, rest is plugin: searched for e_emailprint.php which should hold $email and $print values)
|
||||
@@ -64,12 +63,12 @@ class emailprint
|
||||
|
||||
if ($look == 0 || $look == 1)
|
||||
{
|
||||
$ico_mail = (file_exists(THEME."images/".ICONMAIL) ? THEME_ABS."images/".ICONMAIL : e_IMAGE_ABS."packs/".$imode."/generic/email.png");
|
||||
$ico_mail = (file_exists(THEME."images/".ICONMAIL) ? THEME_ABS."images/".ICONMAIL : e_IMAGE_ABS."generic/email.png");
|
||||
$text_emailprint .= "<a href='".e_HTTP."email.php?".$email.".".$id."'><img src='".$ico_mail."' style='border:0' alt='".LAN_EMAIL_7."' title='".LAN_EMAIL_7."' /></a> ";
|
||||
}
|
||||
if ($look == 0 || $look == 2)
|
||||
{
|
||||
$ico_print = (file_exists(THEME."images/".ICONPRINT) ? THEME_ABS."images/".ICONPRINT : e_IMAGE_ABS."packs/".$imode."/generic/printer.png");
|
||||
$ico_print = (file_exists(THEME."images/".ICONPRINT) ? THEME_ABS."images/".ICONPRINT : e_IMAGE_ABS."generic/printer.png");
|
||||
$text_emailprint .= "<a href='".e_HTTP."print.php?".$print.".".$id."'><img src='".$ico_print."' style='border:0' alt='".LAN_PRINT_1."' title='".LAN_PRINT_1."' /></a>";
|
||||
}
|
||||
return $text_emailprint;
|
||||
|
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/level_handler.php,v $
|
||||
| $Revision: 1.9 $
|
||||
| $Date: 2009-01-25 17:44:13 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.10 $
|
||||
| $Date: 2009-07-07 06:50:55 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,7 @@ if (!defined('e107_INIT')) { exit; }
|
||||
function get_level($user_id, $user_forums, $user_comments, $user_chats, $user_visits, $user_join, $user_admin, $user_perms, $pref, $fmod = "")
|
||||
{
|
||||
|
||||
global $tp, $imode;
|
||||
global $tp;
|
||||
|
||||
if (!$user_id) {
|
||||
return FALSE;
|
||||
@@ -95,7 +95,7 @@ function get_level($user_id, $user_forums, $user_comments, $user_chats, $user_vi
|
||||
$rank = 9;
|
||||
}
|
||||
|
||||
$data['pic'] = (file_exists(THEME."forum/".$level_images[$rank]) ? THEME."forum/".$level_images[$rank] : e_IMAGE."packs/".$imode."/rate/".$level_images[$rank]);
|
||||
$data['pic'] = (file_exists(THEME."forum/".$level_images[$rank]) ? THEME."forum/".$level_images[$rank] : e_IMAGE."rate/".$level_images[$rank]);
|
||||
$data['name'] = "[ ".$tp->toHTML($level_names[$rank], FALSE, 'defs')." ]";
|
||||
|
||||
if($level_names[$rank])
|
||||
|
@@ -9,9 +9,9 @@
|
||||
* News handler
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/news_class.php,v $
|
||||
* $Revision: 1.14 $
|
||||
* $Date: 2009-05-24 15:34:37 $
|
||||
* $Author: e107steved $
|
||||
* $Revision: 1.15 $
|
||||
* $Date: 2009-07-07 06:50:55 $
|
||||
* $Author: e107coders $
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
@@ -154,7 +154,7 @@ class news {
|
||||
|
||||
function render_newsitem($news, $mode = 'default', $n_restrict = '', $NEWS_TEMPLATE = '', $param='')
|
||||
{
|
||||
global $e107, $tp, $sql, $override, $pref, $ns, $NEWSSTYLE, $NEWSLISTSTYLE, $news_shortcodes, $loop_uid, $imode;
|
||||
global $e107, $tp, $sql, $override, $pref, $ns, $NEWSSTYLE, $NEWSLISTSTYLE, $news_shortcodes, $loop_uid;
|
||||
if ($override_newsitem = $override -> override_check('render_newsitem')) {
|
||||
$result = call_user_func($override_newsitem, $news, $mode, $n_restrict, $NEWS_TEMPLATE, $param);
|
||||
if ($result == 'return')
|
||||
@@ -196,7 +196,7 @@ class news {
|
||||
{
|
||||
if (!defined("IMAGE_nonew_small"))
|
||||
{
|
||||
define("IMAGE_nonew_small", (file_exists(THEME."images/nonew_comments.png") ? "<img src='".THEME_ABS."images/nonew_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."packs/".$imode."/generic/nonew_comments.png' alt='' />"));
|
||||
define("IMAGE_nonew_small", (file_exists(THEME."images/nonew_comments.png") ? "<img src='".THEME_ABS."images/nonew_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/nonew_comments.png' alt='' />"));
|
||||
}
|
||||
$param['image_nonew_small'] = IMAGE_nonew_small;
|
||||
}
|
||||
@@ -205,7 +205,7 @@ class news {
|
||||
{
|
||||
if (!defined("IMAGE_new_small"))
|
||||
{
|
||||
define("IMAGE_new_small", (file_exists(THEME."images/new_comments.png") ? "<img src='".THEME_ABS."images/new_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."packs/".$imode."/generic/new_comments.png' alt='' /> "));
|
||||
define("IMAGE_new_small", (file_exists(THEME."images/new_comments.png") ? "<img src='".THEME_ABS."images/new_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/new_comments.png' alt='' /> "));
|
||||
}
|
||||
$param['image_new_small'] = IMAGE_new_small;
|
||||
}
|
||||
@@ -214,7 +214,7 @@ class news {
|
||||
{
|
||||
if (!defined("IMAGE_sticky"))
|
||||
{
|
||||
define("IMAGE_sticky", (file_exists(THEME."images/sticky.png") ? "<img src='".THEME_ABS."images/sticky.png' alt='' /> " : "<img src='".e_IMAGE_ABS."packs/".$imode."/generic/sticky.png' alt='' style='width: 14px; height: 14px; vertical-align: bottom' /> "));
|
||||
define("IMAGE_sticky", (file_exists(THEME."images/sticky.png") ? "<img src='".THEME_ABS."images/sticky.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/sticky.png' alt='' style='width: 14px; height: 14px; vertical-align: bottom' /> "));
|
||||
}
|
||||
$param['image_sticky'] = IMAGE_sticky;
|
||||
}
|
||||
|
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/rate_class.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-01-10 21:31:12 $
|
||||
| $Author: e107steved $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2009-07-07 06:50:55 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -176,19 +176,18 @@ class rater {
|
||||
//userid : used to calculate a users given rating
|
||||
//nojump : boolean, if present no urljump will be used (needed in comment_rating system)
|
||||
|
||||
global $imode;
|
||||
$rate = "";
|
||||
if($ratearray = $this -> getrating($table, $id, $userid)){
|
||||
if($ratearray[1] > 0){
|
||||
for($c=1; $c<= $ratearray[1]; $c++){
|
||||
$rate .= "<img src='".e_IMAGE."packs/".$imode."/rate/box.png' alt='' style='height:8px; vertical-align:middle' />";
|
||||
$rate .= "<img src='".e_IMAGE."rate/box.png' alt='' style='height:8px; vertical-align:middle' />";
|
||||
}
|
||||
if($ratearray[1] < 10){
|
||||
for($c=9; $c>=$ratearray[1]; $c--){
|
||||
$rate .= "<img src='".e_IMAGE."packs/".$imode."/rate/empty.png' alt='' style='height:8px; vertical-align:middle' />";
|
||||
$rate .= "<img src='".e_IMAGE."rate/empty.png' alt='' style='height:8px; vertical-align:middle' />";
|
||||
}
|
||||
}
|
||||
$rate .= "<img src='".e_IMAGE."packs/".$imode."/rate/boxend.png' alt='' style='height:8px; vertical-align:middle' />";
|
||||
$rate .= "<img src='".e_IMAGE."rate/boxend.png' alt='' style='height:8px; vertical-align:middle' />";
|
||||
if($ratearray[2] == ""){ $ratearray[2] = 0; }
|
||||
$rate .= " ".$ratearray[1].".".$ratearray[2];
|
||||
if(!$userid){
|
||||
|
@@ -9,8 +9,8 @@
|
||||
* Plugin Administration - gsitemap
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/gsitemap/admin_config.php,v $
|
||||
* $Revision: 1.5 $
|
||||
* $Date: 2009-07-01 05:10:23 $
|
||||
* $Revision: 1.6 $
|
||||
* $Date: 2009-07-07 06:50:55 $
|
||||
* $Author: e107coders $
|
||||
*
|
||||
*/
|
||||
@@ -97,7 +97,7 @@ class gsitemap
|
||||
|
||||
function showList()
|
||||
{
|
||||
global $sql, $ns, $tp, $imode;
|
||||
global $sql, $ns, $tp;
|
||||
$gen = new convert;
|
||||
$count = $sql -> db_Select("gsitemap", "*", "gsitemap_id !=0 ORDER BY gsitemap_order ASC");
|
||||
|
||||
@@ -161,8 +161,8 @@ class gsitemap
|
||||
|
||||
<td class='center' style='white-space:nowrap'>
|
||||
<div>
|
||||
<input type='image' name='edit[{$row2['gsitemap_id']}]' value='edit' src='".e_IMAGE."packs/".$imode."/admin_images/edit_16.png' alt='".LAN_EDIT."' title='".LAN_EDIT."' style='border:0px' />
|
||||
<input type='image' name='delete[{$row2['gsitemap_id']}]' value='del' onclick=\"return jsconfirm('".$tp->toJS(LAN_CONFIRMDEL." [".$row2['gsitemap_name']."]")."') \" src='".e_IMAGE."packs/".$imode."/admin_images/delete_16.png' alt='".LAN_DELETE."' title='".LAN_DELETE."' style='border:0px' />
|
||||
<input type='image' name='edit[{$row2['gsitemap_id']}]' value='edit' src='".e_IMAGE."admin_images/edit_16.png' alt='".LAN_EDIT."' title='".LAN_EDIT."' style='border:0px' />
|
||||
<input type='image' name='delete[{$row2['gsitemap_id']}]' value='del' onclick=\"return jsconfirm('".$tp->toJS(LAN_CONFIRMDEL." [".$row2['gsitemap_name']."]")."') \" src='".e_IMAGE."admin_images/delete_16.png' alt='".LAN_DELETE."' title='".LAN_DELETE."' style='border:0px' />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/search.php,v $
|
||||
| $Revision: 1.10 $
|
||||
| $Date: 2008-10-14 20:59:38 $
|
||||
| $Author: e107steved $
|
||||
| $Revision: 1.11 $
|
||||
| $Date: 2009-07-07 06:50:56 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -299,7 +299,7 @@ if ($search_prefs['selector'] == 1)
|
||||
|
||||
$SEARCH_MAIN_SUBMIT = "<input type='hidden' name='r' value='0' /><input class='button' type='submit' name='s' value='".LAN_180."' />";
|
||||
|
||||
$ENHANCED_ICON = "<img src='".e_IMAGE."packs/".$imode."/generic/search_enhanced.png' style='width: 16px; height: 16px; vertical-align: top'
|
||||
$ENHANCED_ICON = "<img src='".e_IMAGE."generic/search_basic.png' style='width: 16px; height: 16px; vertical-align: top'
|
||||
alt='".LAN_SEARCH_23."' title='".LAN_SEARCH_23."' onclick=\"expandit('en_in'); expandit('en_ex'); expandit('en_ep'); expandit('en_be')\"/>";
|
||||
|
||||
$enhanced_types['in'] = LAN_SEARCH_24.':';
|
||||
|
Reference in New Issue
Block a user