mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 21:21:54 +02:00
deprecated folder removal
This commit is contained in:
parent
9f05b8539e
commit
4f239954ca
@ -1,95 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/banner_menu/banner_menu.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2008-08-03 08:08:31 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
/*
|
||||
To define your own banner to use here ...
|
||||
|
||||
1. Go to admin -> banners and create a campaign, then add your banner to it
|
||||
2. Add this line to this file ...
|
||||
|
||||
$campaign = NAME_OF_YOUR_CAMPAIGN
|
||||
|
||||
3. Save file
|
||||
*/
|
||||
|
||||
|
||||
global $THEMES_DIRECTORY;
|
||||
if (file_exists(THEME."banner_template.php"))
|
||||
{
|
||||
require_once(THEME."banner_template.php");
|
||||
}
|
||||
else
|
||||
{
|
||||
require_once(e_BASE.$THEMES_DIRECTORY."templates/banner_template.php");
|
||||
}
|
||||
|
||||
if(isset($campaign))
|
||||
{
|
||||
$parm = $campaign;
|
||||
$bannersccode = file_get_contents(e_FILE."shortcode/banner.sc");
|
||||
$BANNER = eval($bannersccode);
|
||||
$txt = $BANNER_MENU_START;
|
||||
$txt .= preg_replace("/\{(.*?)\}/e", '$\1', $BANNER_MENU);
|
||||
$txt .= $BANNER_MENU_END;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isset($menu_pref['banner_campaign']) && $menu_pref['banner_campaign'])
|
||||
{
|
||||
if(strstr($menu_pref['banner_campaign'], "|"))
|
||||
{
|
||||
$campaignlist = explode("|", $menu_pref['banner_campaign']);
|
||||
$amount = ($menu_pref['banner_amount']<1 ? '1' : $menu_pref['banner_amount']);
|
||||
$amount = ($amount > count($campaignlist) ? count($campaignlist) : $amount);
|
||||
$keys = array_rand($campaignlist, $amount);
|
||||
$parms = array();
|
||||
foreach($keys as $k=>$v)
|
||||
{
|
||||
$parms[] = $campaignlist[$v];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$parms[] = $menu_pref['banner_campaign'];
|
||||
}
|
||||
}
|
||||
|
||||
$txt = $BANNER_MENU_START;
|
||||
foreach($parms as $parm)
|
||||
{
|
||||
$bannersccode = file_get_contents(e_FILE."shortcode/banner.sc");
|
||||
$BANNER = eval($bannersccode);
|
||||
$txt .= preg_replace("/\{(.*?)\}/e", '$\1', $BANNER_MENU);
|
||||
}
|
||||
$txt .= $BANNER_MENU_END;
|
||||
}
|
||||
|
||||
if (isset($menu_pref['banner_rendertype']) && $menu_pref['banner_rendertype'] == 2)
|
||||
{
|
||||
$ns->tablerender($menu_pref['banner_caption'], $txt);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $txt;
|
||||
}
|
||||
|
||||
?>
|
@ -1,280 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2001-2008 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
* Banner Menu Configuration (OLD - redirects to e107_admin/banner.php)
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/banner_menu/config.php,v $
|
||||
* $Revision: 1.5 $
|
||||
* $Date: 2009-08-15 11:55:30 $
|
||||
* $Author: marj_nl_fr $
|
||||
*
|
||||
*/
|
||||
$eplug_admin = TRUE;
|
||||
require_once("../../class2.php");
|
||||
|
||||
/*
|
||||
* The same, cleaned up code is already part of banner.php
|
||||
* FIXME - we should be able to combine all core menus in a nice way... somehow
|
||||
*/
|
||||
header('Location:'.e_ADMIN_ABS.'banner.php?menu');
|
||||
exit;
|
||||
|
||||
if (!getperms("1")) // Access to those who can change prefs, theme etc
|
||||
{
|
||||
header("location:".e_BASE."index.php");
|
||||
exit ;
|
||||
}
|
||||
require_once(e_ADMIN."auth.php");
|
||||
require_once(e_HANDLER."form_handler.php");
|
||||
$rs = new form;
|
||||
|
||||
include_lan(e_PLUGIN."banner_menu/languages/".e_LANGUAGE.".php");
|
||||
include_lan(e_LANGUAGEDIR.e_LANGUAGE."/admin/lan_menus.php");
|
||||
|
||||
if (e_QUERY)
|
||||
{
|
||||
$tmp = explode(".", e_QUERY);
|
||||
$action = $tmp[0];
|
||||
$sub_action = $tmp[1];
|
||||
$id = $tmp[2];
|
||||
unset($tmp);
|
||||
}
|
||||
|
||||
if (isset($_POST['update_menu']))
|
||||
{
|
||||
unset($temp);
|
||||
foreach($_POST as $k => $v)
|
||||
{
|
||||
if (strpos($k, "banner_") === 0)
|
||||
{
|
||||
$temp[$k] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_POST['catid']))
|
||||
{
|
||||
$array_cat = explode("-", $_POST['catid']);
|
||||
for($i = 0; $i < count($array_cat); $i++)
|
||||
{
|
||||
$cat .= $array_cat[$i]."|";
|
||||
}
|
||||
$cat = substr($cat, 0, -1);
|
||||
$temp['banner_campaign'] = $cat;
|
||||
}
|
||||
|
||||
|
||||
if ($admin_log->logArrayDiffs($temp, $menu_pref, 'BANNER_05'))
|
||||
{
|
||||
$sysprefs->setArray('menu_pref'); // Only save if changes
|
||||
$message = BANNER_MENU_L2;
|
||||
}
|
||||
else
|
||||
{
|
||||
$message = BANNER_MENU_L19;
|
||||
}
|
||||
$ns->tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
}
|
||||
|
||||
if (!$menu_pref['banner_caption'])
|
||||
{
|
||||
$menu_pref['banner2_caption'] = BANNER_MENU_L1;
|
||||
}
|
||||
|
||||
$text = "<div style='text-align:center'>
|
||||
<form method='post' action='".e_SELF."' name='menu_conf_form'>
|
||||
<table style='width:85%' class='fborder' >
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".BANNER_MENU_L3.": </td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<input class='tbox' type='text' name='banner_caption' size='20' value='".$menu_pref['banner_caption']."' maxlength='100' />
|
||||
</td>
|
||||
</tr>";
|
||||
|
||||
$array_cat_in = explode("|", $menu_pref['banner_campaign']);
|
||||
|
||||
$c = 0;
|
||||
$d = 0;
|
||||
$sql2 = new db;
|
||||
$category_total = $sql2->db_Select("banner", "DISTINCT(SUBSTRING_INDEX(banner_campaign, '^', 1)) as banner_campaign", "ORDER BY banner_campaign", "mode=no_where");
|
||||
while ($row = $sql2->db_Fetch()) {
|
||||
extract($row);
|
||||
if (in_array($banner_campaign, $array_cat_in)) {
|
||||
$in_catname[$c] = $banner_campaign;
|
||||
$c++;
|
||||
} else {
|
||||
$out_catname[$d] = $banner_campaign;
|
||||
$d++;
|
||||
}
|
||||
}
|
||||
|
||||
$text .= "
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".BANNER_MENU_L6."</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
|
||||
<table style='width:90%'>
|
||||
<tr>
|
||||
<td style='width:45%; vertical-align:top'>".BANNER_MENU_L7."<br />
|
||||
<select class='tbox' id='catout' name='catout' size='10' style='width:180px' multiple='multiple' onchange='moveOver();'>";
|
||||
for($a = 0; $a <= ($d-1); $a++) {
|
||||
$text .= "<option value='".$out_catname[$a]."'>".$out_catname[$a]."</option>";
|
||||
}
|
||||
$text .= "</select>
|
||||
</td>
|
||||
<td style='width:45%; vertical-align:top'>".BANNER_MENU_L8."<br />
|
||||
<select class='tbox' id='catin' name='catin' size='10' style='width:180px' multiple='multiple'>";
|
||||
for($a = 0; $a <= ($c-1); $a++) {
|
||||
$catidvalues .= $in_catname[$a]."-";
|
||||
$text .= "<option value='".$in_catname[$a]."'>".$in_catname[$a]."</option>";
|
||||
}
|
||||
$catidvalues = substr($catidvalues, 0, -1);
|
||||
$text .= "</select><br /><br />
|
||||
<input class='button' type='button' value='".BANNER_MENU_L9."' onclick='removeMe();' />
|
||||
<input type='hidden' name='catid' id='catid' value='".$catidvalues."' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".BANNER_MENU_L10."</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<select class='tbox' id='banner_rendertype' name='banner_rendertype' size='1' >
|
||||
".$rs->form_option(BANNER_MENU_L11, (!$menu_pref['banner_rendertype'] || $menu_pref['banner_rendertype'] == "0" ? "1" : "0"), 0)."
|
||||
".$rs->form_option("1 - ".BANNER_MENU_L12."", ($menu_pref['banner_rendertype'] == "1" ? "1" : "0"), 1)."
|
||||
".$rs->form_option("2 - ".BANNER_MENU_L13."", ($menu_pref['banner_rendertype'] == "2" ? "1" : "0"), 2)."
|
||||
".$rs->form_option("3 - ".BANNER_MENU_L14."", ($menu_pref['banner_rendertype'] == "3" ? "1" : "0"), 3)."
|
||||
".$rs->form_select_close()."
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".BANNER_MENU_L15."<br /><span class='smalltext' style='font-style:italic;'>".BANNER_MENU_L16."</span></td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<select class='tbox' id='banner_amount' name='banner_amount' size='1' >
|
||||
".$rs->form_option(BANNER_MENU_L17, (!$menu_pref['banner_amount'] ? "1" : "0"), 0);
|
||||
for($b = 1; $b < 6; $b++) {
|
||||
$text .= $rs->form_option($b, ($menu_pref['banner_amount'] == $b ? "1" : "0"), $b);
|
||||
}
|
||||
$text .= $rs->form_select_close()."
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader' style='text-align:center'><input class='button' type='submit' name='update_menu' value='".BANNER_MENU_L18."' /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
|
||||
$ns->tablerender(BANNER_MENU_L5, $text);
|
||||
|
||||
|
||||
require_once(e_ADMIN."footer.php");
|
||||
|
||||
function headerjs() {
|
||||
|
||||
$script_js = "<script type=\"text/javascript\">
|
||||
//<!--
|
||||
//<!-- Adapted from original: Kathi O'Shea (Kathi.O'Shea@internet.com) -->
|
||||
|
||||
function moveOver(){
|
||||
var boxLength = document.getElementById('catin').length;
|
||||
var selectedItem = document.getElementById('catout').selectedIndex;
|
||||
var selectedText = document.getElementById('catout').options[selectedItem].text;
|
||||
var selectedValue = document.getElementById('catout').options[selectedItem].value;
|
||||
|
||||
var i;
|
||||
var isNew = true;
|
||||
if (boxLength != 0) {
|
||||
for (i = 0; i < boxLength; i++) {
|
||||
thisitem = document.getElementById('catin').options[i].text;
|
||||
if (thisitem == selectedText) {
|
||||
isNew = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isNew) {
|
||||
newoption = new Option(selectedText, selectedValue, false, false);
|
||||
document.getElementById('catin').options[boxLength] = newoption;
|
||||
document.getElementById('catout').options[selectedItem].text = '';
|
||||
}
|
||||
document.getElementById('catout').selectedIndex=-1;
|
||||
|
||||
saveMe();
|
||||
}
|
||||
|
||||
function removeMe() {
|
||||
var boxLength = document.getElementById('catin').length;
|
||||
var boxLength2 = document.getElementById('catout').length;
|
||||
arrSelected = new Array();
|
||||
var count = 0;
|
||||
for (i = 0; i < boxLength; i++) {
|
||||
if (document.getElementById('catin').options[i].selected) {
|
||||
arrSelected[count] = document.getElementById('catin').options[i].value;
|
||||
var valname = document.getElementById('catin').options[i].text;
|
||||
for (j = 0; j < boxLength2; j++) {
|
||||
if (document.getElementById('catout').options[j].value == arrSelected[count]){
|
||||
document.getElementById('catout').options[j].text = valname;
|
||||
}
|
||||
}
|
||||
}
|
||||
count++;
|
||||
}
|
||||
var x;
|
||||
for (i = 0; i < boxLength; i++) {
|
||||
for (x = 0; x < arrSelected.length; x++) {
|
||||
if (document.getElementById('catin').options[i].value == arrSelected[x]) {
|
||||
document.getElementById('catin').options[i] = null;
|
||||
}
|
||||
}
|
||||
boxLength = document.getElementById('catin').length;
|
||||
}
|
||||
|
||||
saveMe();
|
||||
}
|
||||
|
||||
//function clearMe(clid){
|
||||
// location.href = document.location + \"?clear.\" + clid;
|
||||
//}
|
||||
|
||||
function saveMe(clid) {
|
||||
var strValues = \"\";
|
||||
var boxLength = document.getElementById('catin').length;
|
||||
var count = 0;
|
||||
if (boxLength != 0) {
|
||||
for (i = 0; i < boxLength; i++) {
|
||||
if (count == 0) {
|
||||
strValues = document.getElementById('catin').options[i].value;
|
||||
}
|
||||
else {
|
||||
strValues = strValues + \"-\" + document.getElementById('catin').options[i].value;
|
||||
}
|
||||
count++;
|
||||
}
|
||||
}
|
||||
if (strValues.length == 0) {
|
||||
//alert(\"You have not made any selections\");
|
||||
document.getElementById('catid').value = \"\";
|
||||
}
|
||||
else {
|
||||
document.getElementById('catid').value = strValues;
|
||||
}
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>\n";
|
||||
return $script_js;
|
||||
}
|
||||
|
||||
?>
|
@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/banner_menu/languages/English.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2008-12-08 22:23:53 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
define("BANNER_MENU_L1", "Advertisement");
|
||||
define("BANNER_MENU_L2", "Banner menu configuration saved");
|
||||
|
||||
//v.617
|
||||
define("BANNER_MENU_L3", "Caption");
|
||||
define("BANNER_MENU_L4", "Campaign");
|
||||
define("BANNER_MENU_L5", "Banner Menu Configuration");
|
||||
define("BANNER_MENU_L6", "choose campaigns to show in menu");
|
||||
define("BANNER_MENU_L7", "available campaigns");
|
||||
define("BANNER_MENU_L8", "selected campaigns");
|
||||
define("BANNER_MENU_L9", "remove selection");
|
||||
define("BANNER_MENU_L10", "how should the selected campaigns be shown ?");
|
||||
define("BANNER_MENU_L11", "choose render type ...");
|
||||
define("BANNER_MENU_L12", "one campaign in single menu");
|
||||
define("BANNER_MENU_L13", "all selected campaigns in single menu");
|
||||
define("BANNER_MENU_L14", "all selected campaigns in separate menus");
|
||||
define("BANNER_MENU_L15", "how many banners should be shown ?");
|
||||
define("BANNER_MENU_L16", "this setting will only be used with options 2 and 3.<br />if less banners are present the maximum available amount will be used.");
|
||||
define("BANNER_MENU_L17", "set amount ...");
|
||||
define("BANNER_MENU_L18", "Update Menu Settings");
|
||||
define('BANNER_MENU_L19', 'Nothing changed - not saved');
|
||||
|
||||
?>
|
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
$text = "<div style='text-align:center'>
|
||||
<a href='http://validator.w3.org/check?uri=".e_SELF.(e_QUERY ? '?'.e_QUERY : '')."'><img src='".e_PLUGIN_ABS."siteinfo_menu/images/valid-xhtml11.png' alt='Valid XHTML 1.1!' height='31' width='88' /></a><br />
|
||||
<a href='http://jigsaw.w3.org/css-validator/validator?uri=".e_SELF.(e_QUERY ? '?'.e_QUERY : '')."'><img src='".e_PLUGIN_ABS."siteinfo_menu/images/vcss.png' alt='Valid CSS!' height='31' width='88' /></a>
|
||||
</div>";
|
||||
$caption = (file_exists(THEME."images/compliance_menu.png") ? "<img src='".THEME_ABS."images/compliance_menu.png' alt='' /> ".COMPLIANCE_L1 : COMPLIANCE_L1);
|
||||
$ns->tablerender($caption, $text, 'compliance');
|
||||
?>
|
@ -1,83 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/siteinfo_menu/counter_menu.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2008-01-13 09:44:45 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
$text = "";
|
||||
if (isset($pref['statActivate']) && $pref['statActivate'] == true)
|
||||
{
|
||||
$pageName = preg_replace("/(\?.*)|(\_.*)|(\.php)/", "", basename (e_SELF));
|
||||
$logfile = e_PLUGIN."log/logs/logp_".date("z.Y", time()).".php";
|
||||
if(!is_readable($logfile))
|
||||
{
|
||||
if(ADMIN && !$pref['statCountAdmin'])
|
||||
{
|
||||
$text = COUNTER_L1;
|
||||
}
|
||||
$total = 1;
|
||||
$unique = 1;
|
||||
$siteTotal = 1;
|
||||
$siteUnique = 1;
|
||||
$totalever = 1;
|
||||
$uniqueever = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$text = "";
|
||||
require($logfile);
|
||||
if($sql -> db_Select("logstats", "*", "log_id='statTotal' OR log_id='statUnique' OR log_id='pageTotal'"))
|
||||
{
|
||||
while($row = $sql -> db_Fetch())
|
||||
{
|
||||
if($row['log_id'] == "statTotal")
|
||||
{
|
||||
$siteTotal += $row['log_data'];
|
||||
}
|
||||
else if($row['log_id'] == "statUnique")
|
||||
{
|
||||
$siteUnique += $row['log_data'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$dbPageInfo = unserialize($row['log_data']);
|
||||
$totalPageEver = ($dbPageInfo[$pageName]['ttlv'] ? $dbPageInfo[$pageName]['ttlv'] : 0);
|
||||
$uniquePageEver = ($dbPageInfo[$pageName]['unqv'] ? $dbPageInfo[$pageName]['unqv'] : 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
$total = ($pageInfo[$pageName]['ttl'] ? $pageInfo[$pageName]['ttl'] : 0);
|
||||
$unique = ($pageInfo[$pageName]['unq'] ? $pageInfo[$pageName]['unq'] : 0);
|
||||
$totalever = ($pageInfo[$pageName]['ttlv'] ? $pageInfo[$pageName]['ttlv'] : 0) + $totalPageEver + $total;
|
||||
$uniqueever = ($pageInfo[$pageName]['unqv'] ? $pageInfo[$pageName]['unqv'] : 0) + $uniquePageEver + $unique;
|
||||
}
|
||||
$text .= "<b>".COUNTER_L2."</b><br />".COUNTER_L3.": $total<br />".COUNTER_L5.": $unique<br /><br />
|
||||
<b>".COUNTER_L4."</b><br />".COUNTER_L3.": $totalever<br />".COUNTER_L5.": $uniqueever<br /><br />
|
||||
<b>".COUNTER_L6."</b><br />".COUNTER_L3.": $siteTotal<br />".COUNTER_L5.": $siteUnique";
|
||||
$ns->tablerender(COUNTER_L7, $text, 'counter');
|
||||
unset($dbPageInfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(ADMIN)
|
||||
{
|
||||
$text .= "<span class='smalltext'>".COUNTER_L8."</span>";
|
||||
$ns->tablerender(COUNTER_L7, $text, 'counter');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
@ -1,26 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/siteinfo_menu/languages/English.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-03-24 11:54:46 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
define("COMPLIANCE_L1", "W3C Compliance");
|
||||
define("SITEBUTTON_MENU_L1", "Link to us");
|
||||
define("POWEREDBY_L1", "Powered by");
|
||||
|
||||
define("COUNTER_L1", "Admin visits aren't being counted.");
|
||||
define("COUNTER_L2", "This page today ...");
|
||||
define("COUNTER_L3", "total");
|
||||
define("COUNTER_L4", "This page ever ...");
|
||||
define("COUNTER_L5", "unique");
|
||||
define("COUNTER_L6", "Site ...");
|
||||
define("COUNTER_L7", "Counter");
|
||||
define("COUNTER_L8", "Admin message: <b>Stat logging is disabled.</b><br />To activate, you need to install the Statistic Logging plugin from your <a href='".e_ADMIN."plugin.php'>plugin manager</a>, then activate it from the <a href='".e_PLUGIN."log/admin_config.php'>configuration screen</a>.");
|
||||
|
||||
?>
|
@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
//require_once(e_HANDLER.'news_class.php');
|
||||
|
||||
parse_str($parm, $parm);
|
||||
$nitem = e107::getObject('e_news_item');
|
||||
$nitem->load(1);
|
||||
|
||||
$template = '
|
||||
{NEWS_FIELD=title|format=html&arg=0,TITLE}<br />
|
||||
<em>{NEWS_FIELD=datestamp|format=date}</em><br /><br />
|
||||
{NEWS_FIELD=body|format=html_truncate&arg=100,...}
|
||||
';
|
||||
|
||||
//New way of parsing batches - pass object, all sc_* methods will be auto-registered
|
||||
$ret = e107::getParser()->parseTemplate($template, true, $nitem);
|
||||
e107::getRender()->tablerender('Latest News', $ret, 'latest_news');
|
||||
|
||||
|
||||
//print_a $nitem->getData();
|
||||
/*
|
||||
$ret .= '<br /><br />Render Tree<br />';
|
||||
$ntree = new e_news_tree();
|
||||
foreach ($ntree->load(1)->getTree() as $nitem)
|
||||
{
|
||||
$ret .= ' - '.$nitem->get('title').'<br/>';
|
||||
//print_a $nitem->getData();
|
||||
}
|
||||
*/
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| <EFBFBD>Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/siteinfo_menu/powered_by_menu.php,v $
|
||||
| $Revision: 1.1 $
|
||||
| $Date: 2007-03-23 22:42:40 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
$text = "
|
||||
<div style='text-align: center'>
|
||||
<div class='spacer'>
|
||||
<a href='http://e107.org' rel='external'><img src='".e_IMAGE_ABS."button.png' alt='e107' style='border: 0px; width: 88px; height: 31px' /></a>
|
||||
</div>
|
||||
<div class='spacer'>
|
||||
<a href='http://php.net' rel='external'><img src='".e_IMAGE_ABS."generic/php-small-trans-light.gif' alt='PHP' style='border: 0px; width: 88px; height: 31px' /></a>
|
||||
</div>
|
||||
<div class='spacer'>
|
||||
<a href='http://mysql.com' rel='external'><img src='".e_IMAGE_ABS."generic/poweredbymysql-88.png' alt='MySQL' style='border: 0px; width: 88px; height: 31px' /></a>
|
||||
</div>
|
||||
</div>";
|
||||
$ns -> tablerender(POWEREDBY_L1, $text, 'powered_by');
|
||||
?>
|
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/siteinfo_menu/sitebutton_menu.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2009-08-16 23:58:31 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
echo "parm=".$parm; //FIXME - just for testing only.
|
||||
$ns->tablerender(SITEBUTTON_MENU_L1, "<div style='text-align:center'>\n<a href='".SITEURL."'><img src='".(strstr(SITEBUTTON, "http:") ? SITEBUTTON : e_IMAGE_ABS.SITEBUTTON)."' alt='".SITEBUTTON_MENU_L1."' style='border: 0px; width: 88px; height: 31px' /></a>\n</div>", 'sitebutton');
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user