1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

new image pack system imode and admin images updated

This commit is contained in:
sweetas
2006-12-07 15:41:50 +00:00
parent 99111f78db
commit 8cb82b65dc
41 changed files with 334 additions and 309 deletions

View File

@@ -1,5 +1,5 @@
if (ADMIN) {
global $ns, $sql, $pref;
global $ns, $sql, $pref, $imode;
if ($pref['multilanguage'])
{
$filepath = e_PLUGIN."userlanguage_menu/languages/".e_LANGUAGE.".php";
@@ -52,7 +52,7 @@ if (ADMIN) {
}
$text .= "<div><img src='".e_IMAGE."admin_images/language_16.png' alt='' />&nbsp;";
$text .= "<div><img src='".e_IMAGE."packs/".$imode."/admin_images/language_16.png' alt='' />&nbsp;";
if(isset($aff))
{
$text .= $sql->mySQLlanguage;

View File

@@ -1,7 +1,7 @@
if (ADMIN) {
if (!function_exists('admin_status')) {
function admin_status() {
global $sql, $ns, $pref;
global $sql, $ns, $pref, $imode;
$members = $sql -> db_Count("user");
$unverified = $sql -> db_Count("user", "(*)", "WHERE user_ban=2");
$banned = $sql -> db_Count("user", "(*)", "WHERE user_ban=1");
@@ -24,7 +24,7 @@ if (ADMIN) {
if($flo = $sql -> db_Count("generic", "(*)", "WHERE gen_type='failed_login'"))
{
$text .= "<img src='".e_IMAGE."admin_images/failedlogin_16.png' alt='' style='vertical-align: middle;' /> <a href='".e_ADMIN."fla.php'>".ADLAN_146.": $flo</a>";
$text .= "<img src='".e_IMAGE."packs/".$imode."/admin_images/failedlogin_16.png' alt='' style='vertical-align: middle;' /> <a href='".e_ADMIN."fla.php'>".ADLAN_146.": $flo</a>";
}

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/comment_shortcodes.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:33:40 $
| $Author: mcfly_e107 $
| $Revision: 1.2 $
| $Date: 2006-12-07 15:41:50 $
| $Author: sweetas $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -97,16 +97,16 @@ return (isset($comrow['comment_blocked']) && $comrow['comment_blocked'] ? COMLAN
SC_END
SC_BEGIN COMMENTEDIT
global $COMMENTEDIT, $pref, $comrow;
global $COMMENTEDIT, $pref, $comrow, $imode;
if ($pref['allowCommentEdit'] && USER && $comrow['user_id'] == USERID && $comrow['comment_lock'] != "1")
{
if (!strstr(e_QUERY, "."))
{
return "<a href='".e_SELF."?".e_QUERY."&amp;comment=edit&amp;comment_id=".$comrow['comment_id']."'><img src='".e_IMAGE."generic/".IMODE."/newsedit.png' alt='".COMLAN_318."' title='".COMLAN_318."' style='border: 0;' /></a>";
return "<a href='".e_SELF."?".e_QUERY."&amp;comment=edit&amp;comment_id=".$comrow['comment_id']."'><img src='".e_IMAGE."packs/".$imode."/generic/newsedit.png' alt='".COMLAN_318."' title='".COMLAN_318."' style='border: 0;' /></a>";
}
else
{
return "<a href='".e_SELF."?".e_QUERY.".edit.".$comrow['comment_id']."'><img src='".e_IMAGE."generic/".IMODE."/newsedit.png' alt='".COMLAN_318."' title='".COMLAN_318."' style='border: 0;' /></a>";
return "<a href='".e_SELF."?".e_QUERY.".edit.".$comrow['comment_id']."'><img src='".e_IMAGE."packs/".$imode."/generic/newsedit.png' alt='".COMLAN_318."' title='".COMLAN_318."' style='border: 0;' /></a>";
}
}
else

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.1.1.1 $
| $Date: 2006-12-02 04:33:40 $
| $Author: mcfly_e107 $
| $Revision: 1.2 $
| $Date: 2006-12-07 15:41:50 $
| $Author: sweetas $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -281,7 +281,7 @@ SC_END
SC_BEGIN DOWNLOAD_VIEW_RATING
require_once(e_HANDLER."rate_class.php");
$rater = new rater;
global $dl;
global $dl, $imode;
$text = "
<table style='width:100%'>
<tr>
@@ -289,10 +289,10 @@ global $dl;
if ($ratearray = $rater->getrating("download", $dl['download_id'])) {
for($c = 1; $c <= $ratearray[1]; $c++) {
$text .= "<img src='".e_IMAGE."rate/".IMODE."/star.png' alt='' />";
$text .= "<img src='".e_IMAGE."packs/".$imode."/rate/star.png' alt='' />";
}
if ($ratearray[2]) {
$text .= "<img src='".e_IMAGE."rate/".IMODE."/".$ratearray[2].".png' alt='' />";
$text .= "<img src='".e_IMAGE."packs/".$imode."/rate/".$ratearray[2].".png' alt='' />";
}
if ($ratearray[2] == "") {
$ratearray[2] = 0;

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/news_shortcodes.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:33:41 $
| $Author: mcfly_e107 $
| $Revision: 1.2 $
| $Date: 2006-12-07 15:41:50 $
| $Author: sweetas $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -169,10 +169,11 @@ return $news_item['news_id'];
SC_END
SC_BEGIN ADMINOPTIONS
global $imode;
$news_item = getcachedvars('current_news_item');
$param = getcachedvars('current_news_param');
if (ADMIN && getperms("H")) {
$adop_icon = (file_exists(THEME."images/newsedit.png") ? THEME."images/newsedit.png" : e_IMAGE."generic/".IMODE."/newsedit.png");
$adop_icon = (file_exists(THEME."images/newsedit.png") ? THEME."images/newsedit.png" : e_IMAGE."packs/".$imode."/generic/newsedit.png");
return " <a href='".e_BASE.e_ADMIN."newspost.php?create.edit.".$news_item['news_id']."'><img src='".$adop_icon."' alt='' style='border:0' /></a>\n";
} else {
return '';

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/user_shortcodes.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:33:41 $
| $Author: mcfly_e107 $
| $Revision: 1.2 $
| $Date: 2006-12-07 15:41:50 $
| $Author: sweetas $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -149,6 +149,7 @@ return $gen -> computeLapse($user['user_join'])." ".LAN_426;
SC_END
SC_BEGIN USER_REALNAME_ICON
global $imode;
if(defined("USER_REALNAME_ICON"))
{
return USER_REALNAME_ICON;
@@ -157,7 +158,7 @@ if(file_exists(THEME."images/user_realname.png"))
{
return "<img src='".THEME_ABS."images/user_realname.png' alt='' style='border:0px;vertical-align:middle;' /> ";
}
return "<img src='".e_IMAGE_ABS."user_icons/user_realname_".IMODE.".png' alt='' style='border:0px;vertical-align:middle;' /> ";
return "<img src='".e_IMAGE_ABS."packs/".$imode."/user_icons/user_realname.png' alt='' style='border:0px;vertical-align:middle;' /> ";
SC_END
SC_BEGIN USER_REALNAME
@@ -166,6 +167,7 @@ return $user['user_login'] ? $user['user_login'] : "<i>".LAN_401."</i>";
SC_END
SC_BEGIN USER_EMAIL_ICON
global $imode;
if(defined("USER_EMAIL_ICON"))
{
return USER_EMAIL_ICON;
@@ -174,7 +176,7 @@ if(file_exists(THEME."images/email.png"))
{
return "<img src='".THEME_ABS."images/email.png' alt='' style='vertical-align:middle;' /> ";
}
return "<img src='".e_IMAGE_ABS."generic/".IMODE."/email.png' alt='' style='vertical-align:middle;' /> ";
return "<img src='".e_IMAGE_ABS."packs/".$imode."/generic/email.png' alt='' style='vertical-align:middle;' /> ";
SC_END
SC_BEGIN USER_EMAIL_LINK
@@ -188,6 +190,7 @@ return ($user['user_hideemail'] && !ADMIN) ? "<i>".LAN_143."</i>" : $tp->toHTML(
SC_END
SC_BEGIN USER_ICON
global $imode;
if(defined("USER_ICON"))
{
return USER_ICON;
@@ -196,11 +199,11 @@ if(file_exists(THEME."images/user.png"))
{
return "<img src='".THEME_ABS."images/user.png' alt='' style='border:0px;vertical-align:middle;' /> ";
}
return "<img src='".e_IMAGE_ABS."user_icons/user_".IMODE.".png' alt='' style='border:0px;vertical-align:middle;' /> ";
return "<img src='".e_IMAGE_ABS."packs/".$imode."/user_icons/user.png' alt='' style='border:0px;vertical-align:middle;' /> ";
SC_END
SC_BEGIN USER_ICON_LINK
global $user;
global $user, $imode;
if(defined("USER_ICON"))
{
$icon = USER_ICON;
@@ -211,7 +214,7 @@ else if(file_exists(THEME."images/user.png"))
}
else
{
$icon = "<img src='".e_IMAGE_ABS."user_icons/user_".IMODE.".png' alt='' style='border:0px;vertical-align:middle;' /> ";
$icon = "<img src='".e_IMAGE_ABS."packs/".$imode."/user_icons/user.png' alt='' style='border:0px;vertical-align:middle;' /> ";
}
return "<a href='".e_SELF."?id.{$user['user_id']}'>{$icon}</a>";
SC_END
@@ -239,6 +242,7 @@ if(ADMIN && getperms("4")) {
SC_END
SC_BEGIN USER_BIRTHDAY_ICON
global $imode;
if(defined("USER_BIRTHDAY_ICON"))
{
return USER_BIRTHDAY_ICON;
@@ -247,7 +251,7 @@ if(file_exists(THEME."images/user_birthday.png"))
{
return "<img src='".THEME_ABS."images/user_birthday.png' alt='' style='vertical-align:middle;' /> ";
}
return "<img src='".e_IMAGE_ABS."user_icons/user_birthday_".IMODE.".png' alt='' style='vertical-align:middle;' /> ";
return "<img src='".e_IMAGE_ABS."packs/".$imode."/user_icons/user_birthday.png' alt='' style='vertical-align:middle;' /> ";
SC_END
SC_BEGIN USER_BIRTHDAY
@@ -283,7 +287,7 @@ return $tp->parseTemplate("{SENDPM={$user['user_id']}}");
SC_END
SC_BEGIN USER_RATING
global $pref, $user;
global $pref, $user, $imode;
if($pref['profile_rate'] && USER)
{
include_once(e_HANDLER."rate_class.php");
@@ -294,7 +298,7 @@ if($pref['profile_rate'] && USER)
$num = $rating[1];
for($i=1; $i<= $num; $i++)
{
$ret .= "<img src='".e_IMAGE_ABS."user_icons/user_star_".IMODE.".png' style='border:0' alt='' />";
$ret .= "<img src='".e_IMAGE_ABS."packs/".$imode."/user_icons/user_star.png' style='border:0' alt='' />";
}
}
if(!$rater->checkrated('user', $user['user_id']))

View File

@@ -1,10 +1,12 @@
global $imode;
if (defined("ICONMAIL") && file_exists(THEME."images/".ICONMAIL))
{
$icon = THEME."images/".ICONMAIL;
}
else
{
$icon = e_IMAGE."generic/".IMODE."/email.png";
$icon = e_IMAGE."packs/".$imode."/generic/email.png";
}
$parms = explode("^",$parm);
// message^source^other_parms

View File

@@ -1,5 +1,5 @@
global $imode;
$image = (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."generic/".IMODE."/download.png");
$image = (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."packs/".$imode."/generic/download.png");
return "<img src='$image' alt='' style='vertical-align: middle;' /> <a href='".e_FILE."downloads/".$parm."'>".$parm."</a>";

View File

@@ -1,10 +1,12 @@
global $imode;
if (defined("ICONPRINT") && file_exists(THEME."images/".ICONPRINT))
{
$icon = THEME."images/".ICONPRINT;
}
else
{
$icon = e_IMAGE."generic/".IMODE."/printer.png";
$icon = e_IMAGE."packs/".$imode."/generic/printer.png";
}
$parms = explode("^",$parm);
return "<a href='".e_BASE."print.php?{$parms[1]}'><img src='".$icon."' style='border:0' alt='{$parms[0]}' title='{$parms[0]}' /></a>";

View File

@@ -3,18 +3,18 @@
| e107 website system
|
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/sitelinks_alt.sc,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:33:40 $
| $Author: mcfly_e107 $
| $Revision: 1.2 $
| $Date: 2006-12-07 15:41:50 $
| $Author: sweetas $
+----------------------------------------------------------------------------+
*/
global $sql, $pref;
global $sql, $pref, $imode;
$params = explode('+', $parm);
if (isset($params[0]) && $params[0] && $params[0] != 'no_icons' && $params[0] != 'default') {
$icon = $params[0];
} else {
$icon = e_IMAGE."generic/".IMODE."/arrow.png";
$icon = e_IMAGE."packs/".$imode."/generic/arrow.png";
}
function adnav_cat($cat_title, $cat_link, $cat_img, $cat_id=FALSE, $cat_open=FALSE) {