mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
a bit of legacy BULLET code review
This commit is contained in:
@@ -10,9 +10,9 @@
|
|||||||
* Administration Area - Users
|
* Administration Area - Users
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_admin/users.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_admin/users.php,v $
|
||||||
* $Revision: 1.54 $
|
* $Revision: 1.55 $
|
||||||
* $Date: 2009-08-22 21:27:34 $
|
* $Date: 2009-08-23 10:57:51 $
|
||||||
* $Author: e107steved $
|
* $Author: marj_nl_fr $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
require_once ('../class2.php');
|
require_once ('../class2.php');
|
||||||
@@ -753,7 +753,15 @@ class users
|
|||||||
|
|
||||||
if (isset($ipd))
|
if (isset($ipd))
|
||||||
{
|
{
|
||||||
if(!defined("BULLET")) define("BULLET", "bullet2.gif");
|
$bullet = '';
|
||||||
|
if(defined('BULLET'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
|
}
|
||||||
// TODO - move to e_userinfo.php
|
// TODO - move to e_userinfo.php
|
||||||
$obj = new convert;
|
$obj = new convert;
|
||||||
$sql->db_Select("chatbox", "*", "cb_ip='$ipd' LIMIT 0,20");
|
$sql->db_Select("chatbox", "*", "cb_ip='$ipd' LIMIT 0,20");
|
||||||
@@ -767,9 +775,14 @@ class users
|
|||||||
$datestamp = $obj->convert_date($cb_datestamp, "short");
|
$datestamp = $obj->convert_date($cb_datestamp, "short");
|
||||||
$post_author_id = substr($cb_nick, 0, strpos($cb_nick, "."));
|
$post_author_id = substr($cb_nick, 0, strpos($cb_nick, "."));
|
||||||
$post_author_name = substr($cb_nick, (strpos($cb_nick, ".")+1));
|
$post_author_name = substr($cb_nick, (strpos($cb_nick, ".")+1));
|
||||||
$text .= "<img src='".THEME_ABS."images/".BULLET."' alt='bullet' />
|
$text .= $bullet."
|
||||||
<span class=\"defaulttext\"><i>".$post_author_name." (".USFLAN_6.": ".$post_author_id.")</i></span>\n<div class=\"mediumtext\">".$datestamp."<br />". $cb_message."
|
<span class=\"defaulttext\"><i>".$post_author_name." (".USFLAN_6.": ".$post_author_id.")</i></span>
|
||||||
</div><br />";
|
<div class=\"mediumtext\">
|
||||||
|
".$datestamp."
|
||||||
|
<br />
|
||||||
|
". $cb_message."
|
||||||
|
</div>
|
||||||
|
<br />";
|
||||||
}
|
}
|
||||||
|
|
||||||
$text .= "<hr />";
|
$text .= "<hr />";
|
||||||
@@ -780,8 +793,13 @@ class users
|
|||||||
$datestamp = $obj->convert_date($comment_datestamp, "short");
|
$datestamp = $obj->convert_date($comment_datestamp, "short");
|
||||||
$post_author_id = substr($comment_author, 0, strpos($comment_author, "."));
|
$post_author_id = substr($comment_author, 0, strpos($comment_author, "."));
|
||||||
$post_author_name = substr($comment_author, (strpos($comment_author, ".")+1));
|
$post_author_name = substr($comment_author, (strpos($comment_author, ".")+1));
|
||||||
$text .= "<img src='".THEME_ABS."images/".BULLET."' alt='bullet' />
|
$text .= $bullet."
|
||||||
<span class=\"defaulttext\"><i>".$post_author_name." (".USFLAN_6.": ".$post_author_id.")</i></span>\n<div class=\"mediumtext\">".$datestamp."<br />". $comment_comment."</div><br />";
|
<span class=\"defaulttext\"><i>".$post_author_name." (".USFLAN_6.": ".$post_author_id.")</i></span>
|
||||||
|
<div class=\"mediumtext\">
|
||||||
|
".$datestamp."
|
||||||
|
<br />". $comment_comment."
|
||||||
|
</div>
|
||||||
|
<br />";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -18,9 +18,17 @@ $news_archive_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
SC_BEGIN ARCHIVE_BULLET
|
SC_BEGIN ARCHIVE_BULLET
|
||||||
global $news2;
|
//TODO review bullet
|
||||||
//TODO review bullt
|
$bullet = '';
|
||||||
return "<img src='".THEME."images/".(defined("BULLET") ? BULLET : "bullet2.gif")."' alt='' />";
|
if(defined('BULLET'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
return $bullet;
|
||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN ARCHIVE_LINK
|
SC_BEGIN ARCHIVE_LINK
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/search/search_event.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/search/search_event.php,v $
|
||||||
| $Revision: 1.1.1.1 $
|
| $Revision: 1.2 $
|
||||||
| $Date: 2006-12-02 04:34:05 $
|
| $Date: 2009-08-23 10:57:51 $
|
||||||
| $Author: mcfly_e107 $
|
| $Author: marj_nl_fr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -60,7 +60,16 @@ while (list($event_id, $event_stake, $event_ward, $event_organisation, $event_st
|
|||||||
if (!$event_url_) {
|
if (!$event_url_) {
|
||||||
$event_threat_ = $event_threat;
|
$event_threat_ = $event_threat;
|
||||||
}
|
}
|
||||||
$text .= "<img src='".THEME_ABS."images/bullet2.gif' alt='bullet' /> <a href=\"event.php?".$event_start."\">{$event_title}</a>{$event_details}<br />";
|
$bullet = '';
|
||||||
|
if(defined('BULLET'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
$text .= $bullet." <a href=\"event.php?".$event_start."\">{$event_title}</a>{$event_details}<br />";
|
||||||
}
|
}
|
||||||
$qtype = LAN_911;
|
$qtype = LAN_911;
|
||||||
?>
|
?>
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/search_class.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/search_class.php,v $
|
||||||
| $Revision: 1.1.1.1 $
|
| $Revision: 1.2 $
|
||||||
| $Date: 2006-12-02 04:33:57 $
|
| $Date: 2009-08-23 10:57:51 $
|
||||||
| $Author: mcfly_e107 $
|
| $Author: marj_nl_fr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -29,10 +29,19 @@ class e_search {
|
|||||||
var $stopwords_php = "|a|about|an|and|are|as|at|be|by|com|edu|for|from|how|i|in|is|it|of|on|or|that|the|this|to|was|what|when|where|who|will|with|the|www|";
|
var $stopwords_php = "|a|about|an|and|are|as|at|be|by|com|edu|for|from|how|i|in|is|it|of|on|or|that|the|this|to|was|what|when|where|who|will|with|the|www|";
|
||||||
var $stopwords_mysql = "|a|a's|able|about|above|according|accordingly|across|actually|after|afterwards|again|against|ain't|all|allow|allows|almost|alone|along|already|also|although|always|am|among|amongst|an|and|another|any|anybody|anyhow|anyone|anything|anyway|anyways|anywhere|apart|appear|appreciate|appropriate|are|aren't|around|as|aside|ask|asking|associated|at|available|away|awfully|be|became|because|become|becomes|becoming|been|before|beforehand|behind|being|believe|below|beside|besides|best|better|between|beyond|both|brief|but|by|c'mon|c's|came|can|can't|cannot|cant|cause|causes|certain|certainly|changes|clearly|co|com|come|comes|concerning|consequently|consider|considering|contain|containing|contains|corresponding|could|couldn't|course|currently|definitely|described|despite|did|didn't|different|do|does|doesn't|doing|don't|done|down|downwards|during|each|edu|eg|eight|either|else|elsewhere|enough|entirely|especially|et|etc|even|ever|every|everybody|everyone|everything|everywhere|ex|exactly|example|except|far|few|fifth|first|five|followed|following|follows|for|former|formerly|forth|four|from|further|furthermore|get|gets|getting|given|gives|go|goes|going|gone|got|gotten|greetings|had|hadn't|happens|hardly|has|hasn't|have|haven't|having|he|he's|hello|help|hence|her|here|here's|hereafter|hereby|herein|hereupon|hers|herself|hi|him|himself|his|hither|hopefully|how|howbeit|however|i|i'd|i'll|i'm|i've|ie|if|ignored|immediate|in|inasmuch|inc|indeed|indicate|indicated|indicates|inner|insofar|instead|into|inward|is|isn't|it|it'd|it'll|it's|its|itself|just|keep|keeps|kept|know|knows|known|last|lately|later|latter|latterly|least|less|lest|let|let's|like|liked|likely|little|look|looking|looks|ltd|mainly|many|may|maybe|me|mean|meanwhile|merely|might|more|moreover|most|mostly|much|must|my|myself|name|namely|nd|near|nearly|necessary|need|needs|neither|never|nevertheless|new|next|nine|no|nobody|non|none|noone|nor|normally|not|nothing|novel|now|nowhere|obviously|of|off|often|oh|ok|okay|old|on|once|one|ones|only|onto|or|other|others|otherwise|ought|our|ours|ourselves|out|outside|over|overall|own|particular|particularly|per|perhaps|php|placed|please|plus|possible|presumably|probably|provides|que|quite|qv|rather|rd|re|really|reasonably|regarding|regardless|regards|relatively|respectively|right|said|same|saw|say|saying|says|second|secondly|see|seeing|seem|seemed|seeming|seems|seen|self|selves|sensible|sent|serious|seriously|seven|several|shall|she|should|shouldn't|since|six|so|some|somebody|somehow|someone|something|sometime|sometimes|somewhat|somewhere|soon|sorry|specified|specify|specifying|still|sub|such|sup|sure|t's|take|taken|tell|tends|th|than|thank|thanks|thanx|that|that's|thats|the|their|theirs|them|themselves|then|thence|there|there's|thereafter|thereby|therefore|therein|theres|thereupon|these|they|they'd|they'll|they're|they've|think|third|this|thorough|thoroughly|those|though|three|through|throughout|thru|thus|to|together|too|took|toward|towards|tried|tries|truly|try|trying|twice|two|un|under|unfortunately|unless|unlikely|until|unto|up|upon|us|use|used|useful|uses|using|usually|value|various|very|via|viz|vs|want|wants|was|wasn't|way|we|we'd|we'll|we're|we've|welcome|well|went|were|weren't|what|what's|whatever|when|whence|whenever|where|where's|whereafter|whereas|whereby|wherein|whereupon|wherever|whether|which|while|whither|who|who's|whoever|whole|whom|whose|why|will|willing|wish|with|within|without|won't|wonder|would|would|wouldn't|yes|yet|you|you'd|you'll|you're|you've|your|yours|yourself|yourselves|zero|";
|
var $stopwords_mysql = "|a|a's|able|about|above|according|accordingly|across|actually|after|afterwards|again|against|ain't|all|allow|allows|almost|alone|along|already|also|although|always|am|among|amongst|an|and|another|any|anybody|anyhow|anyone|anything|anyway|anyways|anywhere|apart|appear|appreciate|appropriate|are|aren't|around|as|aside|ask|asking|associated|at|available|away|awfully|be|became|because|become|becomes|becoming|been|before|beforehand|behind|being|believe|below|beside|besides|best|better|between|beyond|both|brief|but|by|c'mon|c's|came|can|can't|cannot|cant|cause|causes|certain|certainly|changes|clearly|co|com|come|comes|concerning|consequently|consider|considering|contain|containing|contains|corresponding|could|couldn't|course|currently|definitely|described|despite|did|didn't|different|do|does|doesn't|doing|don't|done|down|downwards|during|each|edu|eg|eight|either|else|elsewhere|enough|entirely|especially|et|etc|even|ever|every|everybody|everyone|everything|everywhere|ex|exactly|example|except|far|few|fifth|first|five|followed|following|follows|for|former|formerly|forth|four|from|further|furthermore|get|gets|getting|given|gives|go|goes|going|gone|got|gotten|greetings|had|hadn't|happens|hardly|has|hasn't|have|haven't|having|he|he's|hello|help|hence|her|here|here's|hereafter|hereby|herein|hereupon|hers|herself|hi|him|himself|his|hither|hopefully|how|howbeit|however|i|i'd|i'll|i'm|i've|ie|if|ignored|immediate|in|inasmuch|inc|indeed|indicate|indicated|indicates|inner|insofar|instead|into|inward|is|isn't|it|it'd|it'll|it's|its|itself|just|keep|keeps|kept|know|knows|known|last|lately|later|latter|latterly|least|less|lest|let|let's|like|liked|likely|little|look|looking|looks|ltd|mainly|many|may|maybe|me|mean|meanwhile|merely|might|more|moreover|most|mostly|much|must|my|myself|name|namely|nd|near|nearly|necessary|need|needs|neither|never|nevertheless|new|next|nine|no|nobody|non|none|noone|nor|normally|not|nothing|novel|now|nowhere|obviously|of|off|often|oh|ok|okay|old|on|once|one|ones|only|onto|or|other|others|otherwise|ought|our|ours|ourselves|out|outside|over|overall|own|particular|particularly|per|perhaps|php|placed|please|plus|possible|presumably|probably|provides|que|quite|qv|rather|rd|re|really|reasonably|regarding|regardless|regards|relatively|respectively|right|said|same|saw|say|saying|says|second|secondly|see|seeing|seem|seemed|seeming|seems|seen|self|selves|sensible|sent|serious|seriously|seven|several|shall|she|should|shouldn't|since|six|so|some|somebody|somehow|someone|something|sometime|sometimes|somewhat|somewhere|soon|sorry|specified|specify|specifying|still|sub|such|sup|sure|t's|take|taken|tell|tends|th|than|thank|thanks|thanx|that|that's|thats|the|their|theirs|them|themselves|then|thence|there|there's|thereafter|thereby|therefore|therein|theres|thereupon|these|they|they'd|they'll|they're|they've|think|third|this|thorough|thoroughly|those|though|three|through|throughout|thru|thus|to|together|too|took|toward|towards|tried|tries|truly|try|trying|twice|two|un|under|unfortunately|unless|unlikely|until|unto|up|upon|us|use|used|useful|uses|using|usually|value|various|very|via|viz|vs|want|wants|was|wasn't|way|we|we'd|we'll|we're|we've|welcome|well|went|were|weren't|what|what's|whatever|when|whence|whenever|where|where's|whereafter|whereas|whereby|wherein|whereupon|wherever|whether|which|while|whither|who|who's|whoever|whole|whom|whose|why|will|willing|wish|with|within|without|won't|wonder|would|would|wouldn't|yes|yet|you|you'd|you'll|you're|you've|your|yours|yourself|yourselves|zero|";
|
||||||
|
|
||||||
function e_search() {
|
function e_search()
|
||||||
global $query, $tp;
|
{
|
||||||
$this->query = $query;
|
$this->query = $query;
|
||||||
$this -> bullet = (defined("BULLET") ? "<img src='".THEME."images/".BULLET."' alt='' style='vertical-align: middle' />" : "<img src='".THEME."images/bullet2.gif' alt='' style='vertical-align: middle' />");
|
$this->bullet = '';
|
||||||
|
if(defined('BULLET'))
|
||||||
|
{
|
||||||
|
$this->bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$this->bullet = '<img src="'.THEME.'images/bullet2.gif" alt="bullet" class="icon" />';
|
||||||
|
}
|
||||||
|
|
||||||
preg_match_all('/(\W?".*?")|(.*?)(\s|$)/', $this -> query, $boolean_keys);
|
preg_match_all('/(\W?".*?")|(.*?)(\s|$)/', $this -> query, $boolean_keys);
|
||||||
sort($this -> keywords['split'] = array_unique(array_filter(str_replace('"', '', array_merge($boolean_keys[1], $boolean_keys[2])))));
|
sort($this -> keywords['split'] = array_unique(array_filter(str_replace('"', '', array_merge($boolean_keys[1], $boolean_keys[2])))));
|
||||||
foreach ($this -> keywords['split'] as $k_key => $key) {
|
foreach ($this -> keywords['split'] as $k_key => $key) {
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
* Alternate News
|
* Alternate News
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/alt_news/alt_news.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_plugins/alt_news/alt_news.php,v $
|
||||||
* $Revision: 1.4 $
|
* $Revision: 1.5 $
|
||||||
* $Date: 2009-07-06 07:14:47 $
|
* $Date: 2009-08-23 10:57:50 $
|
||||||
* $Author: marj_nl_fr $
|
* $Author: marj_nl_fr $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -44,8 +44,18 @@ function alt_news($news_category) {
|
|||||||
$datestamp = $gen->convert_date($news_datestamp, "short");
|
$datestamp = $gen->convert_date($news_datestamp, "short");
|
||||||
$news_body = strip_tags(substr($news_body, 0, 100))." ...";
|
$news_body = strip_tags(substr($news_body, 0, 100))." ...";
|
||||||
$comment_total = $sql2->db_Count("comments", "(*)", "WHERE comment_item_id='".intval($news_id)."' AND comment_type='0' ");
|
$comment_total = $sql2->db_Count("comments", "(*)", "WHERE comment_item_id='".intval($news_id)."' AND comment_type='0' ");
|
||||||
$text .= "<div class='mediumtext'>
|
$bullet = '';
|
||||||
<img src='".THEME."images/".(defined("BULLET") ? BULLET : "bullet2.gif")."' alt='bullet' /> ";
|
if(defined('BULLET'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
$text .= "
|
||||||
|
<div class='mediumtext'>
|
||||||
|
".$bullet;
|
||||||
|
|
||||||
if ($news_allow_comments) {
|
if ($news_allow_comments) {
|
||||||
$text .= "<a href='news.php?extend.".$news_id."'>".$news_title."</a>";
|
$text .= "<a href='news.php?extend.".$news_id."'>".$news_title."</a>";
|
||||||
|
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $
|
||||||
| $Revision: 1.10 $
|
| $Revision: 1.11 $
|
||||||
| $Date: 2009-07-25 07:54:34 $
|
| $Date: 2009-08-23 10:57:51 $
|
||||||
| $Author: marj_nl_fr $
|
| $Author: marj_nl_fr $
|
||||||
|
|
|
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
@@ -140,15 +140,21 @@ SC_END
|
|||||||
|
|
||||||
// CALENDAR SHOWEVENT ------------------------------------------------------------
|
// CALENDAR SHOWEVENT ------------------------------------------------------------
|
||||||
SC_BEGIN EC_SHOWEVENT_IMAGE
|
SC_BEGIN EC_SHOWEVENT_IMAGE
|
||||||
|
//TODO review bullet
|
||||||
global $ev;
|
global $ev;
|
||||||
|
|
||||||
|
$img = '';
|
||||||
if($ev['event_cat_icon'] && file_exists(e_PLUGIN."calendar_menu/images/".$ev['event_cat_icon']))
|
if($ev['event_cat_icon'] && file_exists(e_PLUGIN."calendar_menu/images/".$ev['event_cat_icon']))
|
||||||
{
|
{
|
||||||
$img = "<img style='border:0' src='".e_PLUGIN_ABS."calendar_menu/images/".$ev['event_cat_icon']."' alt='' height='".$ev['imagesize']."' width='".$ev['imagesize']."' />";
|
$img = "<img style='border:0' src='".e_PLUGIN_ABS."calendar_menu/images/".$ev['event_cat_icon']."' alt='' height='".$ev['imagesize']."' width='".$ev['imagesize']."' />";
|
||||||
}
|
}
|
||||||
else
|
elseif(defined('BULLET'))
|
||||||
{
|
{
|
||||||
//TODO review bullet
|
$img = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
$img = "<img src='".THEME."images/".(defined("BULLET") ? BULLET : "bullet2.gif")."' alt='' style='border:0; vertical-align:middle;' />";
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$img = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
}
|
}
|
||||||
return $img;
|
return $img;
|
||||||
SC_END
|
SC_END
|
||||||
@@ -547,13 +553,17 @@ SC_BEGIN EC_NEXT_EVENT_ICON
|
|||||||
$fe_icon_file = "";
|
$fe_icon_file = "";
|
||||||
if ($pref['eventpost_showcaticon'] == 1)
|
if ($pref['eventpost_showcaticon'] == 1)
|
||||||
{
|
{
|
||||||
if($cal_row['event_cat_icon'] && file_exists(e_PLUGIN."calendar_menu/images/".$cal_row['event_cat_icon']))
|
if($cal_row['event_cat_icon'] && file_exists($ecal_dir."images/".$cal_row['event_cat_icon']))
|
||||||
{
|
{
|
||||||
$fe_icon_file = e_PLUGIN_ABS."calendar_menu/images/".$cal_row['event_cat_icon'];
|
$fe_icon_file = $ecal_dir."images/".$cal_row['event_cat_icon'];
|
||||||
}
|
}
|
||||||
else
|
elseif(defined('BULLET'))
|
||||||
{
|
{
|
||||||
$fe_icon_file = THEME_ABS."images/".(defined("BULLET") ? BULLET : "bullet2.gif");
|
$img = HEME.'images/'.BULLET;
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$img = THEME.'images/bullet2.gif';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $fe_icon_file;
|
return $fe_icon_file;
|
||||||
|
@@ -7,14 +7,18 @@ if(!$CHAT_TABLE_START){
|
|||||||
$CHAT_TABLE_START = "
|
$CHAT_TABLE_START = "
|
||||||
<br /><table style='width:100%'><tr><td>";
|
<br /><table style='width:100%'><tr><td>";
|
||||||
}
|
}
|
||||||
if(!$CHAT_TABLE){
|
if(!$CHAT_TABLE)
|
||||||
$CHAT_TABLE = "\n
|
{
|
||||||
|
//TODO review bullet
|
||||||
|
$CHAT_TABLE = "
|
||||||
<div class='spacer'>
|
<div class='spacer'>
|
||||||
<div class='{CHAT_TABLE_FLAG}'>
|
<div class='{CHAT_TABLE_FLAG}'>
|
||||||
<img src='".THEME."images/bullet2.gif' alt='bullet' /> \n<b>{CHAT_TABLE_NICK}</b> ".CHATBOX_L22." {CHAT_TABLE_DATESTAMP}<br />
|
<img src='".THEME."images/bullet2.gif' alt='bullet' />
|
||||||
<div class='defaulttext'><i>{CHAT_TABLE_MESSAGE}</i></div>\n
|
<b>{CHAT_TABLE_NICK}</b> ".CHATBOX_L22." {CHAT_TABLE_DATESTAMP}
|
||||||
|
<br />
|
||||||
|
<div class='defaulttext'><i>{CHAT_TABLE_MESSAGE}</i></div>
|
||||||
</div>
|
</div>
|
||||||
</div>\n";
|
</div>";
|
||||||
|
|
||||||
}
|
}
|
||||||
if(!$CHAT_TABLE_END){
|
if(!$CHAT_TABLE_END){
|
||||||
|
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/chatbox_menu/chatbox_menu.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/chatbox_menu/chatbox_menu.php,v $
|
||||||
| $Revision: 1.14 $
|
| $Revision: 1.15 $
|
||||||
| $Date: 2009-08-15 11:55:30 $
|
| $Date: 2009-08-23 10:57:50 $
|
||||||
| $Author: marj_nl_fr $
|
| $Author: marj_nl_fr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -211,7 +211,15 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
|
|||||||
global $CHATBOXSTYLE;
|
global $CHATBOXSTYLE;
|
||||||
if( ! $CHATBOXSTYLE)
|
if( ! $CHATBOXSTYLE)
|
||||||
{
|
{
|
||||||
$bullet = (defined("BULLET") ? "<img src='".THEME_ABS."images/".BULLET."' alt='' style='vertical-align: middle;' />" : "<img src='".THEME_ABS."images/".(defined("BULLET") ? BULLET : "bullet2.gif")."' alt='' style='vertical-align: middle;' />");
|
$bullet = '';
|
||||||
|
if(defined('BULLET'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
|
}
|
||||||
// default chatbox style
|
// default chatbox style
|
||||||
$CHATBOXSTYLE = "<!-- chatbox -->\n<div class='spacer'>
|
$CHATBOXSTYLE = "<!-- chatbox -->\n<div class='spacer'>
|
||||||
$bullet <b>{USERNAME}</b><br /><span class='smalltext'>{TIMEDATE}</span><br /><div class='smallblacktext'>{MESSAGE}</div></div><br />\n";
|
$bullet <b>{USERNAME}</b><br /><span class='smalltext'>{TIMEDATE}</span><br /><div class='smallblacktext'>{MESSAGE}</div></div><br />\n";
|
||||||
|
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/comment_menu/comment_menu_shortcodes.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/comment_menu/comment_menu_shortcodes.php,v $
|
||||||
| $Revision: 1.3 $
|
| $Revision: 1.4 $
|
||||||
| $Date: 2009-07-25 07:54:35 $
|
| $Date: 2009-08-23 10:57:51 $
|
||||||
| $Author: marj_nl_fr $
|
| $Author: marj_nl_fr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -23,7 +23,16 @@ $comment_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
|
|||||||
/*
|
/*
|
||||||
SC_BEGIN CM_ICON
|
SC_BEGIN CM_ICON
|
||||||
//TODO review bullet
|
//TODO review bullet
|
||||||
return (defined("BULLET") ? "<img src='".THEME_ABS."images/".BULLET."' alt='' style='border:0; vertical-align: middle;' />" : "<img src='".THEME_ABS."images/bullet2.gif' alt='bullet' style='border:0; vertical-align: middle;' />");
|
$bullet = '';
|
||||||
|
if(defined('BULLET'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
return $bullet;
|
||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN CM_DATESTAMP
|
SC_BEGIN CM_DATESTAMP
|
||||||
|
@@ -880,12 +880,27 @@ SC_END
|
|||||||
|
|
||||||
SC_BEGIN CM_MENU_LINKS_ICON
|
SC_BEGIN CM_MENU_LINKS_ICON
|
||||||
global $content_pref, $bullet;
|
global $content_pref, $bullet;
|
||||||
|
//TODO review bullet + use switch
|
||||||
//define icon
|
//define icon
|
||||||
if($content_pref["content_menu_links_icon"] == "0"){ $ret = "";
|
if($content_pref["content_menu_links_icon"] == "0")
|
||||||
}elseif($content_pref["content_menu_links_icon"] == "1"){ $ret = $bullet;
|
{
|
||||||
}elseif($content_pref["content_menu_links_icon"] == "2"){ $ret = "·";
|
$ret = "";
|
||||||
}elseif($content_pref["content_menu_links_icon"] == "3"){ $ret = "º";
|
}
|
||||||
}elseif($content_pref["content_menu_links_icon"] == "4"){ $ret = "»";
|
elseif($content_pref["content_menu_links_icon"] == "1")
|
||||||
|
{
|
||||||
|
$ret = $bullet;
|
||||||
|
}
|
||||||
|
elseif($content_pref["content_menu_links_icon"] == "2")
|
||||||
|
{
|
||||||
|
$ret = "·";
|
||||||
|
}
|
||||||
|
elseif($content_pref["content_menu_links_icon"] == "3")
|
||||||
|
{
|
||||||
|
$ret = "º";
|
||||||
|
}
|
||||||
|
elseif($content_pref["content_menu_links_icon"] == "4")
|
||||||
|
{
|
||||||
|
$ret = "»";
|
||||||
}
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
SC_END
|
SC_END
|
||||||
@@ -961,6 +976,7 @@ return ($content_pref["content_menu_cat_caption"] != "" ? $content_pref["content
|
|||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN CM_MENU_CATEGORY_ICON
|
SC_BEGIN CM_MENU_CATEGORY_ICON
|
||||||
|
//TODO legacy bullet + use switch
|
||||||
global $content_pref, $row, $bullet;
|
global $content_pref, $row, $bullet;
|
||||||
$ret = "";
|
$ret = "";
|
||||||
if($content_pref["content_menu_cat_icon"] == "0"){ $ret = "";
|
if($content_pref["content_menu_cat_icon"] == "0"){ $ret = "";
|
||||||
|
@@ -12,9 +12,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_class.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_class.php,v $
|
||||||
| $Revision: 1.22 $
|
| $Revision: 1.23 $
|
||||||
| $Date: 2007-04-18 21:41:58 $
|
| $Date: 2009-08-23 10:57:51 $
|
||||||
| $Author: lisa_ $
|
| $Author: marj_nl_fr $
|
||||||
+---------------------------------------------------------------+
|
+---------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -1413,9 +1413,18 @@ class content{
|
|||||||
$data .= "global \$tp;\n";
|
$data .= "global \$tp;\n";
|
||||||
$data .= "\n";
|
$data .= "\n";
|
||||||
$data .= "include_lan(e_PLUGIN.'content/languages/'.e_LANGUAGE.'/lan_content.php');\n";
|
$data .= "include_lan(e_PLUGIN.'content/languages/'.e_LANGUAGE.'/lan_content.php');\n";
|
||||||
$data .= "\n";
|
$data .= '
|
||||||
$data .= "\$bullet = (defined('BULLET') ? \"<img src='\".THEME_ABS.\"images/\".BULLET.\"' alt='' style='border:0;vertical-align: middle;' />\" : \"<img src='\".THEME_ABS.\"images/bullet2.gif' alt='bullet' style='border:0;vertical-align: middle;' />\");\n";
|
$bullet = \'\';
|
||||||
$data .= "\n";
|
if(defined(\'BULLET\'))
|
||||||
|
{
|
||||||
|
$bullet = \'<img src="\'.THEME.\'images/\'.BULLET.\'" alt="" class="icon" />\';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.\'images/bullet2.gif\'))
|
||||||
|
{
|
||||||
|
$bullet = \'<img src="\'.THEME.\'images/bullet2.gif" alt="" class="icon" />\';
|
||||||
|
}
|
||||||
|
';
|
||||||
|
|
||||||
$data .= "\$content_pref = \$aa -> getContentPref(\$menutypeid, true);\n";
|
$data .= "\$content_pref = \$aa -> getContentPref(\$menutypeid, true);\n";
|
||||||
$data .= "\n";
|
$data .= "\n";
|
||||||
$data .= "// load the template --------------------------------------------------\n";
|
$data .= "// load the template --------------------------------------------------\n";
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/newforumposts_menu.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/newforumposts_menu.php,v $
|
||||||
| $Revision: 1.7 $
|
| $Revision: 1.8 $
|
||||||
| $Date: 2008-12-07 00:21:21 $
|
| $Date: 2009-08-23 10:57:51 $
|
||||||
| $Author: mcfly_e107 $
|
| $Author: marj_nl_fr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
@@ -68,7 +68,8 @@ if($results = $e107->sql->db_Select_gen($qry))
|
|||||||
$post = $e107->tp->text_truncate($post, $menu_pref['newforumposts_characters'], $menu_pref['newforumposts_postfix']);
|
$post = $e107->tp->text_truncate($post, $menu_pref['newforumposts_characters'], $menu_pref['newforumposts_postfix']);
|
||||||
|
|
||||||
$url = $e107->url->getUrl('forum', 'thread', array('func' => 'last', 'id' => $id));
|
$url = $e107->url->getUrl('forum', 'thread', array('func' => 'last', 'id' => $id));
|
||||||
$bullet = "<img src='".THEME_ABS.'images/'.(defined('BULLET') ? BULLET : 'bullet2.gif')."' alt='' />";
|
//TODO legacy bullet is not use here anymore
|
||||||
|
//$bullet = "<img src='".THEME_ABS.'images/'.(defined('BULLET') ? BULLET : 'bullet2.gif')."' alt='' />";
|
||||||
|
|
||||||
|
|
||||||
if ($menu_pref['newforumposts_title'])
|
if ($menu_pref['newforumposts_title'])
|
||||||
|
@@ -16,7 +16,16 @@ global $tp;
|
|||||||
include_lan(e_PLUGIN."links_page/languages/".e_LANGUAGE.".php");
|
include_lan(e_PLUGIN."links_page/languages/".e_LANGUAGE.".php");
|
||||||
|
|
||||||
//TODO review bullet
|
//TODO review bullet
|
||||||
$bullet = "<img src='".THEME_ABS."images/bullet2.gif' alt='' />";
|
$bullet = '';
|
||||||
|
if(defined('BULLET'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
|
||||||
global $linkspage_pref;
|
global $linkspage_pref;
|
||||||
$linkspage_pref = $lc -> getLinksPagePref();
|
$linkspage_pref = $lc -> getLinksPagePref();
|
||||||
|
|
||||||
|
@@ -155,34 +155,58 @@ SC_END
|
|||||||
SC_BEGIN LINK_MAIN_ICON
|
SC_BEGIN LINK_MAIN_ICON
|
||||||
global $LINK_MAIN_ICON, $rowl, $linkspage_pref;
|
global $LINK_MAIN_ICON, $rowl, $linkspage_pref;
|
||||||
$LINK_MAIN_ICON = "";
|
$LINK_MAIN_ICON = "";
|
||||||
if(isset($linkspage_pref['link_cat_icon']) && $linkspage_pref['link_cat_icon']){
|
$bullet = '';
|
||||||
if (isset($rowl['link_category_icon']) && $rowl['link_category_icon']) {
|
if(defined('BULLET'))
|
||||||
if(strstr($rowl['link_category_icon'], "/")){
|
{
|
||||||
if(file_exists(e_BASE.$rowl['link_category_icon'])){
|
$bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
|
||||||
|
if(isset($linkspage_pref['link_cat_icon']) && $linkspage_pref['link_cat_icon'])
|
||||||
|
{
|
||||||
|
if (isset($rowl['link_category_icon']) && $rowl['link_category_icon'])
|
||||||
|
{
|
||||||
|
if(strstr($rowl['link_category_icon'], "/"))
|
||||||
|
{
|
||||||
|
if(file_exists(e_BASE.$rowl['link_category_icon']))
|
||||||
|
{
|
||||||
$LINK_MAIN_ICON = "<img src='".e_BASE.$rowl['link_category_icon']."' alt='' style='border:0; vertical-align:middle' />";
|
$LINK_MAIN_ICON = "<img src='".e_BASE.$rowl['link_category_icon']."' alt='' style='border:0; vertical-align:middle' />";
|
||||||
} else {
|
|
||||||
if(isset($linkspage_pref['link_cat_icon_empty']) && $linkspage_pref['link_cat_icon_empty']){
|
|
||||||
//TODO review bullet
|
|
||||||
$LINK_MAIN_ICON = "<img src='".THEME_ABS."images/".(defined("BULLET") ? BULLET : "bullet2.gif")."' alt='' style='border:0; vertical-align:middle;' />";
|
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
}else{
|
{
|
||||||
if(file_exists(e_PLUGIN."links_page/cat_images/".$rowl['link_category_icon'])){
|
if(isset($linkspage_pref['link_cat_icon_empty']) && $linkspage_pref['link_cat_icon_empty'])
|
||||||
$LINK_MAIN_ICON = "<img src='".e_PLUGIN_ABS."links_page/cat_images/".$rowl['link_category_icon']."' alt='' style='vertical-align:middle' />";
|
{
|
||||||
} else {
|
$LINK_MAIN_ICON = $bullet;
|
||||||
if(isset($linkspage_pref['link_cat_icon_empty']) && $linkspage_pref['link_cat_icon_empty']){
|
|
||||||
//TODO review bullet
|
|
||||||
$LINK_MAIN_ICON = "<img src='".THEME_ABS."images/".(defined("BULLET") ? BULLET : "bullet2.gif")."' alt='' style='vertical-align:middle;' />";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
else
|
||||||
if(isset($linkspage_pref['link_cat_icon_empty']) && $linkspage_pref['link_cat_icon_empty']){
|
{
|
||||||
//TODO review bullet
|
if(file_exists(e_PLUGIN."links_page/cat_images/".$rowl['link_category_icon']))
|
||||||
$LINK_MAIN_ICON = "<img src='".THEME_ABS."images/".(defined("BULLET") ? BULLET : "bullet2.gif")."' alt='' style='vertical-align:middle;' />";
|
{
|
||||||
|
$LINK_MAIN_ICON = "<img src='".e_PLUGIN_ABS."links_page/cat_images/".$rowl['link_category_icon']."' alt='' style='border:0; vertical-align:middle' />";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(isset($linkspage_pref['link_cat_icon_empty']) && $linkspage_pref['link_cat_icon_empty'])
|
||||||
|
{
|
||||||
|
$LINK_MAIN_ICON = $bullet;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($rowl['total_links'] && $LINK_MAIN_ICON){
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(isset($linkspage_pref['link_cat_icon_empty']) && $linkspage_pref['link_cat_icon_empty'])
|
||||||
|
{
|
||||||
|
$LINK_MAIN_ICON = $bullet;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($rowl['total_links'] && $LINK_MAIN_ICON)
|
||||||
|
{
|
||||||
$LINK_MAIN_ICON = "<a href='links.php?cat.".$rowl['link_category_id']."'>".$LINK_MAIN_ICON."</a>";
|
$LINK_MAIN_ICON = "<a href='links.php?cat.".$rowl['link_category_id']."'>".$LINK_MAIN_ICON."</a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
* List Class
|
* List Class
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/list_new/list_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_plugins/list_new/list_class.php,v $
|
||||||
* $Revision: 1.10 $
|
* $Revision: 1.11 $
|
||||||
* $Date: 2009-08-15 11:55:30 $
|
* $Date: 2009-08-23 10:57:51 $
|
||||||
* $Author: marj_nl_fr $
|
* $Author: marj_nl_fr $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -609,9 +609,13 @@ class listclass
|
|||||||
|
|
||||||
if($this->list_pref[$this->mode."_icon_default"])
|
if($this->list_pref[$this->mode."_icon_default"])
|
||||||
{
|
{
|
||||||
if(is_readable(THEME."images/bullet2.gif"))
|
if(defined('BULLET'))
|
||||||
{
|
{
|
||||||
$default_bullet = "<img src='".THEME_ABS."images/bullet2.gif' alt='' />";
|
$default_bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$default_bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu.php,v $
|
||||||
| $Revision: 1.10 $
|
| $Revision: 1.11 $
|
||||||
| $Date: 2008-06-13 20:20:22 $
|
| $Date: 2009-08-23 10:57:51 $
|
||||||
| $Author: e107steved $
|
| $Author: marj_nl_fr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -34,12 +34,12 @@ $ip = $e107->getip();
|
|||||||
//Bullet
|
//Bullet
|
||||||
if(defined("BULLET"))
|
if(defined("BULLET"))
|
||||||
{
|
{
|
||||||
$bullet = "<img src='".THEME_ABS."images/".BULLET."' alt='' style='vertical-align: middle;' />";
|
$bullet = "<img src='".THEME_ABS."images/".BULLET."' alt='' class='icon' />";
|
||||||
$bullet_src = THEME_ABS."images/".BULLET;
|
$bullet_src = THEME_ABS."images/".BULLET;
|
||||||
}
|
}
|
||||||
elseif(file_exists(THEME."images/bullet2.gif"))
|
elseif(file_exists(THEME."images/bullet2.gif"))
|
||||||
{
|
{
|
||||||
$bullet = "<img src='".THEME_ABS."images/bullet2.gif' alt='bullet' style='vertical-align: middle;' />";
|
$bullet = "<img src='".THEME_ABS."images/bullet2.gif' alt='bullet' class='icon' />";
|
||||||
$bullet_src = THEME_ABS."images/bullet2.gif";
|
$bullet_src = THEME_ABS."images/bullet2.gif";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu_shortcodes.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu_shortcodes.php,v $
|
||||||
| $Revision: 1.7 $
|
| $Revision: 1.8 $
|
||||||
| $Date: 2009-03-06 20:09:08 $
|
| $Date: 2009-08-23 10:57:51 $
|
||||||
| $Author: e107coders $
|
| $Author: marj_nl_fr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
@@ -139,8 +139,9 @@ return '';
|
|||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN LM_ADMINLINK_BULLET
|
SC_BEGIN LM_ADMINLINK_BULLET
|
||||||
|
if(ADMIN)
|
||||||
|
{
|
||||||
$data = getcachedvars('login_menu_data');
|
$data = getcachedvars('login_menu_data');
|
||||||
if(ADMIN==TRUE){
|
|
||||||
return $parm == 'src' ? $data['link_bullet_src'] : $data['link_bullet'];
|
return $parm == 'src' ? $data['link_bullet_src'] : $data['link_bullet'];
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
20
page.php
20
page.php
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/page.php,v $
|
| $Source: /cvs_backup/e107_0.8/page.php,v $
|
||||||
| $Revision: 1.19 $
|
| $Revision: 1.20 $
|
||||||
| $Date: 2009-07-14 05:31:57 $
|
| $Date: 2009-08-23 10:57:50 $
|
||||||
| $Author: e107coders $
|
| $Author: marj_nl_fr $
|
||||||
|
|
|
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -111,18 +111,14 @@ class pageClass
|
|||||||
$this -> pageID = intval($tmp[0]);
|
$this -> pageID = intval($tmp[0]);
|
||||||
$this -> pageSelected = (isset($tmp[1]) ? intval($tmp[1]) : 0);
|
$this -> pageSelected = (isset($tmp[1]) ? intval($tmp[1]) : 0);
|
||||||
$this -> pageTitles = array();
|
$this -> pageTitles = array();
|
||||||
if(defined("BULLET"))
|
$this->bullet = '';
|
||||||
|
if(defined('BULLET'))
|
||||||
{
|
{
|
||||||
$this -> bullet = "<img src='".THEME."images/".BULLET."' alt='' style='vertical-align: middle;' />";
|
$this->bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
}
|
}
|
||||||
elseif(file_exists(THEME."images/bullet2.gif"))
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
{
|
{
|
||||||
$this -> bullet = "<img src='".THEME."images/bullet2.gif' alt='bullet' style='vertical-align: middle;' />";
|
$this->bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this -> bullet = "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this -> debug = $debug;
|
$this -> debug = $debug;
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/userposts.php,v $
|
| $Source: /cvs_backup/e107_0.8/userposts.php,v $
|
||||||
| $Revision: 1.10 $
|
| $Revision: 1.11 $
|
||||||
| $Date: 2009-07-14 05:31:57 $
|
| $Date: 2009-08-23 10:57:50 $
|
||||||
| $Author: e107coders $
|
| $Author: marj_nl_fr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
require_once('class2.php');
|
require_once('class2.php');
|
||||||
@@ -44,11 +44,6 @@ if ($action == 'exit')
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!defined("BULLET"))
|
|
||||||
{
|
|
||||||
define("BULLET", "bullet2.gif");
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == "comments")
|
if ($action == "comments")
|
||||||
{
|
{
|
||||||
if(is_numeric($id))
|
if(is_numeric($id))
|
||||||
@@ -221,7 +216,16 @@ function parse_userposts_comments_table($row)
|
|||||||
|
|
||||||
$gen = new convert;
|
$gen = new convert;
|
||||||
$datestamp = $gen->convert_date($row['comment_datestamp'], "short");
|
$datestamp = $gen->convert_date($row['comment_datestamp'], "short");
|
||||||
$USERPOSTS_COMMENTS_ICON = "<img src='".THEME."images/".BULLET."' alt='' />";
|
$bullet = '';
|
||||||
|
if(defined('BULLET'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
elseif(file_exists(THEME.'images/bullet2.gif'))
|
||||||
|
{
|
||||||
|
$bullet = '<img src="'.THEME.'images/bullet2.gif" alt="" class="icon" />';
|
||||||
|
}
|
||||||
|
$USERPOSTS_COMMENTS_ICON = $bullet;
|
||||||
$USERPOSTS_COMMENTS_DATESTAMP = UP_LAN_11." ".$datestamp;
|
$USERPOSTS_COMMENTS_DATESTAMP = UP_LAN_11." ".$datestamp;
|
||||||
$USERPOSTS_COMMENTS_HEADING = $row['comment_title'];
|
$USERPOSTS_COMMENTS_HEADING = $row['comment_title'];
|
||||||
$USERPOSTS_COMMENTS_COMMENT = $row['comment_comment'];
|
$USERPOSTS_COMMENTS_COMMENT = $row['comment_comment'];
|
||||||
|
Reference in New Issue
Block a user