File cleanup.
@@ -15,118 +15,159 @@
|
||||
// Mods to show extended field categories
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
include_once(e_HANDLER.'shortcode_handler.php');
|
||||
$signup_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
|
||||
|
||||
/*
|
||||
SC_BEGIN SIGNUP_COPPA_FORM
|
||||
if (strpos(LAN_SIGNUP_77, "stage") !== FALSE)
|
||||
|
||||
class signup_shortcodes extends e_shortcode
|
||||
{
|
||||
|
||||
function sc_signup_coppa_form()
|
||||
{
|
||||
if (strpos(LAN_SIGNUP_77, "stage") !== FALSE)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
return "
|
||||
<form method='post' action='".e_SELF."?stage1' >\n
|
||||
<div><br />
|
||||
<input type='radio' name='coppa' value='0' checked='checked' /> ".LAN_NO."
|
||||
<input type='radio' name='coppa' value='1' /> ".LAN_YES."<br />
|
||||
<br />
|
||||
<input class='button' type='submit' name='newver' value=\"".LAN_CONTINUE."\" />
|
||||
</div></form>
|
||||
";
|
||||
}
|
||||
SC_END
|
||||
<form method='post' action='".e_SELF."?stage1' >\n
|
||||
<div><br />
|
||||
<input type='radio' name='coppa' value='0' checked='checked' /> ".LAN_NO."
|
||||
<input type='radio' name='coppa' value='1' /> ".LAN_YES."<br />
|
||||
<br />
|
||||
<input class='button' type='submit' name='newver' value=\"".LAN_CONTINUE."\" />
|
||||
</div></form>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
SC_BEGIN SIGNUP_FORM_OPEN
|
||||
global $rs;
|
||||
return $rs->form_open("post", e_SELF, "signupform");
|
||||
SC_END
|
||||
|
||||
SC_BEGIN SIGNUP_SIGNUP_TEXT
|
||||
global $pref, $tp, $SIGNUP_TEXT;
|
||||
function sc_signup_form_open()
|
||||
{
|
||||
global $rs;
|
||||
return $rs->form_open("post", e_SELF, "signupform");
|
||||
}
|
||||
|
||||
if($pref['signup_text'])
|
||||
{
|
||||
|
||||
function sc_signup_signup_text()
|
||||
{
|
||||
|
||||
global $pref, $tp, $SIGNUP_TEXT;
|
||||
|
||||
if($pref['signup_text'])
|
||||
{
|
||||
return $tp->toHTML($pref['signup_text'], TRUE, 'parse_sc,defs');
|
||||
}
|
||||
elseif($pref['user_reg_veri'])
|
||||
{
|
||||
}
|
||||
elseif($pref['user_reg_veri'])
|
||||
{
|
||||
return $SIGNUP_TEXT;
|
||||
}
|
||||
SC_END
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
SC_BEGIN SIGNUP_DISPLAYNAME
|
||||
global $pref, $rs;
|
||||
if (check_class($pref['displayname_class']))
|
||||
{
|
||||
function sc_signup_displayname()
|
||||
{
|
||||
global $pref, $rs;
|
||||
if (check_class($pref['displayname_class']))
|
||||
{
|
||||
$dis_name_len = varset($pref['displayname_maxlength'],15);
|
||||
return $rs->form_text('username', $dis_name_len+5, ($_POST['username'] ? $_POST['username'] : $username), $dis_name_len);
|
||||
}
|
||||
SC_END
|
||||
return $rs->form_text('username', 30, ($_POST['username'] ? $_POST['username'] : $username), $dis_name_len);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SC_BEGIN SIGNUP_LOGINNAME
|
||||
global $rs, $pref;
|
||||
if (varsettrue($pref['predefinedLoginName']))
|
||||
{
|
||||
function sc_signup_loginname()
|
||||
{
|
||||
global $rs, $pref;
|
||||
if (varsettrue($pref['predefinedLoginName']))
|
||||
{
|
||||
return LAN_SIGNUP_67;
|
||||
}
|
||||
$log_name_length = varset($pref['loginname_maxlength'],30);
|
||||
return $rs->form_text("loginname", $log_name_length+5, ($_POST['loginname'] ? $_POST['loginname'] : $loginname), $log_name_length);
|
||||
SC_END
|
||||
}
|
||||
if ($pref['signup_option_loginname'])
|
||||
{
|
||||
$log_name_length = varset($pref['loginname_maxlength'],30);
|
||||
return $rs->form_text("loginname", 30, ($_POST['loginname'] ? $_POST['loginname'] : $loginname), $log_name_length);
|
||||
}
|
||||
}
|
||||
|
||||
SC_BEGIN SIGNUP_REALNAME
|
||||
global $rs, $pref;
|
||||
if ($pref['signup_option_realname'])
|
||||
{
|
||||
|
||||
function sc_signup_realname()
|
||||
{
|
||||
global $rs, $pref;
|
||||
if ($pref['signup_option_realname'])
|
||||
{
|
||||
return $rs->form_text("realname", 30, ($_POST['realname'] ? $_POST['realname'] : $realname), 100);
|
||||
}
|
||||
SC_END
|
||||
}
|
||||
}
|
||||
|
||||
SC_BEGIN SIGNUP_PASSWORD1
|
||||
global $rs;
|
||||
return $rs->form_password("password1", 30, $password1, 20);
|
||||
SC_END
|
||||
|
||||
SC_BEGIN SIGNUP_PASSWORD2
|
||||
global $rs;
|
||||
return $rs->form_password("password2", 30, $password2, 20);
|
||||
SC_END
|
||||
function sc_signup_password1()
|
||||
{
|
||||
$options = array('size'=>30,'class'=>'e-password tbox','required'=>1);
|
||||
$len = vartrue(e107::getPref('signup_pass_len'),6);
|
||||
// $options['pattern'] = '(?=.*\d)(?=.*[a-z])(?=.*[A-Z])\w{'.$len.',}'; // at least one number, one lowercase and uppercase.
|
||||
$options['pattern'] = '\w{'.$len.',}'; // word of minimum length
|
||||
|
||||
SC_BEGIN SIGNUP_PASSWORD_LEN
|
||||
global $pref, $SIGNUP_PASSWORD_LEN;
|
||||
if($pref['signup_pass_len'])
|
||||
{
|
||||
return e107::getForm()->password('password1', '', 20, $options);
|
||||
}
|
||||
|
||||
|
||||
function sc_signup_password2()
|
||||
{
|
||||
return e107::getForm()->password('password2', '', 20, array('size'=>30,'class'=>'tbox','required'=>1));
|
||||
}
|
||||
|
||||
|
||||
function sc_signup_password_len()
|
||||
{
|
||||
global $pref, $SIGNUP_PASSWORD_LEN;
|
||||
if($pref['signup_pass_len'])
|
||||
{
|
||||
return $SIGNUP_PASSWORD_LEN;
|
||||
}
|
||||
SC_END
|
||||
|
||||
SC_BEGIN SIGNUP_EMAIL
|
||||
global $rs;
|
||||
return $rs->form_text("email", 30, ($_POST['email'] ? $_POST['email'] : $email), 100);
|
||||
SC_END
|
||||
|
||||
SC_BEGIN SIGNUP_EMAIL_CONFIRM
|
||||
global $rs;
|
||||
return $rs->form_text("email_confirm", 30, ($_POST['email_confirm'] ? $_POST['email_confirm'] : $email_confirm), 100);
|
||||
SC_END
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SC_BEGIN SIGNUP_HIDE_EMAIL
|
||||
global $rs;
|
||||
$default_email_setting = 1; // Gives option of turning into a pref later if wanted
|
||||
return $rs->form_radio("hideemail", 1, $default_email_setting==1)." ".LAN_YES." ".$rs->form_radio("hideemail", 0,$default_email_setting==0)." ".LAN_NO;
|
||||
SC_END
|
||||
function sc_signup_email()
|
||||
{
|
||||
$options = array('size'=>30,'required'=>1,'class'=>'tbox input-text e-email');
|
||||
$text = e107::getForm()->email('email',($_POST['email'] ? $_POST['email'] : $email),100,$options);
|
||||
$text .= "<div class='e-email-hint' style='display:none' data-hint='Did you mean <b>[x]</b>?'><!-- --></div>";
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
||||
SC_BEGIN SIGNUP_USERCLASS_SUBSCRIBE
|
||||
global $pref, $e_userclass, $USERCLASS_SUBSCRIBE_START, $USERCLASS_SUBSCRIBE_END, $signupData;
|
||||
$ret = "";
|
||||
if($pref['signup_option_class'])
|
||||
{
|
||||
function sc_signup_email_confirm()
|
||||
{
|
||||
$pref = e107::getPref('signup_option_email_confirm');
|
||||
if($pref < 1){ return; }
|
||||
|
||||
$options = array('size'=>30);
|
||||
$options['required'] = ($pref==2) ? 1 : 0;
|
||||
$options['class'] = 'tbox input-text e-email';
|
||||
|
||||
return e107::getForm()->email('email_confirm',($_POST['email_confirm'] ? $_POST['email_confirm'] : $email_confirm),100,$options);
|
||||
|
||||
}
|
||||
|
||||
|
||||
function sc_signup_hide_email()
|
||||
{
|
||||
global $rs,$pref;
|
||||
$default_email_setting = 1; // Gives option of turning into a pref later if wanted
|
||||
if ($pref['signup_option_realname'])
|
||||
{
|
||||
return $rs->form_radio("hideemail", 1, $default_email_setting==1)." ".LAN_YES." ".$rs->form_radio("hideemail", 0,$default_email_setting==0)." ".LAN_NO;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function sc_signup_userclass_subscribe()
|
||||
{
|
||||
global $pref, $e_userclass, $USERCLASS_SUBSCRIBE_START, $USERCLASS_SUBSCRIBE_END, $signupData;
|
||||
$ret = "";
|
||||
if($pref['signup_option_class'])
|
||||
{
|
||||
if (!is_object($e_userclass))
|
||||
{
|
||||
require_once(e_HANDLER.'userclass_class.php');
|
||||
@@ -136,6 +177,25 @@ if($pref['signup_option_class'])
|
||||
$ret = '';
|
||||
if(!$ucList) return;
|
||||
|
||||
/*
|
||||
function show_signup_class($treename, $classnum, $current_value, $nest_level)
|
||||
{
|
||||
global $USERCLASS_SUBSCRIBE_ROW, $e_userclass, $tp;
|
||||
$tmp = explode(',',$current_value);
|
||||
$search = array('{USERCLASS_ID}', '{USERCLASS_NAME}', '{USERCLASS_DESCRIPTION}', '{USERCLASS_INDENT}', '{USERCLASS_CHECKED}');
|
||||
$replace = array($classnum, $tp->toHTML($e_userclass->uc_get_classname($classnum), FALSE, 'defs'),
|
||||
$tp->toHTML($e_userclass->uc_get_classdescription($classnum), FALSE, 'defs'), " style='text-indent:".(1.2*$nest_level)."em'",
|
||||
( in_array($classnum, $tmp) ? " checked='checked'" : ''));
|
||||
return str_replace($search, $replace, $USERCLASS_SUBSCRIBE_ROW);
|
||||
}*/
|
||||
|
||||
$ret = $USERCLASS_SUBSCRIBE_START;
|
||||
$ret .= $e_userclass->vetted_tree('class',array($this,show_signup_class),varset($signupData['user_class'],''),'editable');
|
||||
$ret .= $USERCLASS_SUBSCRIBE_END;
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
function show_signup_class($treename, $classnum, $current_value, $nest_level)
|
||||
{
|
||||
global $USERCLASS_SUBSCRIBE_ROW, $e_userclass, $tp;
|
||||
@@ -146,38 +206,34 @@ if($pref['signup_option_class'])
|
||||
( in_array($classnum, $tmp) ? " checked='checked'" : ''));
|
||||
return str_replace($search, $replace, $USERCLASS_SUBSCRIBE_ROW);
|
||||
}
|
||||
$ret = $USERCLASS_SUBSCRIBE_START;
|
||||
$ret .= $e_userclass->vetted_tree('class',show_signup_class,varset($signupData['user_class'],''),'editable');
|
||||
$ret .= $USERCLASS_SUBSCRIBE_END;
|
||||
return $ret;
|
||||
}
|
||||
SC_END
|
||||
|
||||
|
||||
SC_BEGIN SIGNUP_EXTENDED_USER_FIELDS
|
||||
global $usere, $tp, $SIGNUP_EXTENDED_USER_FIELDS, $EXTENDED_USER_FIELD_REQUIRED, $SIGNUP_EXTENDED_CAT;
|
||||
$text = "";
|
||||
|
||||
$search = array(
|
||||
'{EXTENDED_USER_FIELD_TEXT}',
|
||||
'{EXTENDED_USER_FIELD_REQUIRED}',
|
||||
'{EXTENDED_USER_FIELD_EDIT}'
|
||||
);
|
||||
|
||||
|
||||
// What we need is a list of fields, ordered first by parent, and then by display order?
|
||||
// category entries are `user_extended_struct_type` = 0
|
||||
// 'unallocated' entries are `user_extended_struct_parent` = 0
|
||||
|
||||
// Get a list of defined categories
|
||||
$catList = $usere->user_extended_get_categories(FALSE);
|
||||
// Add in category zero - the 'no category' category
|
||||
array_unshift($catList,array('user_extended_struct_parent' => 0, 'user_extended_struct_id' => '0'));
|
||||
|
||||
|
||||
|
||||
foreach($catList as $cat)
|
||||
{
|
||||
function sc_signup_extended_user_fields()
|
||||
{
|
||||
global $usere, $tp, $SIGNUP_EXTENDED_USER_FIELDS, $EXTENDED_USER_FIELD_REQUIRED, $SIGNUP_EXTENDED_CAT;
|
||||
$text = "";
|
||||
|
||||
$search = array(
|
||||
'{EXTENDED_USER_FIELD_TEXT}',
|
||||
'{EXTENDED_USER_FIELD_REQUIRED}',
|
||||
'{EXTENDED_USER_FIELD_EDIT}'
|
||||
);
|
||||
|
||||
|
||||
// What we need is a list of fields, ordered first by parent, and then by display order?
|
||||
// category entries are `user_extended_struct_type` = 0
|
||||
// 'unallocated' entries are `user_extended_struct_parent` = 0
|
||||
|
||||
// Get a list of defined categories
|
||||
$catList = $usere->user_extended_get_categories(FALSE);
|
||||
// Add in category zero - the 'no category' category
|
||||
array_unshift($catList,array('user_extended_struct_parent' => 0, 'user_extended_struct_id' => '0'));
|
||||
|
||||
|
||||
|
||||
foreach($catList as $cat)
|
||||
{
|
||||
$extList = $usere->user_extended_get_fieldList($cat['user_extended_struct_id']);
|
||||
|
||||
$done_heading = FALSE;
|
||||
@@ -201,26 +257,30 @@ foreach($catList as $cat)
|
||||
$text .= str_replace($search, $replace, $SIGNUP_EXTENDED_USER_FIELDS);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $text;
|
||||
SC_END
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
||||
SC_BEGIN SIGNUP_SIGNATURE
|
||||
global $pref, $SIGNUP_SIGNATURE_START, $SIGNUP_SIGNATURE_END;
|
||||
if($pref['signup_option_signature'])
|
||||
{
|
||||
|
||||
function sc_signup_signature()
|
||||
{
|
||||
global $pref, $SIGNUP_SIGNATURE_START, $SIGNUP_SIGNATURE_END;
|
||||
if($pref['signup_option_signature'])
|
||||
{
|
||||
require_once(e_HANDLER."ren_help.php");
|
||||
$SIGNUP_SIGNATURE_START = str_replace("{REN_HELP}", display_help('helpb', 2), $SIGNUP_SIGNATURE_START);
|
||||
$SIGNUP_SIGNATURE_END = str_replace("{REN_HELP}", display_help('helpb', 2), $SIGNUP_SIGNATURE_END);
|
||||
$sig = ($_POST['signature'] ? $_POST['signature'] : $signature);
|
||||
return $SIGNUP_SIGNATURE_START.$sig.$SIGNUP_SIGNATURE_END;
|
||||
}
|
||||
SC_END
|
||||
}
|
||||
}
|
||||
|
||||
SC_BEGIN SIGNUP_IMAGES
|
||||
global $pref;
|
||||
if($pref['signup_option_image'])
|
||||
{
|
||||
|
||||
function sc_signup_images()
|
||||
{
|
||||
global $pref;
|
||||
if($pref['signup_option_image'])
|
||||
{
|
||||
|
||||
$text = "
|
||||
<input class='tbox' style='width:80%' id='avatar' type='text' name='image' size='40' value='$image' maxlength='100' />
|
||||
@@ -259,35 +319,39 @@ if($pref['signup_option_image'])
|
||||
<br /><div class='smalltext'>".LAN_SIGNUP_34."</div>";
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
SC_END
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SC_BEGIN SIGNUP_IMAGECODE
|
||||
global $signup_imagecode, $rs, $sec_img;
|
||||
if($signup_imagecode)
|
||||
{
|
||||
function sc_signup_imagecode()
|
||||
{
|
||||
global $signup_imagecode, $rs, $sec_img;
|
||||
if($signup_imagecode)
|
||||
{
|
||||
return $rs->form_hidden("rand_num", $sec_img->random_number). $sec_img->r_image()."<br />".$rs->form_text("code_verify", 20, "", 20);
|
||||
}
|
||||
SC_END
|
||||
|
||||
SC_BEGIN SIGNUP_FORM_CLOSE
|
||||
return "</form>";
|
||||
SC_END
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SC_BEGIN SIGNUP_IS_MANDATORY
|
||||
global $pref;
|
||||
if (isset($parm))
|
||||
{
|
||||
function sc_signup_form_close()
|
||||
{
|
||||
return "</form>";
|
||||
}
|
||||
|
||||
|
||||
function sc_signup_is_mandatory($parm='')
|
||||
{
|
||||
global $pref;
|
||||
if (isset($parm))
|
||||
{
|
||||
switch ($parm)
|
||||
{
|
||||
case 'email' : if (varset($pref['disable_emailcheck'],FALSE)) return '';
|
||||
}
|
||||
}
|
||||
return " *";
|
||||
SC_END
|
||||
}
|
||||
return " *";
|
||||
}
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
?>
|
@@ -1,19 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
* $Id$
|
||||
*
|
||||
* eURL configuration script
|
||||
*/
|
||||
|
||||
function url_core_main($parms)
|
||||
{
|
||||
switch ($parms['action'])
|
||||
{
|
||||
case 'index':
|
||||
return e_HTTP.'index.php';
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
@@ -1,135 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
* $Id$
|
||||
*
|
||||
* eURL configuration script
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
require_once(e_HANDLER.'news_class.php');
|
||||
define('NEWS_REWRITE', true);
|
||||
|
||||
function url_news_main($parms = array())
|
||||
{
|
||||
//$base = e_HTTP.$sefbase.$parms['action'];
|
||||
$base = e_HTTP.(e107::getPref('news_sefbase') ? e107::getPref('news_sefbase').'/' : '');
|
||||
|
||||
if(isset($parms['sef']))
|
||||
{
|
||||
$parms['sef'] = urlencode($parms['sef']);
|
||||
}
|
||||
elseif(vartrue($parms['id']))
|
||||
{
|
||||
//'sef' is not set, which means we don't know it!
|
||||
$parms['sef'] = urlencode(news::retrieveRewriteString($parms['id'], $parms['action']));
|
||||
}
|
||||
switch ($parms['action'])
|
||||
{
|
||||
//Main news page
|
||||
case 'all':
|
||||
return $base;
|
||||
break;
|
||||
|
||||
//Category List
|
||||
case 'cat':
|
||||
case 'list'://TODO - find out what are list params
|
||||
return $base.varsettrue($parms['sef'], $parms['action'].'/'.$parms['id']).(varsettrue($parms['page']) ? '/'.$parms['page'] : '');
|
||||
break;
|
||||
|
||||
//Item page
|
||||
case 'item':
|
||||
case 'extend':
|
||||
return $base.varsettrue($parms['sef'], $parms['action'].'/'.$parms['id']);
|
||||
break;
|
||||
|
||||
//Category List default (no category ID)
|
||||
case 'default':
|
||||
return $base."default/{$parms['value1']}-".varset($parms['value2'], '0');
|
||||
break;
|
||||
|
||||
//Category List by date/month
|
||||
case 'month':
|
||||
case 'day':
|
||||
return $base.$parms['action'].'/'.varsettrue($parms['value'],'0');
|
||||
break;
|
||||
|
||||
case 'nextprev':
|
||||
return e_HTTP."news/{$parms['to_action']}/{$parms['subaction']}/[FROM].html";
|
||||
|
||||
default:
|
||||
return $base;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function parse_url_news_main($request)
|
||||
{
|
||||
static $_parsed_request = array();
|
||||
$known_actions = array('cat', 'list', 'item', 'extend', 'default', 'month', 'day');
|
||||
|
||||
//runtime cache
|
||||
if(isset($_parsed_request[$request]))
|
||||
{
|
||||
return $_parsed_request[$request];
|
||||
}
|
||||
|
||||
$request_str = $request;
|
||||
parse_str($request, $request);
|
||||
if(!isset($request['rewrite']))
|
||||
{
|
||||
$_parsed_request[''] = array();
|
||||
return array();
|
||||
}
|
||||
|
||||
$chunks = explode('/', $request['rewrite']);
|
||||
|
||||
//action found in the request
|
||||
if(in_array($chunks[0], $known_actions))
|
||||
{
|
||||
$_parsed_request[$request_str] = $chunks;
|
||||
return $_parsed_request[$request_str];
|
||||
}
|
||||
|
||||
//sef string
|
||||
if(!($sefdata = news::getRewriteCache($chunks[0])))
|
||||
{
|
||||
$sefdata = news::retrieveRewriteData($chunks[0], true);
|
||||
}
|
||||
|
||||
//not found - redirect
|
||||
if(empty($sefdata))
|
||||
{
|
||||
if(!session_id()) session_start();
|
||||
$_SESSION['e107_http_referer'] = ltrim(SITEURL, '/').url_news_main().$request['rewrite'];
|
||||
$_SESSION['e107_error_return'] = array(url_news_main() => 'Go to News front page'); //TODO - LANs
|
||||
session_write_close();
|
||||
header('HTTP/1.1 404 Not Found', true);
|
||||
header('Location: '.SITEURL.'error.php?404');
|
||||
exit;
|
||||
}
|
||||
|
||||
$parsed = array();
|
||||
switch($sefdata['news_rewrite_type'])
|
||||
{
|
||||
case '2': //Category list
|
||||
$parsed = array('list', $sefdata['news_rewrite_source']);
|
||||
break;
|
||||
|
||||
case '1': //Item view
|
||||
$parsed = array('extend', $sefdata['news_rewrite_source']);
|
||||
break;
|
||||
}
|
||||
|
||||
if(count($chinks) > 1)
|
||||
{
|
||||
|
||||
$parsed = array_merge($parsed, array_slice($chunks, 1));
|
||||
}
|
||||
|
||||
$_parsed_request[$request_str] = $parsed;
|
||||
return $_parsed_request[$request_str];
|
||||
}
|
||||
|
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<urlprofile>
|
||||
<title>{LAN_EURL_MODREWR_TITLE}</title>
|
||||
<description>{LAN_EURL_MODREWR_DESCR}</description>
|
||||
<!-- <adminLan>{e_LANGUAGEDIR}{e_LANGUAGE}/admin/lan_newspost.php</adminLan> -->
|
||||
</urlprofile>
|
@@ -1,59 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
* $Id$
|
||||
*
|
||||
* eURL configuration script
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
define('NEWS_REWRITE', false);
|
||||
|
||||
function url_news_main($parms)
|
||||
{
|
||||
$base = e_HTTP.'news.php?'.$parms['action'];
|
||||
switch ($parms['action'])
|
||||
{
|
||||
//Main news page
|
||||
case 'all':
|
||||
return $base;
|
||||
break;
|
||||
|
||||
//Category List
|
||||
case 'cat':
|
||||
case 'list'://TODO - find out what are list params
|
||||
return $base.'.'.varsettrue($parms['id'],'0').(varsettrue($parms['page']) ? '.'.$parms['page'] : '');
|
||||
break;
|
||||
|
||||
//Item page
|
||||
case 'item':
|
||||
case 'extend':
|
||||
return $base.'.'.varsettrue($parms['id'],'0');
|
||||
break;
|
||||
|
||||
//Category List default (no category ID)
|
||||
case 'default':
|
||||
return $base.".{$parms['value1']}.".varset($parms['value2'], '0');
|
||||
break;
|
||||
|
||||
//Category List by date/month
|
||||
case 'month': //TODO - find out what are month params
|
||||
case 'day': //TODO - find out what are day params
|
||||
return $base.'-'.varsettrue($parms['id'],'0');
|
||||
break;
|
||||
|
||||
case 'nextprev':
|
||||
return e_HTTP."news.php?{$parms['to_action']}.{$parms['subaction']}.[FROM]";
|
||||
|
||||
default:
|
||||
return e_HTTP.'news.php';
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function parse_url_news_main($request)
|
||||
{
|
||||
return explode('.', $request);
|
||||
}
|
@@ -1,24 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
* $Id$
|
||||
*
|
||||
* eURL configuration script
|
||||
*/
|
||||
|
||||
function url_user_main($parms)
|
||||
{
|
||||
switch(varsettrue($parms['func'], 'profile'))
|
||||
{
|
||||
case 'profile':
|
||||
return e_HTTP.'user.php?id.'.$parms['id'];
|
||||
break;
|
||||
|
||||
case 'settings':
|
||||
return e_HTTP.'usersettings.php?'.$parms['id'];
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@@ -488,7 +488,12 @@ class e107_db_debug {
|
||||
$text .= "\$_SERVER['DOCUMENT_ROOT']: '".$_SERVER['DOCUMENT_ROOT']."'<br />";
|
||||
$text .= "\$_SERVER['HTTP_HOST']: '".$_SERVER['HTTP_HOST']."'<br />";
|
||||
$text .= "Active Theme Layout: '".THEME_LAYOUT."'<br />";
|
||||
|
||||
$text .= "<br />";
|
||||
$text .= "e_LANGUAGE: '".e_LANGUAGE."'<br />";
|
||||
$text .= "e_LAN: '".e_LAN."'<br />";
|
||||
$text .= "e_LOCALE: '".e_LOCALE."'<br />";
|
||||
$text .= "SQL Language: '".$sql->mySQLlanguage."'<br />";
|
||||
$text .= "<br />";
|
||||
|
||||
$text .= "<pre>";
|
||||
$text .= htmlspecialchars(print_r($e107,TRUE));
|
||||
|
@@ -689,7 +689,7 @@ class themeHandler
|
||||
|
||||
//FIXME e-hideme doesn't work when JS is turned off.
|
||||
// This popup information should be loaded with ajax.
|
||||
// $text .= "<div id='themeInfo_".$theme['id']."' class='e-hideme col-selection' style='position:relative;top:30px;width:480px'>\n".$this->renderThemeInfo($theme)."</div>\n";
|
||||
$text .= "<div id='themeInfo_".$theme['id']."' class='e-hideme col-selection' style='position:relative;top:30px;width:480px'>\n".$this->renderThemeInfo($theme)."</div>\n";
|
||||
|
||||
$text .= "</div>";
|
||||
return $text;
|
||||
|
@@ -1,565 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/admin_content_config.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
require_once("../../class2.php");
|
||||
|
||||
if(!getperms("P"))
|
||||
{
|
||||
header("location:".e_BASE."index.php");
|
||||
exit();
|
||||
}
|
||||
$e_sub_cat = 'content';
|
||||
|
||||
$plugindir = e_PLUGIN."content/";
|
||||
require_once($plugindir."content_shortcodes.php");
|
||||
|
||||
include_lan($plugindir.'languages/'.e_LANGUAGE.'/lan_content_admin.php');
|
||||
include_lan($plugindir.'languages/'.e_LANGUAGE.'/lan_content.php');
|
||||
|
||||
require_once(e_HANDLER."calendar/calendar_class.php");
|
||||
$cal = new DHTML_Calendar(true);
|
||||
|
||||
require_once(e_ADMIN."auth.php");
|
||||
require_once(e_HANDLER."form_handler.php");
|
||||
$rs = new form;
|
||||
require_once(e_HANDLER."userclass_class.php");
|
||||
require_once($plugindir."handlers/content_class.php");
|
||||
$aa = new content;
|
||||
require_once($plugindir."handlers/content_db_class.php");
|
||||
$adb = new contentdb;
|
||||
require_once($plugindir."handlers/content_form_class.php");
|
||||
$aform = new contentform;
|
||||
require_once(e_HANDLER."file_class.php");
|
||||
$fl = new e_file;
|
||||
e107_require_once(e_HANDLER.'arraystorage_class.php');
|
||||
$eArrayStorage = new ArrayData();
|
||||
|
||||
if(is_readable(e_THEME.$pref['sitetheme']."/content/content_admin_template.php")){
|
||||
require_once(e_THEME.$pref['sitetheme']."/content/content_admin_template.php");
|
||||
}else{
|
||||
require_once(e_PLUGIN."content/templates/content_admin_template.php");
|
||||
}
|
||||
|
||||
global $tp;
|
||||
$deltest = array_flip($_POST);
|
||||
|
||||
// check query
|
||||
if(e_QUERY){
|
||||
$qs = explode(".", e_QUERY);
|
||||
}
|
||||
|
||||
if(isset($_POST['delete'])){
|
||||
$tmp = array_pop(array_flip($_POST['delete']));
|
||||
list($delete, $del_id) = explode("_", $tmp);
|
||||
}
|
||||
|
||||
// ##### DB ---------------------------------------------------------------------------------------
|
||||
|
||||
if(isset($delete) && $delete == 'cat'){
|
||||
|
||||
$sql -> db_Select($plugintable, "content_id,content_heading,content_parent", "content_id = '$del_id' ");
|
||||
list($content_id, $content_heading, $content_parent) = $sql -> db_Fetch();
|
||||
|
||||
$checkarray = $aa -> getCategoryTree("", $content_id, TRUE);
|
||||
unset($agc); //unset the globalised getCategoryTree array
|
||||
$checkvalidparent = implode(",", array_keys($checkarray));
|
||||
$checkqry = " content_parent REGEXP '".$aa -> CONTENTREGEXP($checkvalidparent)."' ";
|
||||
|
||||
//check if subcats present
|
||||
if(count($array) > 1){
|
||||
//subcategories found don't delete
|
||||
$checkermsg .= CONTENT_ADMIN_CAT_LAN_36."<br />";
|
||||
$checksubcat = TRUE;
|
||||
}else{
|
||||
$checkermsg .= CONTENT_ADMIN_CAT_LAN_39."<br />";
|
||||
$checksubcat = FALSE;
|
||||
}
|
||||
|
||||
//check if items present
|
||||
if($sql -> db_Count($plugintable, "(*)", "WHERE ".$checkqry." ")){
|
||||
//items found, don't delete
|
||||
$checkermsg .= CONTENT_ADMIN_CAT_LAN_37."<br />";
|
||||
$checkitems = TRUE;
|
||||
}else{
|
||||
$checkermsg .= CONTENT_ADMIN_CAT_LAN_38."<br />";
|
||||
$checkitems = FALSE;
|
||||
}
|
||||
|
||||
if($checksubcat == FALSE && $checkitems == FALSE){
|
||||
if($sql -> db_Delete($plugintable, "content_id='$del_id' ")){
|
||||
@unlink(e_PLUGIN."content/menus/content_".$content_heading."_menu.php");
|
||||
$message = CONTENT_ADMIN_CAT_LAN_23."<br />";
|
||||
}
|
||||
}else{
|
||||
$message = $checkermsg;
|
||||
}
|
||||
}
|
||||
|
||||
//delete content item
|
||||
if(isset($delete) && $delete == 'content'){
|
||||
if($sql -> db_Delete($plugintable, "content_id='$del_id' ")){
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_3;
|
||||
global $e_event;
|
||||
$data = array('method'=>'delete', 'table'=>$plugintable, 'id'=>$del_id, 'plugin'=>'content', 'function'=>'delete_content');
|
||||
$message .= $e_event->triggerHook($data);
|
||||
$e107cache->clear($plugintable);
|
||||
}
|
||||
}
|
||||
|
||||
//delete submitted item
|
||||
if(isset($delete) && $delete == 'submitted'){
|
||||
if($sql -> db_Delete($plugintable, "content_id='$del_id' ")){
|
||||
$e107cache->clear($plugintable);
|
||||
$message = CONTENT_ADMIN_SUBMIT_LAN_8;
|
||||
}
|
||||
}
|
||||
|
||||
//update options
|
||||
if(isset($_POST['updateoptions'])){
|
||||
$content_pref = $aa -> UpdateContentPref($_POST['options_type']);
|
||||
$message = CONTENT_ADMIN_CAT_LAN_22."<br /><br />";
|
||||
if($_POST['options_type'] != "0"){
|
||||
$message .= $aa -> CreateParentMenu($_POST['options_type']);
|
||||
}
|
||||
$e107cache->clear($plugintable);
|
||||
}
|
||||
|
||||
//update the inheritance of options
|
||||
if(isset($_POST['updateinherit'])){
|
||||
foreach($_POST['id'] as $k=>$v){
|
||||
//get current
|
||||
$sql -> db_Select($plugintable, "content_pref", "content_id='".intval($k)."' ");
|
||||
$row = $sql -> db_Fetch();
|
||||
$content_pref = $eArrayStorage->ReadArray($row['content_pref']);
|
||||
//assign or remove inherit option
|
||||
if(isset($_POST['content_inherit']) && isset($_POST['content_inherit'][$k]) ){
|
||||
$content_pref['content_inherit'] = "1";
|
||||
}else{
|
||||
unset($content_pref['content_inherit']);
|
||||
}
|
||||
//update
|
||||
$tmp = $eArrayStorage->WriteArray($content_pref);
|
||||
$sql2 -> db_Update($plugintable, "content_pref='{$tmp}' WHERE content_id='".intval($k)."' ");
|
||||
}
|
||||
$message = CONTENT_ADMIN_CAT_LAN_22."<br /><br />";
|
||||
$e107cache->clear($plugintable);
|
||||
}
|
||||
|
||||
//update the inheritance of options
|
||||
if(isset($_POST['updatemanagerinherit'])){
|
||||
foreach($_POST['id'] as $k=>$v){
|
||||
//get current
|
||||
$sql -> db_Select($plugintable, "content_pref", "content_id='".intval($k)."' ");
|
||||
$row = $sql -> db_Fetch();
|
||||
$content_pref = $eArrayStorage->ReadArray($row['content_pref']);
|
||||
//assign or remove inherit option
|
||||
if(isset($_POST['content_manager_inherit']) && isset($_POST['content_manager_inherit'][$k]) ){
|
||||
$content_pref['content_manager_inherit'] = "1";
|
||||
}else{
|
||||
unset($content_pref['content_manager_inherit']);
|
||||
}
|
||||
//update
|
||||
$tmp = $eArrayStorage->WriteArray($content_pref);
|
||||
$sql2 -> db_Update($plugintable, "content_pref='{$tmp}' WHERE content_id='".intval($k)."' ");
|
||||
}
|
||||
$message = CONTENT_ADMIN_MANAGER_LAN_8."<br /><br />";
|
||||
$e107cache->clear($plugintable);
|
||||
}
|
||||
|
||||
//update manager classes into preferences
|
||||
if(isset($_POST['update_manager'])){
|
||||
$content_pref = $aa -> UpdateContentPref($_POST['options_type']);
|
||||
$message = CONTENT_ADMIN_CAT_LAN_22."<br /><br />";
|
||||
$e107cache->clear($plugintable);
|
||||
}
|
||||
|
||||
//pre-upload a new category icon in the create/edit category form
|
||||
if(isset($_POST['uploadcaticon'])){
|
||||
|
||||
$pref['upload_storagetype'] = "1";
|
||||
require_once(e_HANDLER."upload_handler.php");
|
||||
$pathiconlarge = $_POST['iconpathlarge'];
|
||||
$pathiconsmall = $_POST['iconpathsmall'];
|
||||
$uploaded = file_upload($pathiconlarge);
|
||||
|
||||
$icon = "";
|
||||
if($uploaded) {
|
||||
$icon = $uploaded[0]['name'];
|
||||
require_once(e_HANDLER."resize_handler.php");
|
||||
resize_image($pathiconlarge.$icon, $pathiconlarge.$icon, '48', "nocopy");
|
||||
resize_image($pathiconlarge.$icon, $pathiconsmall.$icon, '16', "copy");
|
||||
rename($pathiconsmall."thumb_".$icon , $pathiconsmall.$icon);
|
||||
}
|
||||
$message = ($icon ? CONTENT_ADMIN_CAT_LAN_58 : CONTENT_ADMIN_CAT_LAN_59);
|
||||
}
|
||||
|
||||
if(isset($_POST['create_category'])){
|
||||
if($_POST['cat_heading'] && $_POST['parent1'] != "none"){
|
||||
$adb -> dbCategory("create");
|
||||
}else{
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_0;
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_POST['update_category'])){
|
||||
if($_POST['cat_heading'] && $_POST['parent1'] != "none"){
|
||||
$adb -> dbCategory("update");
|
||||
}else{
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_0;
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_POST['create_content'])){
|
||||
if($_POST['content_text'] && $_POST['content_heading'] && $_POST['content_author_name'] && $_POST['parent1'] != "none"){
|
||||
$adb -> dbContent("create", "");
|
||||
}else{
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_0;
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_POST['update_content'])){
|
||||
if($_POST['content_text'] && $_POST['content_heading'] && $_POST['content_author_name'] && $_POST['content_heading'] && $_POST['parent1'] != "none"){
|
||||
$adb -> dbContent("update", "");
|
||||
}else{
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_0;
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_POST['update_order'])){
|
||||
if(isset($qs[1])){
|
||||
if(isset($qs[2])){
|
||||
$message = $adb -> dbSetOrder("all", "ci", $_POST['order']);
|
||||
}else{
|
||||
$message = $adb -> dbSetOrder("all", "ai", $_POST['order']);
|
||||
}
|
||||
}else{
|
||||
$message = $adb -> dbSetOrder("all", "cc", $_POST['order']);
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($message)){
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
}
|
||||
|
||||
// ##### End --------------------------------------------------------------------------------------
|
||||
|
||||
if(!e_QUERY){
|
||||
//show main categories
|
||||
$aform -> show_manage_content("", "", "");
|
||||
require_once(e_ADMIN."footer.php");
|
||||
exit;
|
||||
}else{
|
||||
$qs = explode(".", e_QUERY);
|
||||
|
||||
//manage content items
|
||||
if($qs[0] == "content" && is_numeric($qs[1]) ){
|
||||
$aform -> show_manage_content("", "", "");
|
||||
|
||||
//edit content item
|
||||
}elseif($qs[0] == "content" && $qs[1] == "edit" && is_numeric($qs[2]) ){
|
||||
$newqs = array_reverse($qs);
|
||||
//item; update redirect
|
||||
if($newqs[0] == "cu"){
|
||||
$mainparent = $aa -> getMainParent($qs[2]);
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_2."<br /><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_88." <a href='".e_SELF."?content.create.".$mainparent."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_89." <a href='".e_SELF."?content.".$mainparent."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_91." <a href='".e_SELF."?content.edit.".$qs[2]."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_124." <a href='".e_PLUGIN."content/content.php?content.".$qs[2]."'>".CONTENT_ADMIN_ITEM_LAN_90."</a>";
|
||||
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
require_once(e_ADMIN."footer.php");
|
||||
exit;
|
||||
}
|
||||
$aform -> show_create_content("admin", $userid="", $username="");
|
||||
|
||||
//post submitted content item
|
||||
}elseif($qs[0] == "content" && $qs[1] == "sa" && is_numeric($qs[2]) ){
|
||||
$newqs = array_reverse($qs);
|
||||
//item; submit post / update redirect
|
||||
if($newqs[0] == "cu"){
|
||||
$mainparent = $aa -> getMainParent($qs[2]);
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_117."<br /><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_88." <a href='".e_SELF."?content.create.".$mainparent."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_89." <a href='".e_SELF."?content.".$mainparent."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_91." <a href='".e_SELF."?content.edit.".$qs[2]."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_124." <a href='".e_PLUGIN."content/content.php?content.".$qs[2]."'>".CONTENT_ADMIN_ITEM_LAN_90."</a>";
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
require_once(e_ADMIN."footer.php");
|
||||
exit;
|
||||
}
|
||||
$aform -> show_create_content("sa", $userid="", $username="");
|
||||
|
||||
//create content item
|
||||
}elseif($qs[0] == "content" && $qs[1] == "create" ){
|
||||
$newqs = array_reverse($qs);
|
||||
//item; create redirect
|
||||
if($newqs[0] == "cc"){
|
||||
$mainparent = $aa -> getMainParent($qs[2]);
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_1."<br /><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_88." <a href='".e_SELF."?content.create.".$mainparent."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_89." <a href='".e_SELF."?content.".$mainparent."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
require_once(e_ADMIN."footer.php");
|
||||
exit;
|
||||
}
|
||||
$aform -> show_create_content("admin", $userid="", $username="");
|
||||
|
||||
//order : view categories
|
||||
}elseif($qs[0] == "order" && !isset($qs[1])){
|
||||
$aform -> show_order();
|
||||
|
||||
//order global items of parent='2'
|
||||
}elseif($qs[0] == "order" && is_numeric($qs[1]) && !isset($qs[2]) ){
|
||||
$aform -> show_content_order("ai");
|
||||
|
||||
//increase order of global items
|
||||
}elseif($qs[0] == "order" && is_numeric($qs[1]) && $qs[2] == "inc" && isset($qs[3]) ){
|
||||
$message = $adb -> dbSetOrder("inc", "ai", $qs[3]);
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
$aform -> show_content_order("ai");
|
||||
|
||||
//decrease order of global items
|
||||
}elseif($qs[0] == "order" && is_numeric($qs[1]) && $qs[2] == "dec" && isset($qs[3]) ){
|
||||
$message = $adb -> dbSetOrder("dec", "ai", $qs[3]);
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
$aform -> show_content_order("ai");
|
||||
|
||||
//order items with parent=2 or category='5'
|
||||
}elseif($qs[0] == "order" && is_numeric($qs[1]) && is_numeric($qs[2]) && !isset($qs[3]) ){
|
||||
$aform -> show_content_order("ci");
|
||||
|
||||
//increase order of items in category
|
||||
}elseif($qs[0] == "order" && is_numeric($qs[1]) && is_numeric($qs[2]) && $qs[3] == "inc" && isset($qs[4]) ){
|
||||
$message = $adb -> dbSetOrder("inc", "ci", $qs[4]);
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
$aform -> show_content_order("ci");
|
||||
|
||||
//decrease order of items in category
|
||||
}elseif($qs[0] == "order" && is_numeric($qs[1]) && is_numeric($qs[2]) && $qs[3] == "dec" && isset($qs[4]) ){
|
||||
$message = $adb -> dbSetOrder("dec", "ci", $qs[4]);
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
$aform -> show_content_order("ci");
|
||||
|
||||
//increase category order
|
||||
}elseif($qs[0] == "order" && $qs[1] == "inc" && isset($qs[2]) ){
|
||||
$message = $adb -> dbSetOrder("inc", "cc", $qs[2]);
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
$aform -> show_order("admin");
|
||||
|
||||
//decrease category order
|
||||
}elseif($qs[0] == "order" && $qs[1] == "dec" && isset($qs[2]) ){
|
||||
$message = $adb -> dbSetOrder("dec", "cc", $qs[2]);
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
$aform -> show_order("admin");
|
||||
|
||||
//show submitted content items
|
||||
}elseif($qs[0] == "submitted" && !isset($qs[1]) ){
|
||||
$aform -> show_submitted();
|
||||
|
||||
//options intro page
|
||||
}elseif($qs[0] == "option" && !isset($qs[1]) ){
|
||||
$aform -> show_options();
|
||||
|
||||
//options for this top level category
|
||||
}elseif($qs[0] == "option" && isset($qs[1]) && (is_numeric($qs[1]) || $qs[1] == "default") ){
|
||||
$aform -> show_options_cat();
|
||||
|
||||
//category content manager : choose category
|
||||
}elseif($qs[0] == "manager" && !isset($qs[1]) ){
|
||||
if(!getperms("0")){ header("location:".e_SELF); exit; }
|
||||
$aform -> manager();
|
||||
|
||||
//category content manager : view contentmanager
|
||||
}elseif($qs[0] == "manager" && isset($qs[1]) && (is_numeric($qs[1]) || $qs[1]=='default') ){
|
||||
if(!getperms("0")){ header("location:".e_SELF); exit; }
|
||||
$aform -> manager_category();
|
||||
|
||||
//overview all categories
|
||||
}elseif($qs[0] == "cat" && !isset($qs[1]) ){
|
||||
$aform -> manage_cat();
|
||||
|
||||
//create category
|
||||
}elseif($qs[0] == "cat" && $qs[1] == "create" ){
|
||||
$newqs = array_reverse($qs);
|
||||
//category; create redirect
|
||||
if($newqs[0] == "pc"){
|
||||
$message = CONTENT_ADMIN_CAT_LAN_11."<br /><br />";
|
||||
$message .= "<br /><br />".CONTENT_ADMIN_CAT_LAN_50."<br /><br />";
|
||||
$message .= "
|
||||
".CONTENT_ADMIN_CAT_LAN_44." <a href='".e_SELF."?cat.create'>".CONTENT_ADMIN_CAT_LAN_43."</a><br />
|
||||
".CONTENT_ADMIN_CAT_LAN_42." <a href='".e_SELF."?cat.edit.".$qs[2]."'>".CONTENT_ADMIN_CAT_LAN_43."</a><br />";
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
require_once(e_ADMIN."footer.php");
|
||||
exit;
|
||||
}
|
||||
$aform -> show_create_category();
|
||||
|
||||
//edit category
|
||||
}elseif($qs[0] == "cat" && $qs[1] == "edit" && is_numeric($qs[2]) ){
|
||||
$newqs = array_reverse($qs);
|
||||
//category; update redirect
|
||||
if($newqs[0] == "pu"){
|
||||
$message = CONTENT_ADMIN_CAT_LAN_12."<br /><br />
|
||||
".CONTENT_ADMIN_CAT_LAN_42." <a href='".e_SELF."?cat.edit.".$qs[2]."'>".CONTENT_ADMIN_CAT_LAN_43."</a><br />
|
||||
".CONTENT_ADMIN_CAT_LAN_53." <a href='".e_SELF."?cat'>".CONTENT_ADMIN_CAT_LAN_43."</a><br />";
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
require_once(e_ADMIN."footer.php");
|
||||
exit;
|
||||
}
|
||||
$aform -> show_create_category();
|
||||
}
|
||||
}
|
||||
// ##### End --------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
// ##### Display options --------------------------------------------------------------------------
|
||||
function admin_content_config_adminmenu(){
|
||||
|
||||
global $sql, $plugintable, $aa;
|
||||
|
||||
//toggle to show categories in admin right hand menu; default to false
|
||||
$showadmincat = FALSE;
|
||||
|
||||
if(e_QUERY){
|
||||
$qs = explode(".", e_QUERY);
|
||||
}
|
||||
|
||||
if(isset($qs[0]) && $qs[0] == "cat" && isset($qs[1]) && $qs[1] == "create"){
|
||||
$act = $qs[0].".".$qs[1];
|
||||
|
||||
}elseif(isset($qs[0]) && $qs[0] == "content" && isset($qs[1]) && $qs[1] == "create"){
|
||||
$act = $qs[0].".".$qs[1];
|
||||
|
||||
}else{
|
||||
$act = (isset($qs[0]) ? $qs[0] : "");
|
||||
}
|
||||
|
||||
if($act==""){$act="content";}
|
||||
|
||||
$var['content']['text'] = CONTENT_ADMIN_MENU_LAN_0;
|
||||
$var['content']['link'] = e_SELF;
|
||||
|
||||
$var['content.create']['text'] = CONTENT_ADMIN_MENU_LAN_1;
|
||||
$var['content.create']['link'] = e_SELF."?content.create";
|
||||
|
||||
$var['cat']['text'] = CONTENT_ADMIN_MENU_LAN_2;
|
||||
$var['cat']['link'] = e_SELF."?cat";
|
||||
|
||||
$var['cat.create']['text'] = CONTENT_ADMIN_MENU_LAN_3;
|
||||
$var['cat.create']['link'] = e_SELF."?cat.create";
|
||||
|
||||
$var['order']['text'] = CONTENT_ADMIN_MENU_LAN_15;
|
||||
$var['order']['link'] = e_SELF."?order";
|
||||
|
||||
$var['option']['text'] = CONTENT_ADMIN_MENU_LAN_6;
|
||||
$var['option']['link'] = e_SELF."?option";
|
||||
|
||||
if(getperms("0")){
|
||||
$var['manager']['text'] = CONTENT_ADMIN_MENU_LAN_17;
|
||||
$var['manager']['link'] = e_SELF."?manager";
|
||||
}
|
||||
|
||||
if($submittedcontents = $sql -> db_Count($plugintable, "(*)", "WHERE content_refer ='sa' ")){
|
||||
$var['submitted']['text'] = CONTENT_ADMIN_MENU_LAN_4." (".$submittedcontents.")";
|
||||
$var['submitted']['link'] = e_SELF."?submitted";
|
||||
}
|
||||
|
||||
show_admin_menu(CONTENT_ADMIN_MENU_LAN_6, $act,$var);
|
||||
|
||||
if(isset($qs[0]) && $qs[0] == "option" && isset($qs[1])){
|
||||
unset($var);
|
||||
$var=array();
|
||||
$var['creation']['text'] = CONTENT_ADMIN_MENU_LAN_7;
|
||||
$var['general']['text'] = CONTENT_ADMIN_MENU_LAN_10;
|
||||
$var['menu']['text'] = CONTENT_ADMIN_MENU_LAN_14;
|
||||
|
||||
if (!is_object($sql)){ $sql = new db; }
|
||||
$category_total = $sql -> db_Select($plugintable, "content_heading", "content_id='".$qs[1]."' ");
|
||||
list($content_heading) = $sql -> db_Fetch();
|
||||
|
||||
show_admin_menu(CONTENT_ADMIN_MENU_LAN_6.": ".$content_heading."", $act, $var, TRUE);
|
||||
|
||||
unset($var);
|
||||
$var=array();
|
||||
$var['recentpages']['text'] = CONTENT_ADMIN_MENU_LAN_11;
|
||||
$var['catpages']['text'] = CONTENT_ADMIN_MENU_LAN_12;
|
||||
$var['contentpages']['text'] = CONTENT_ADMIN_MENU_LAN_13;
|
||||
$var['authorpage']['text'] = CONTENT_ADMIN_MENU_LAN_18;
|
||||
$var['archivepage']['text'] = CONTENT_ADMIN_MENU_LAN_16;
|
||||
$var['toppage']['text'] = CONTENT_ADMIN_MENU_LAN_20;
|
||||
$var['scorepage']['text'] = CONTENT_ADMIN_MENU_LAN_22;
|
||||
show_admin_menu(CONTENT_ADMIN_MENU_LAN_21.": ".$content_heading."", $act, $var, TRUE);
|
||||
|
||||
}else{
|
||||
|
||||
if($showadmincat){
|
||||
if (!is_object($sql2)){ $sql2 = new db; }
|
||||
if($category_total = $sql2 -> db_Select($plugintable, "content_id, content_heading", "content_parent='0' ")){
|
||||
while($row = $sql2 -> db_Fetch()){
|
||||
|
||||
unset($var);
|
||||
$var=array();
|
||||
|
||||
//get all categories from each main parent
|
||||
$array = $aa -> getCategoryTree("", $row['content_id'], FALSE);
|
||||
$newarray = array_merge_recursive($array);
|
||||
|
||||
$newparent=array();
|
||||
for($a=0;$a<count($newarray);$a++){
|
||||
for($b=0;$b<count($newarray[$a]);$b++){
|
||||
$newparent[$newarray[$a][$b]] = $newarray[$a][$b+1];
|
||||
$b++;
|
||||
}
|
||||
}
|
||||
|
||||
foreach($newparent as $key => $value){
|
||||
$var['c'.$key]['text'] = $value;
|
||||
$var['c'.$key]['link'] = e_SELF."?content.".$key;
|
||||
}
|
||||
if( isset($qs[0]) && $qs[0] == "content" && isset($qs[1]) && $qs[1] == "create"){
|
||||
$act = "";
|
||||
}elseif( isset($qs[0]) && $qs[0] == "cat" && isset($qs[1]) && ($qs[1] == "create" || $qs[1] == "edit") ){
|
||||
$act = "";
|
||||
}elseif( isset($qs[0]) && $qs[0] == "order" ){
|
||||
$act = "";
|
||||
}elseif( isset($qs[0]) && $qs[0] == "manager" ){
|
||||
$act = "";
|
||||
}else{
|
||||
if(isset($qs[0]) && isset($qs[1]) ){
|
||||
$act = "c".$qs[1];
|
||||
}else{
|
||||
$act = "c";
|
||||
}
|
||||
}
|
||||
show_admin_menu(CONTENT_ADMIN_MENU_LAN_5." : ".$row['content_heading']."", $act, $var);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// ##### End --------------------------------------------------------------------------------------
|
||||
|
||||
require_once(e_ADMIN."footer.php");
|
||||
|
||||
function headerjs()
|
||||
{
|
||||
global $cal;
|
||||
return $cal->load_files();
|
||||
}
|
||||
|
||||
|
||||
?>
|
@@ -1,258 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/content_manager.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
require_once("../../class2.php");
|
||||
|
||||
$plugindir = e_PLUGIN."content/";
|
||||
require_once($plugindir."content_shortcodes.php");
|
||||
global $tp;
|
||||
require_once(e_HANDLER."userclass_class.php");
|
||||
require_once(e_HANDLER."form_handler.php");
|
||||
$rs = new form;
|
||||
e107_require_once(e_HANDLER.'arraystorage_class.php');
|
||||
$eArrayStorage = new ArrayData();
|
||||
require_once(e_HANDLER."file_class.php");
|
||||
$fl = new e_file;
|
||||
|
||||
require_once(e_HANDLER."calendar/calendar_class.php");
|
||||
$cal = new DHTML_Calendar(true);
|
||||
|
||||
require_once($plugindir."handlers/content_class.php");
|
||||
$aa = new content;
|
||||
require_once($plugindir."handlers/content_db_class.php");
|
||||
$adb = new contentdb;
|
||||
require_once($plugindir."handlers/content_form_class.php");
|
||||
$aform = new contentform;
|
||||
|
||||
include_lan($plugindir.'languages/'.e_LANGUAGE.'/lan_content_admin.php');
|
||||
include_lan($plugindir.'languages/'.e_LANGUAGE.'/lan_content.php');
|
||||
|
||||
if(is_readable(e_THEME.$pref['sitetheme']."/content/content_admin_template.php")){
|
||||
require_once(e_THEME.$pref['sitetheme']."/content/content_admin_template.php");
|
||||
}else{
|
||||
require_once(e_PLUGIN."content/templates/content_admin_template.php");
|
||||
}
|
||||
|
||||
$deltest = array_flip($_POST);
|
||||
|
||||
if(e_QUERY){
|
||||
$qs = explode(".", e_QUERY);
|
||||
}
|
||||
|
||||
|
||||
if (!USER)
|
||||
{ // non-user can never manage content
|
||||
header("location:".$plugindir."content.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
// define e_pagetitle
|
||||
$aa -> setPageTitle();
|
||||
|
||||
|
||||
// ##### DB ---------------------------------------------------------------------------------------
|
||||
|
||||
require_once(HEADERF);
|
||||
|
||||
//db : content create
|
||||
if(isset($_POST['create_content'])){
|
||||
//content submit
|
||||
if(isset($qs[1]) && $qs[1] == "submit"){
|
||||
if($_POST['content_text'] && $_POST['content_heading'] && $_POST['parent'] != "none" && $_POST['content_author_name'] != "" && $_POST['content_author_email'] != ""){
|
||||
$adb -> dbContent("create", "submit");
|
||||
}else{
|
||||
$message = CONTENT_ADMIN_SUBMIT_LAN_4;
|
||||
}
|
||||
//content create (manager)
|
||||
}elseif(isset($qs[1]) && $qs[1] == "create"){
|
||||
if($_POST['content_text'] && $_POST['content_heading'] && $_POST['parent'] != "none"){
|
||||
$adb -> dbContent("create", "contentmanager");
|
||||
}else{
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//db : content update
|
||||
if(isset($_POST['update_content'])){
|
||||
if($_POST['content_text'] && $_POST['content_heading'] && $_POST['parent'] != "none"){
|
||||
$adb -> dbContent("update", "contentmanager");
|
||||
}else{
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_0;
|
||||
}
|
||||
}
|
||||
|
||||
//db : content delete
|
||||
if(isset($_POST['delete'])){
|
||||
$tmp = array_pop(array_flip($_POST['delete']));
|
||||
list($delete, $del_id) = explode("_", $tmp);
|
||||
}
|
||||
if($delete == 'content' && is_numeric($del_id)){
|
||||
if($sql -> db_Delete($plugintable, "content_id='$del_id' ")){
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_3;
|
||||
$e107cache->clear("content");
|
||||
}
|
||||
}
|
||||
|
||||
//render message
|
||||
if(isset($message)){
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
}
|
||||
|
||||
//db : returned messages
|
||||
|
||||
//content item submitted (with direct posting)
|
||||
if(isset($qs[0]) && $qs[0] == "s"){
|
||||
$message = CONTENT_ADMIN_SUBMIT_LAN_2."<br /><br />".CONTENT_ADMIN_SUBMIT_LAN_5;
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
|
||||
//content item submitted and reviewed in due course (without direct posting)
|
||||
}elseif(isset($qs[0]) && $qs[0] == "d"){
|
||||
$message = CONTENT_ADMIN_SUBMIT_LAN_3."<br /><br />".CONTENT_ADMIN_SUBMIT_LAN_5;
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
|
||||
//content item created (personal/category manager)
|
||||
}elseif(isset($qs[0]) && $qs[0] == "c"){
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_1."<br /><br />".CONTENT_ADMIN_ITEM_LAN_55;
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
|
||||
//content item updated (personal/category manager)
|
||||
}elseif(isset($qs[0]) && $qs[0] == "u"){
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_2."<br /><br />".CONTENT_ADMIN_ITEM_LAN_55;
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
}
|
||||
|
||||
if(!e_QUERY){
|
||||
//show content manager/submit options
|
||||
if(USER){
|
||||
$aform -> show_contentmanager("edit", USERID, USERNAME);
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
}else{
|
||||
header("location:".$plugindir."content.php"); exit;
|
||||
}
|
||||
}else{
|
||||
|
||||
//validate permissions
|
||||
if(isset($qs[1]) && ($qs[1]=='edit' || $qs[1]=='sa') ){
|
||||
//on the edit page, the query id holds the content item's id number
|
||||
//we need to get the category (parent) of the content item first
|
||||
//this is both on the 'edit' page as well as on the 'post submitted' page.
|
||||
if(!$sql -> db_Select($plugintable, "content_id, content_parent", "content_id='".intval($qs[2])."' ")){
|
||||
//not a valid item, so redirect
|
||||
header("location: ".e_SELF); exit;
|
||||
}else{
|
||||
$row = $sql -> db_Fetch();
|
||||
//parent can be '0' (top level) or '0.X (subcategory)
|
||||
if(strpos($row['content_parent'], ".")){
|
||||
$id = substr($row['content_parent'],2);
|
||||
}else{
|
||||
$id = $row['content_parent'];
|
||||
}
|
||||
}
|
||||
|
||||
}else{
|
||||
//on other pages in the manager either $qs[2] or $qs[1] holds the category id number
|
||||
if(isset($qs[2]) && is_numeric($qs[2]) ){
|
||||
$id = intval($qs[2]);
|
||||
}elseif(isset($qs[1]) && is_numeric($qs[1]) ){
|
||||
$id = intval($qs[1]);
|
||||
}
|
||||
}
|
||||
if(!isset($id)){
|
||||
header("location: ".e_SELF); exit;
|
||||
}
|
||||
|
||||
//get preferences for this category
|
||||
$content_pref = $aa->getContentPref($id);
|
||||
|
||||
//if inherit is used in the manager, we need to get the preferences from the core plugin table default preferences
|
||||
//and use those preferences in the permissions check.
|
||||
if( varsettrue($content_pref['content_manager_inherit']) ){
|
||||
$sql -> db_Select("core", "e107_value", "e107_name='$plugintable' ");
|
||||
$row = $sql -> db_Fetch();
|
||||
$content_pref = $eArrayStorage->ReadArray($row['e107_value']);
|
||||
}
|
||||
$content_pref = $aa->parseConstants($content_pref);
|
||||
|
||||
//now we can check the permissions for this user
|
||||
$personalmanagercheck = FALSE;
|
||||
if( (isset($content_pref["content_manager_approve"]) && check_class($content_pref["content_manager_approve"])) ||
|
||||
(isset($content_pref["content_manager_personal"]) && check_class($content_pref["content_manager_personal"])) ||
|
||||
(isset($content_pref["content_manager_category"]) && check_class($content_pref["content_manager_category"])) ||
|
||||
(isset($content_pref["content_manager_submit"]) && check_class($content_pref["content_manager_submit"]))
|
||||
){
|
||||
$personalmanagercheck = TRUE;
|
||||
//user is not allowed here, redirect to content frontpage
|
||||
}else{
|
||||
header("location:".$plugindir."content.php"); exit;
|
||||
}
|
||||
|
||||
//show list of items in this category
|
||||
if(isset($qs[0]) && $qs[0] == "content" && is_numeric($qs[1])){
|
||||
$aform -> show_manage_content("contentmanager", USERID, USERNAME);
|
||||
|
||||
//content create (manager)
|
||||
}elseif(isset($qs[0]) && $qs[0] == "content" && $qs[1] == "create" && is_numeric($qs[2])){
|
||||
$aform -> show_create_content("contentmanager", USERID, USERNAME);
|
||||
|
||||
//content create (submit)
|
||||
}elseif(isset($qs[0]) && $qs[0]=="content" && $qs[1] == "submit" && is_numeric($qs[2]) && !isset($qs[3])){
|
||||
$aform -> show_create_content("submit", USERID, USERNAME);
|
||||
|
||||
//content edit
|
||||
}elseif(isset($qs[0]) && $qs[0] == "content" && $qs[1] == "edit" && is_numeric($qs[2])){
|
||||
$aform -> show_create_content("contentmanager", USERID, USERNAME);
|
||||
|
||||
//display list of submitted content items
|
||||
}elseif(isset($qs[0]) && $qs[0] == "content" && $qs[1] == "approve" && is_numeric($qs[2])){
|
||||
//$aform -> show_submitted("contentmanager", USERID, USERNAME, $qs[2]);
|
||||
$aform -> show_submitted($qs[2]);
|
||||
|
||||
//approve/post submitted content item
|
||||
}elseif(isset($qs[0]) && $qs[0] == "content" && $qs[1] == "sa" && is_numeric($qs[2]) ){
|
||||
$newqs = array_reverse($qs);
|
||||
//item; submit post / update redirect
|
||||
if($newqs[0] == "cu"){
|
||||
$mainparent = $aa -> getMainParent($qs[2]);
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_117."<br /><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_88." <a href='".e_SELF."?content.create.".$mainparent."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_89." <a href='".e_SELF."?content.".$mainparent."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_91." <a href='".e_SELF."?content.edit.".$qs[2]."'>".CONTENT_ADMIN_ITEM_LAN_90."</a><br />";
|
||||
$message .= CONTENT_ADMIN_ITEM_LAN_124." <a href='".e_PLUGIN."content/content.php?content.".$qs[2]."'>".CONTENT_ADMIN_ITEM_LAN_90."</a>";
|
||||
$ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
require_once(e_ADMIN."footer.php");
|
||||
exit;
|
||||
}
|
||||
$aform -> show_create_content("sa", USERID, USERNAME);
|
||||
|
||||
}else{
|
||||
header("location:".e_SELF); exit;
|
||||
}
|
||||
}
|
||||
|
||||
require_once(FOOTERF);
|
||||
|
||||
?>
|
@@ -1,59 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
* Database structure for content management plugin
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/content_sql.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @package e107_plugins
|
||||
* @subpackage content_management
|
||||
* @version $Id$;
|
||||
*
|
||||
* Database structure for content management plugin
|
||||
*/
|
||||
|
||||
header('location:../index.php');
|
||||
exit;
|
||||
?>
|
||||
# Table structure for table `content`
|
||||
#
|
||||
|
||||
CREATE TABLE pcontent (
|
||||
content_id int(10) unsigned NOT NULL auto_increment,
|
||||
content_heading varchar(255) NOT NULL default '',
|
||||
content_subheading varchar(255) NOT NULL default '',
|
||||
content_summary text NOT NULL,
|
||||
content_text longtext NOT NULL,
|
||||
content_author varchar(255) NOT NULL default '',
|
||||
content_icon varchar(255) NOT NULL default '',
|
||||
content_file text NOT NULL,
|
||||
content_image text NOT NULL,
|
||||
content_parent varchar(50) NOT NULL default '',
|
||||
content_comment tinyint(1) unsigned NOT NULL default '0',
|
||||
content_rate tinyint(1) unsigned NOT NULL default '0',
|
||||
content_pe tinyint(1) unsigned NOT NULL default '0',
|
||||
content_refer text NOT NULL,
|
||||
content_datestamp int(10) unsigned NOT NULL default '0',
|
||||
content_enddate int(10) unsigned NOT NULL default '0',
|
||||
content_class varchar(255) NOT NULL default '',
|
||||
content_pref text NOT NULL,
|
||||
content_order varchar(10) NOT NULL default '0',
|
||||
content_score tinyint(3) unsigned NOT NULL default '0',
|
||||
content_meta text NOT NULL,
|
||||
content_layout varchar(255) NOT NULL default '',
|
||||
PRIMARY KEY (content_id),
|
||||
KEY content_parent (content_parent)
|
||||
) ENGINE=MyISAM;
|
||||
# --------------------------------------------------------
|
||||
|
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
/*
|
||||
$e_plug_table = "pcontent"; //This is set to the table name you have decided to use.
|
||||
$reply_location = e_PLUGIN."content/content.php?content.$nid"; //This is set to the location you'd like the user to return to after replying to a comment.
|
||||
$db_table = "pcontent"; //This is the name of your plugins database table.
|
||||
$link_name = "content_heading"; //This is the name of the field in your plugin's db table that corresponds to it's name or title.
|
||||
$db_id = "content_id"; // This is the name of the field in your plugin's db table that correspond to it's unique id number.
|
||||
$plugin_name = "Content"; // A name for your plugin. It will be used in links to comments, in list_new/new.php.
|
||||
*/
|
||||
|
||||
$e_comment['eplug_comment_ids'] = "pcontent"; //This is set to the table name you have decided to use.
|
||||
$e_comment['plugin_path'] = "content"; //The path of your plugin.
|
||||
$e_comment['plugin_name'] = "content"; //A name for your plugin. It will be used in links to comments, in list_new/new.php.
|
||||
//This is set to the location you'd like the user to return to after replying to a comment.
|
||||
$e_comment['reply_location'] = e_PLUGIN_ABS."content/content.php?content.{NID}";
|
||||
$e_comment['db_title'] = "content_heading"; //This is the name of the field in your plugin's db table that corresponds to it's name or title.
|
||||
$e_comment['db_id'] = "content_id"; // This is the name of the field in your plugin's db table that correspond to it's unique id number.
|
||||
|
||||
//qry must be set with a select_gen query.
|
||||
//the main reason would be to check if a category from another table has a class restriction
|
||||
//the id of the item should be provided as {NID}
|
||||
//returned fields should at least contain the 'link_id' and 'db_id' fields set above
|
||||
$e_comment['qry'] = "
|
||||
SELECT c.*
|
||||
FROM #pcontent as c
|
||||
WHERE c.content_id='{NID}' AND c.content_refer !='sa' AND c.content_datestamp < ".time()." AND (c.content_enddate=0 || c.content_enddate>".time().") AND c.content_class REGEXP '".e_CLASS_REGEXP."' ";
|
||||
|
||||
?>
|
@@ -1,169 +0,0 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
function print_item($id)
|
||||
{
|
||||
global $tp, $pref;
|
||||
global $content_pref, $mainparent, $aa, $row, $content_image_path;
|
||||
$con = new convert;
|
||||
|
||||
require_once(e_PLUGIN."content/handlers/content_class.php");
|
||||
$aa = new content;
|
||||
|
||||
require_once(e_PLUGIN."content/content_shortcodes.php");
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content.php");
|
||||
|
||||
if(!is_object($sql)){ $sql = new db; }
|
||||
$sql -> db_Select($plugintable, "content_id, content_heading, content_subheading, content_text, content_author, content_image, content_parent, content_datestamp, content_class", "content_id='".intval($id)."' ");
|
||||
$row = $sql -> db_Fetch();
|
||||
|
||||
if(!check_class($row['content_class'])){
|
||||
header("location:".e_PLUGIN."content/content.php"); exit;
|
||||
}
|
||||
$row['content_heading'] = $tp -> toHTML($row['content_heading']);
|
||||
$row['content_subheading'] = $tp -> toHTML($row['content_subheading']);
|
||||
$row['content_text'] = $tp -> replaceConstants($row['content_text']);
|
||||
$row['content_text'] = preg_replace("/\{EMAILPRINT\}|\[newpage(?:\=.*?){0,1}\]/", "", $tp -> toHTML($row['content_text'], TRUE));
|
||||
$authordetails = $aa -> getAuthor($row['content_author']);
|
||||
$row['content_datestamp'] = $con -> convert_date($row['content_datestamp'], "long");
|
||||
|
||||
$mainparent = $aa -> getMainParent($id);
|
||||
$content_pref = $aa -> getContentPref($mainparent, true);
|
||||
$img = $tp -> parseTemplate('{CM_IMAGES|print}', FALSE, $content_shortcodes);
|
||||
|
||||
$text = "
|
||||
<b>".$row['content_heading']."</b>
|
||||
<br />
|
||||
".$row['content_subheading']."
|
||||
<br />
|
||||
".$authordetails[1].", ".$row['content_datestamp']."
|
||||
<br /><br />
|
||||
<div style='float:left; padding-right:10px;'>".$img."</div>
|
||||
".$row['content_text']."
|
||||
<br /><br /><hr />
|
||||
".CONTENT_EMAILPRINT_LAN_1." ".SITENAME."
|
||||
<br />
|
||||
( ".SITEURLBASE.e_PLUGIN_ABS."content/content.php?content.".$row['content_id']." )
|
||||
";
|
||||
|
||||
require_once(e_HANDLER.'bbcode_handler.php');
|
||||
$e_bb = new e_bbcode;
|
||||
$text = $e_bb->parseBBCodes($text, '');
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
function email_item($id)
|
||||
{
|
||||
$plugintable = "pcontent";
|
||||
if(!is_object($sql)){ $sql = new db; }
|
||||
if($sql -> db_Select($plugintable, "content_id, content_heading, content_subheading, content_text, content_author, content_parent, content_datestamp, content_class", "content_id='".intval($id)."' ")){
|
||||
while($row = $sql -> db_Fetch()){
|
||||
$tmp = explode(".",$row['content_parent']);
|
||||
if(!check_class($row['content_class'])){
|
||||
header("location:".e_PLUGIN."content/content.php"); exit;
|
||||
}
|
||||
$message = SITEURL.e_PLUGIN."content/content.php?content.".$id."\n\n".$row['content_heading']."\n".$row['content_subheading']."\n";
|
||||
}
|
||||
return $message;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function print_item_pdf($id)
|
||||
{
|
||||
global $tp, $pref, $content_shortcodes;
|
||||
global $CONTENT_PRINT_IMAGES, $row, $content_image_path, $content_pref, $mainparent, $eArrayStorage;
|
||||
|
||||
//in this section you decide what to needs to be output to the pdf file
|
||||
$con = new convert;
|
||||
|
||||
require_once(e_PLUGIN."content/content_shortcodes.php");
|
||||
|
||||
require_once(e_PLUGIN."content/handlers/content_class.php");
|
||||
$aa = new content;
|
||||
|
||||
if(!is_object($sql)){ $sql = new db; }
|
||||
$sql -> db_Select($plugintable, "content_id, content_heading, content_subheading, content_text, content_image, content_author, content_parent, content_datestamp, content_class, content_pref", "content_id='".intval($id)."' ");
|
||||
$row = $sql -> db_Fetch();
|
||||
|
||||
if(!check_class($row['content_class'])){
|
||||
header("location:".e_PLUGIN."content/content.php"); exit;
|
||||
}
|
||||
$authordetails = $aa -> getAuthor($row['content_author']);
|
||||
$row['content_datestamp'] = $con -> convert_date($row['content_datestamp'], "long");
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($id));
|
||||
$content_pref = $aa -> getContentPref($mainparent, true);
|
||||
$img = $tp -> parseTemplate('{CM_IMAGES|pdf}', FALSE, $content_shortcodes);
|
||||
|
||||
//add custom and preset tags if present
|
||||
$custom = $eArrayStorage->ReadArray($row['content_pref']);
|
||||
$months = array(CONTENT_ADMIN_DATE_LAN_0, CONTENT_ADMIN_DATE_LAN_1, CONTENT_ADMIN_DATE_LAN_2, CONTENT_ADMIN_DATE_LAN_3, CONTENT_ADMIN_DATE_LAN_4, CONTENT_ADMIN_DATE_LAN_5, CONTENT_ADMIN_DATE_LAN_6, CONTENT_ADMIN_DATE_LAN_7, CONTENT_ADMIN_DATE_LAN_8, CONTENT_ADMIN_DATE_LAN_9, CONTENT_ADMIN_DATE_LAN_10, CONTENT_ADMIN_DATE_LAN_11);
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_TAGS = "";
|
||||
if(!empty($custom)){
|
||||
foreach($custom as $k => $v){
|
||||
if($k == "content_custom_presettags"){
|
||||
if(isset($content_pref["content_content_presettags"]) && $content_pref["content_content_presettags"]){
|
||||
foreach($v as $ck => $cv){
|
||||
if(is_array($cv)){ //date
|
||||
if(!($cv['day']=="" && $cv['month']=="" && $cv['year']=="")){
|
||||
$vv = $cv['day']." ".$months[($cv['month']-1)]." ".$cv['year'];
|
||||
}
|
||||
}else{
|
||||
$vv = $cv;
|
||||
}
|
||||
if( isset($ck) && $ck != "" && isset($vv) && $vv!="" ){
|
||||
$CUSTOM_TAGS = TRUE;
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_KEY = $tp->toHTML($ck, true);
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_VALUE = $tp->toHTML($vv, true);
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_TAGS .= $CONTENT_CONTENT_TABLE_CUSTOM_KEY." : ".$CONTENT_CONTENT_TABLE_CUSTOM_VALUE."<br />";
|
||||
}
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if(isset($content_pref["content_content_customtags"]) && $content_pref["content_content_customtags"]){
|
||||
$key = substr($k,15);
|
||||
if( isset($key) && $key != "" && isset($v) && $v!="" ){
|
||||
$CUSTOM_TAGS = TRUE;
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_KEY = $tp->toHTML($key, true);
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_VALUE = $tp->toHTML($v, true);
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_TAGS .= $CONTENT_CONTENT_TABLE_CUSTOM_KEY." : ".$CONTENT_CONTENT_TABLE_CUSTOM_VALUE."<br />";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$text = "
|
||||
<b>".$row['content_heading']."</b><br />
|
||||
".$row['content_subheading']."<br />
|
||||
".$authordetails[1].", ".$row['content_datestamp']."<br />
|
||||
<br />
|
||||
".$row['content_text']."<br />
|
||||
".($CONTENT_CONTENT_TABLE_CUSTOM_TAGS ? $CONTENT_CONTENT_TABLE_CUSTOM_TAGS : "")."
|
||||
<div style='float:left; padding-left:10px;'>".$img."</div>
|
||||
";
|
||||
|
||||
//the following defines are processed in the document properties of the pdf file
|
||||
|
||||
//Do NOT add parser function to the variables, leave them as raw data !
|
||||
//as the pdf methods will handle this !
|
||||
$text = $text; //define text
|
||||
$creator = SITENAME; //define creator
|
||||
$author = $authordetails[1]; //define author
|
||||
$title = $row['content_heading']; //define title
|
||||
$subject = $row['content_subheading']; //define subject
|
||||
$keywords = ""; //define keywords
|
||||
|
||||
//define url to use in the header of the pdf file
|
||||
$url = SITEURLBASE.e_PLUGIN_ABS."content/content.php?content.".$row['content_id'];
|
||||
|
||||
//always return an array with the following data:
|
||||
return array($text, $creator, $author, $title, $subject, $keywords, $url);
|
||||
}
|
||||
|
||||
?>
|
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content_frontpage.php");
|
||||
|
||||
$sql2 = new db;
|
||||
if ($sql2 -> db_Select("pcontent", "content_id, content_heading", "LEFT(content_parent,1)='0'")) {
|
||||
while ($row = $sql2 -> db_Fetch()) {
|
||||
$front_page['content_'.$row['content_id']]['title'] = CONT_FP_1.': '.$row['content_heading'];
|
||||
$front_page['content_'.$row['content_id']]['page'][] = array('page' => $PLUGINS_DIRECTORY.'content/content.php?recent.'.$row['content_id'], 'title' => $row['content_heading'].' '.CONT_FP_2);
|
||||
if ($sql -> db_Select("pcontent", "content_id, content_heading", "content_parent = '".$row['content_id']."' ORDER BY content_heading")){
|
||||
while ($row2 = $sql -> db_Fetch()) {
|
||||
$front_page['content_'.$row['content_id']]['page'][] = array('page' => $PLUGINS_DIRECTORY.'content/content.php?content.'.$row2['content_id'], 'title' => $row2['content_heading']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@@ -1,100 +0,0 @@
|
||||
<?php
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
global $plugindir;
|
||||
require_once($plugindir."handlers/content_defines.php");
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content_help.php");
|
||||
|
||||
if(!e_QUERY){
|
||||
$text = CONTENT_ADMIN_HELP_ITEM_1;
|
||||
}else{
|
||||
$qs = explode(".", e_QUERY);
|
||||
|
||||
//##### CONTENT --------------------------------------------------
|
||||
//manage content items
|
||||
if($qs[0] == "content" && is_numeric($qs[1]) ){
|
||||
$text = CONTENT_ADMIN_HELP_ITEM_2;
|
||||
|
||||
//edit content item
|
||||
}elseif($qs[0] == "content" && $qs[1] == "edit" && is_numeric($qs[2]) ){
|
||||
$text = CONTENT_ADMIN_HELP_ITEMEDIT_1;
|
||||
|
||||
//post submitted content item
|
||||
}elseif($qs[0] == "content" && $qs[1] == "sa" && is_numeric($qs[2]) ){
|
||||
$text = CONTENT_ADMIN_HELP_ITEMCREATE_2;
|
||||
|
||||
//create content item
|
||||
}elseif($qs[0] == "content" && $qs[1] == "create" ){
|
||||
//Create New Content (no category selected)
|
||||
if(!isset($qs[2])){
|
||||
$text = CONTENT_ADMIN_HELP_ITEMCREATE_1;
|
||||
|
||||
//Create New Content (category selected)
|
||||
}elseif(is_numeric($qs[2])){
|
||||
$text = CONTENT_ADMIN_HELP_ITEMCREATE_2;
|
||||
}
|
||||
|
||||
//##### ORDER --------------------------------------------------
|
||||
//order : view categories
|
||||
}elseif($qs[0] == "order" && (!isset($qs[1]) || $qs[1] == "inc" || $qs[1] == "dec")){
|
||||
$text = CONTENT_ADMIN_HELP_ORDER_1;
|
||||
|
||||
//order global items of parent='2'
|
||||
}elseif($qs[0] == "order" && is_numeric($qs[1]) && (!isset($qs[2]) || $qs[2] == "inc" || $qs[2] == "dec") ){
|
||||
$text = CONTENT_ADMIN_HELP_ORDER_3;
|
||||
|
||||
//order items with parent=2 or category='5'
|
||||
}elseif($qs[0] == "order" && is_numeric($qs[1]) && is_numeric($qs[2]) && (!isset($qs[3]) || $qs[3] == "inc" || $qs[3] == "dec") ){
|
||||
$text = CONTENT_ADMIN_HELP_ORDER_2;
|
||||
|
||||
//##### SUBMITTED --------------------------------------------------
|
||||
}elseif($qs[0] == "submitted" && !isset($qs[1]) ){
|
||||
$text = CONTENT_ADMIN_HELP_SUBMIT_1;
|
||||
|
||||
//##### OPTION --------------------------------------------------
|
||||
//option: mainpage
|
||||
}elseif($qs[0] == "option" && !isset($qs[1]) ){
|
||||
$text = CONTENT_ADMIN_HELP_OPTION_1;
|
||||
|
||||
//option: with main parent selected, show all options
|
||||
}elseif($qs[0] == "option" && isset($qs[1]) && (is_numeric($qs[1]) || $qs[1] == "default") ){
|
||||
|
||||
$text .= "
|
||||
<div id='creationhelp'>".CONTENT_ADMIN_HELP_OPTION_DIV_1."</div>
|
||||
<div id='generalhelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_3."</div>
|
||||
<div id='menuhelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_6."</div>
|
||||
<div id='recentpageshelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_7."</div>
|
||||
<div id='catpageshelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_8."</div>
|
||||
<div id='contentpageshelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_9."</div>
|
||||
<div id='authorpagehelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_10."</div>
|
||||
<div id='archivepagehelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_11."</div>
|
||||
<div id='toppagehelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_12."</div>
|
||||
<div id='scorepagehelp' style='display:none;'>".CONTENT_ADMIN_HELP_OPTION_DIV_13."</div>";
|
||||
|
||||
|
||||
//##### MANAGER --------------------------------------------------
|
||||
//content manager : choose category
|
||||
}elseif($qs[0] == "manager" && !isset($qs[1]) ){
|
||||
$text = CONTENT_ADMIN_HELP_MANAGER_1;
|
||||
|
||||
//content manager : view contentmanager
|
||||
}elseif($qs[0] == "manager" && isset($qs[1]) && (is_numeric($qs[1]) || $qs[1]=='default') ){
|
||||
$text = CONTENT_ADMIN_HELP_MANAGER_2;
|
||||
|
||||
//##### CATEGORY --------------------------------------------------
|
||||
//overview all categories
|
||||
}elseif($qs[0] == "cat" && !isset($qs[1]) ){
|
||||
$text = CONTENT_ADMIN_HELP_CAT_1;
|
||||
|
||||
//create category
|
||||
}elseif($qs[0] == "cat" && $qs[1] == "create" ){
|
||||
$text = CONTENT_ADMIN_HELP_CAT_2;
|
||||
|
||||
//edit category
|
||||
}elseif($qs[0] == "cat" && $qs[1] == "edit" && is_numeric($qs[2]) ){
|
||||
$text = CONTENT_ADMIN_HELP_CAT_3;
|
||||
}
|
||||
}
|
||||
$ns -> tablerender(CONTENT_ADMIN_HELP_1, $text);
|
||||
|
||||
?>
|
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
include_lan(e_PLUGIN.'content/languages/'.e_LANGUAGE.'/lan_content_admin.php');
|
||||
$plugintable = "pcontent";
|
||||
$reported_content = $sql -> db_Count($plugintable, '(*)', "WHERE content_refer='sa' ");
|
||||
$text .= "
|
||||
<div style='padding-bottom: 2px;'>
|
||||
<img src='".e_PLUGIN_ABS."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' />
|
||||
";
|
||||
if($reported_content)
|
||||
{
|
||||
$text .= " <a href='".e_PLUGIN_ABS."content/admin_content_config.php?submitted'>".CONTENT_LATEST_LAN_1." $reported_content</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$text .= CONTENT_LATEST_LAN_1." ".$reported_content;
|
||||
}
|
||||
$text .= "</div>";
|
||||
|
||||
?>
|
@@ -1,125 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
if(!$content_install = $sql->db_Select_gen("SELECT * FROM plugin WHERE plugin_path = 'content' AND plugin_installflag = '1' "))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
require_once(e_PLUGIN."content/handlers/content_class.php");
|
||||
$aa = new content;
|
||||
|
||||
$datequery = " AND content_datestamp < ".time()." AND (content_enddate=0 || content_enddate>".time().") ";
|
||||
|
||||
global $contentmode;
|
||||
//contentmode : content_144 (content_ + idvalue)
|
||||
$headingquery = ($contentmode ? " AND content_id = '".substr($contentmode,8)."' " : '');
|
||||
|
||||
//get main parent types
|
||||
$sqlm = new db;
|
||||
if(!$mainparents = $sqlm->db_Select_gen("SELECT content_id, content_heading FROM #pcontent WHERE content_class REGEXP '".e_CLASS_REGEXP."' AND content_parent = '0' ".$datequery." ".$headingquery." ORDER BY content_heading"))
|
||||
{
|
||||
$LIST_DATA = CONTENT_E_LIST_LAN_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
while($rowm = $sqlm->db_Fetch())
|
||||
{
|
||||
$ICON = "";
|
||||
$HEADING = "";
|
||||
$AUTHOR = "";
|
||||
$CATEGORY = "";
|
||||
$DATE = "";
|
||||
$INFO = "";
|
||||
$LIST_CAPTION = $rowm['content_heading'];
|
||||
|
||||
//global var for this main parent
|
||||
$mainparent = $rowm['content_id'];
|
||||
|
||||
//get path variables
|
||||
$content_recent_pref = $aa->getContentPref($mainparent, true);
|
||||
|
||||
//prepare query string
|
||||
$array = $aa->getCategoryTree("", $mainparent, TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$qry = "content_refer !='sa' AND content_parent REGEXP '".$aa->CONTENTREGEXP($validparent)."' AND content_class REGEXP '".e_CLASS_REGEXP."' ";
|
||||
|
||||
//check so only the preferences from the correct content_type (article, content, review etc) are used and rendered
|
||||
if(substr($contentmode,8) == $rowm['content_id'])
|
||||
{
|
||||
if($mode == "new_page" || $mode == "new_menu" )
|
||||
{
|
||||
$lvisit = $this->getlvisit();
|
||||
$qry = $qry." AND content_datestamp>".$lvisit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry = $qry." ".$datequery;
|
||||
}
|
||||
$qry .= " ORDER BY content_datestamp DESC LIMIT 0,".intval($arr[7]);
|
||||
|
||||
//get recent content for each main parent
|
||||
$sqli = new db;
|
||||
if(!$resultitem = $sqli->db_Select_gen("SELECT content_id, content_heading, content_parent, content_datestamp, content_icon, content_author FROM #pcontent WHERE ".$qry))
|
||||
{
|
||||
$LIST_DATA = LIST_LAN_1." ".$rowm['content_heading'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$LIST_DISPLAYSTYLE = ($arr[2] ? "" : "none");
|
||||
while($rowi = $sqli->db_Fetch())
|
||||
{
|
||||
$rowheading = $this->parse_heading($rowi['content_heading'], $mode);
|
||||
$HEADING = "<a href='".e_PLUGIN_ABS."content/content.php?content.".$rowi['content_id']."' title='".$rowi['content_heading']."'>".$rowheading."</a>";
|
||||
//category
|
||||
if($arr[4])
|
||||
{
|
||||
$crumb = "";
|
||||
if(array_key_exists($rowi['content_parent'], $array))
|
||||
{
|
||||
$newarr = $array[$rowi['content_parent']];
|
||||
$newarr = array_reverse($newarr);
|
||||
$CATEGORY = "<a href='".e_PLUGIN_ABS."content/content.php?cat.".$newarr[1]."'>".$newarr[0]."</a>";
|
||||
}
|
||||
}
|
||||
|
||||
$DATE = ($arr[5] ? $this->getListDate($rowi['content_datestamp'], $mode) : "");
|
||||
|
||||
$image_link_append = "<a href='".e_PLUGIN_ABS."content/content.php?content.".$rowi['content_id']."'>";
|
||||
if($rowi['content_icon'] && file_exists($content_recent_pref["content_icon_path"].$rowi['content_icon']))
|
||||
{
|
||||
$ICON = $image_link_append."<img src='".$content_recent_pref["content_icon_path"].$rowi['content_icon']."' style='width:50px; border:1px solid #000;' alt='' /></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$ICON = "";
|
||||
}
|
||||
|
||||
//get author details
|
||||
if($arr[3])
|
||||
{
|
||||
$authordetails = $aa->getAuthor($rowi['content_author']);
|
||||
if(USER && is_numeric($authordetails[0]) && $authordetails[0] != "0")
|
||||
{
|
||||
$AUTHOR = "<a href='".e_HTTP."user.php?id.".$authordetails[0]."' >".$authordetails[1]."</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$AUTHOR = $authordetails[1];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$AUTHOR = "";
|
||||
}
|
||||
$INFO = "";
|
||||
|
||||
$LIST_DATA[$mode][] = array( $ICON, $HEADING, $AUTHOR, $CATEGORY, $DATE, $INFO );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@@ -1,53 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
| http://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/content/e_meta.php,v $
|
||||
| $Revision$
|
||||
| $Date$
|
||||
| $Author$
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
if (substr(e_PAGE, 0, 7) != 'content') return;
|
||||
|
||||
echo "<script type='text/javascript' src='".e_FILE."popup.js'></script>\n";
|
||||
|
||||
if(e_QUERY){
|
||||
$qs = explode(".", e_QUERY);
|
||||
|
||||
if(is_numeric($qs[0])){
|
||||
$from = array_shift($qs);
|
||||
}else{
|
||||
$from = "0";
|
||||
}
|
||||
}
|
||||
if(isset($qs[0]) && $qs[0] == "content" && isset($qs[1]) && is_numeric($qs[1]) ){
|
||||
$add_meta_keywords = '';
|
||||
//meta keywords from content item
|
||||
if($sql -> db_Select('pcontent', "content_meta", "content_id='".intval($qs[1])."'")){
|
||||
list($row['content_meta']) = $sql -> db_Fetch();
|
||||
$exmeta = $row['content_meta'];
|
||||
if($exmeta != ""){
|
||||
$exmeta = str_replace(", ", ",", $exmeta);
|
||||
$exmeta = str_replace(" ", ",", $exmeta);
|
||||
$exmeta = str_replace(",", ", ", $exmeta);
|
||||
$add_meta_keywords = $exmeta;
|
||||
}
|
||||
}
|
||||
if($add_meta_keywords){
|
||||
define("META_MERGE", TRUE);
|
||||
define("META_KEYWORDS", " ".$add_meta_keywords);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@@ -1,32 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/e_notify.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content.php");
|
||||
|
||||
$config_category = CONTENT_NOTIFY_LAN_1;
|
||||
$config_events = array('content' => CONTENT_NOTIFY_LAN_2);
|
||||
|
||||
if (!function_exists('notify_content')) {
|
||||
function notify_content($data) {
|
||||
global $nt;
|
||||
foreach ($data as $key => $value) {
|
||||
$message .= $key.': '.$value.'<br />';
|
||||
}
|
||||
$nt -> send('content', CONTENT_NOTIFY_LAN_3, $message);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@@ -1,74 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
require_once(e_PLUGIN."content/handlers/content_class.php");
|
||||
$aa = new content;
|
||||
|
||||
//##### create feed for admin, return array $eplug_rss_feed --------------------------------
|
||||
$feed = get_rss();
|
||||
foreach($feed as $k=>$v){
|
||||
$eplug_rss_feed[] = $v;
|
||||
}
|
||||
|
||||
function get_rss(){
|
||||
global $aa;
|
||||
|
||||
require_once(e_PLUGIN."content/handlers/content_class.php");
|
||||
$aa = new content;
|
||||
$rss = array();
|
||||
$array = $aa -> getCategoryTree('', '', FALSE);
|
||||
foreach($array as $k=>$v){
|
||||
$name = '';
|
||||
for($i=0;$i<count($array[$k]);$i++){
|
||||
$name .= $array[$k][$i+1]." > ";
|
||||
$i++;
|
||||
}
|
||||
$name = substr($name,0,-3);
|
||||
$feed['name'] = $name;
|
||||
$feed['url'] = 'content'; //the identifier for the rss feed url
|
||||
$feed['topic_id'] = $k; //the topic_id, empty on default (to select a certain category)
|
||||
$feed['path'] = 'content'; //this is the plugin path location
|
||||
$feed['text'] = 'this is the rss feed for content category : '.$name;
|
||||
$feed['class'] = '0';
|
||||
$feed['limit'] = '9';
|
||||
$rss[] = $feed;
|
||||
}
|
||||
return $rss;
|
||||
}
|
||||
//##### ------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
//##### create rss data, return as array $eplug_rss_data -----------------------------------
|
||||
$mainparent = $aa -> getMainParent($this->topicid);
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
$array = $aa -> getCategoryTree("", $mainparent, TRUE);
|
||||
$datequery = " AND content_datestamp < ".time()." AND (content_enddate=0 || content_enddate>".time().") ";
|
||||
$qry = " content_refer !='sa' ".$datequery." AND content_class REGEXP '".e_CLASS_REGEXP."' AND content_parent = '".$this->topicid."' ORDER BY content_datestamp DESC LIMIT 0,".$this -> limit;
|
||||
|
||||
$rss = array();
|
||||
$sqlrss = new db;
|
||||
if($items = $sqlrss -> db_Select('pcontent', "content_id, content_heading, content_subheading, content_parent, content_author, content_datestamp", $qry )){
|
||||
$i=0;
|
||||
while($rowrss = $sqlrss -> db_Fetch()){
|
||||
//$author = array($author_id, $author_name, $author_email, $content_author);
|
||||
$author = $aa -> getAuthor($rowrss['content_author']);
|
||||
$rss[$i]['author'] = $author[1];
|
||||
$rss[$i]['author_email'] = $author[2];
|
||||
$rss[$i]['link'] = $e107->base_path.$PLUGINS_DIRECTORY."content/content.php?content.".$rowrss['content_id'];
|
||||
$rss[$i]['linkid'] = $rowrss['content_id'];
|
||||
$rss[$i]['title'] = $rowrss['content_heading'];
|
||||
$rss[$i]['description'] = $rowrss['content_subheading'];
|
||||
$rss[$i]['category_name'] = $array[$rowrss['content_parent']][count($array[$rowrss['content_parent']])-1];
|
||||
$rss[$i]['category_link'] = $e107->base_path.$PLUGINS_DIRECTORY."content/content.php?cat.".$rowrss['content_parent'];
|
||||
$rss[$i]['datestamp'] = $rowrss['content_datestamp'];
|
||||
$rss[$i]['enc_url'] = "";
|
||||
$rss[$i]['enc_leng'] = "";
|
||||
$rss[$i]['enc_type'] = "";
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
$eplug_rss_data[] = $rss;
|
||||
//##### ------------------------------------------------------------------------------------
|
||||
|
||||
?>
|
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content_search.php");
|
||||
|
||||
$search_info[] = array( 'sfile' => e_PLUGIN.'content/search/search_parser.php', 'qtype' => CONT_SCH_LAN_1, 'refpage' => 'content.php', 'advanced' => e_PLUGIN.'content/search/search_advanced.php');
|
||||
|
||||
?>
|
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content_admin.php");
|
||||
|
||||
$sql2 = new db;
|
||||
$total = $sql -> db_Count("pcontent", "(*)", "WHERE LEFT(content_parent,1) != '0' AND content_refer != 'sa'");
|
||||
if($total == 0){
|
||||
$text .= "<div style='padding-bottom: 2px;'><img src='".e_PLUGIN."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> ".CONTENT_STATUS_LAN_1." ".$total."</div>";
|
||||
}else{
|
||||
$text .= "<div style='padding-bottom: 2px;'><a style='cursor: pointer; cursor: hand' onclick=\"expandit('content');\"><img src='".e_PLUGIN."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> ".CONTENT_STATUS_LAN_1." ".$total."</a></div>";
|
||||
}
|
||||
$maincat = $sql -> db_Select("pcontent", "content_id, content_heading", "LEFT(content_parent,1) = '0' ORDER BY content_heading");
|
||||
$text .= "<div id='content' style='display: none;'>";
|
||||
while($row = $sql -> db_Fetch()){
|
||||
$count = $sql2 -> db_Count("pcontent", "(*)", "WHERE content_parent = '".$row['content_id']."' AND content_refer != 'sa' ");
|
||||
$text .= "<div style='padding-bottom: 2px;'><img src='".e_PLUGIN."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> ".$row['content_heading'].": ".$count."</div>";
|
||||
}
|
||||
$text .= "</div>";
|
||||
?>
|
@@ -1,48 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
class e_tagwords_content
|
||||
{
|
||||
function e_tagwords_content()
|
||||
{
|
||||
$this->settings = array();
|
||||
|
||||
$this->settings['plugin'] = "content";
|
||||
$this->settings['table'] = "pcontent";
|
||||
$this->settings['db_id'] = "content_id";
|
||||
$this->settings['caption'] = "content";
|
||||
}
|
||||
|
||||
function getLink($id)
|
||||
{
|
||||
global $tp;
|
||||
if($this->row=='')
|
||||
{
|
||||
$this->row = $this->getRecord($id);
|
||||
}
|
||||
$url = e_PLUGIN."content/content.php?content.{$this->row['content_id']}";
|
||||
return "<a href='".$url."'>".$tp->toHTML($this->row['content_heading'], TRUE, '')."</a>";
|
||||
}
|
||||
|
||||
function getRecord($id)
|
||||
{
|
||||
global $sql;
|
||||
|
||||
$this->row = '';
|
||||
|
||||
$qry = "SELECT c.*
|
||||
FROM #pcontent as c
|
||||
WHERE c.content_id='{$id}' AND c.content_refer !='sa'
|
||||
AND c.content_datestamp < ".time()." AND (c.content_enddate=0 || c.content_enddate>".time().")
|
||||
AND c.content_class REGEXP '".e_CLASS_REGEXP."' ";
|
||||
|
||||
if($sql->db_Select_gen($qry))
|
||||
{
|
||||
$this->row=$sql->db_Fetch();
|
||||
}
|
||||
return $this->row;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@@ -1,89 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(!function_exists('e_userprofile_content')){
|
||||
function e_userprofile_content(){
|
||||
global $qs, $sql, $tp;
|
||||
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content.php");
|
||||
require_once(e_PLUGIN.'content/handlers/content_class.php');
|
||||
$aa = new content;
|
||||
|
||||
$userid=intval($qs[1]);
|
||||
|
||||
$caption = array();
|
||||
$data = array();
|
||||
|
||||
//get main parent types
|
||||
$sqlm = new db;
|
||||
if($sqlm -> db_Select("pcontent", "content_id, content_heading", "content_class REGEXP '".e_CLASS_REGEXP."' AND content_parent = '0' ".$datequery." ".$headingquery." ORDER BY content_heading")){
|
||||
while($rowm = $sqlm -> db_Fetch()){
|
||||
//global var for this main parent
|
||||
$mainparent = $rowm['content_id'];
|
||||
$maincaption = $rowm['content_heading'];
|
||||
|
||||
$text = '';
|
||||
|
||||
//prepare query paramaters
|
||||
$array = $aa -> getCategoryTree("", $mainparent, TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$qry = " p.content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' ";
|
||||
$datequery = " AND p.content_datestamp < ".time()." AND (p.content_enddate=0 || p.content_enddate>".time().") ";
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
$content_icon_path = $tp -> replaceConstants($content_pref["content_icon_path"]);
|
||||
$l = strlen($userid)+1;
|
||||
$userquery = " AND (p.content_author = '".$userid."' || LEFT(p.content_author, ".$l.") = '".$userid."^' OR SUBSTRING_INDEX(p.content_author, '^', 1) = '".$userid."' ) ";
|
||||
|
||||
$qry = "
|
||||
SELECT p.content_id, p.content_heading, p.content_subheading, p.content_icon, p.content_datestamp
|
||||
FROM #pcontent AS p
|
||||
WHERE LEFT(p.content_parent,1) != '0'
|
||||
AND ".$qry." ".$datequery."
|
||||
AND p.content_class REGEXP '".e_CLASS_REGEXP."'
|
||||
".$userquery."
|
||||
ORDER BY p.content_heading ";
|
||||
$qry1 = $qry." LIMIT 0,3";
|
||||
|
||||
$found=false;
|
||||
$sqlc = new db;
|
||||
$total = $sqlc -> db_Select_gen($qry);
|
||||
if($sqlc -> db_Select_gen($qry1)){
|
||||
|
||||
while($rowc = $sqlc -> db_Fetch()){
|
||||
|
||||
$icon='';
|
||||
if($rowc['content_icon'] && is_readable($content_icon_path.$rowc['content_icon'])){
|
||||
$icon = "<a href='".e_PLUGIN."content/content.php?content.".$rowc['content_id']."' ><img src='".$content_icon_path.$rowc['content_icon']."' style='width:50px; height:50px;' alt='' /></a>";
|
||||
}else{
|
||||
$icon = "<a href='".e_PLUGIN."content/content.php?content.".$rowc['content_id']."' ><img src='".$content_icon_path."blank.gif' style='width:50px; height:50px;' alt='' /></a>";
|
||||
}
|
||||
|
||||
$date = strftime("%d %b %Y", $rowc['content_datestamp']);
|
||||
$subheading = ($row['content_subheading'] ? $row['content_subheading']."<br />" : '');
|
||||
|
||||
$text .= "
|
||||
<div style='clear:both; padding-bottom:10px;'>
|
||||
<div style='float:left; padding-bottom:10px;'>".$icon."</div>
|
||||
<div style='margin-left:60px; padding-bottom:10px;'>
|
||||
<a href='".e_PLUGIN."content/content.php?content.".$rowc['content_id']."'>".$tp->toHTML($rowc['content_heading'], TRUE, "")."</a><br />
|
||||
".$subheading."
|
||||
<span class='smalltext'>".$date."</span>
|
||||
</div>
|
||||
</div>";
|
||||
|
||||
$id = $rowc['content_id'];
|
||||
$found=true;
|
||||
}
|
||||
$lan0 = str_replace('{caption}',$maincaption, CONTENT_USERPROFILE_LAN_1);
|
||||
$text .= "<div style='clear:both; padding-bottom:10px;'><a href='".e_PLUGIN."content/content.php?author.".$id."'>".$lan0."</a></div>";
|
||||
}
|
||||
if($found){
|
||||
$caption[] = str_replace(array('{caption}','{total}'),array($maincaption, $total), CONTENT_USERPROFILE_LAN_2);
|
||||
$data[] = $text;
|
||||
}
|
||||
}
|
||||
return array('caption'=>$caption, 'text'=>$data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@@ -1,908 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_convert_class.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
$plugindir = e_PLUGIN."content/";
|
||||
$plugintable = "pcontent"; //name of the table used in this plugin (never remove this, as it's being used throughout the plugin !!)
|
||||
$datequery = " AND content_datestamp < ".time()." AND (content_enddate=0 || content_enddate>".time().") ";
|
||||
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content.php");
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content_admin.php");
|
||||
|
||||
require_once($plugindir."handlers/content_class.php");
|
||||
$aa = new content;
|
||||
|
||||
class content_convert{
|
||||
|
||||
|
||||
//update content_author
|
||||
function upgrade_1_2(){
|
||||
global $sql;
|
||||
|
||||
$text = "";
|
||||
$field1 = $sql->db_Field("pcontent",19);
|
||||
$field2 = $sql->db_Field("pcontent",20);
|
||||
$field3 = $sql->db_Field("pcontent",21);
|
||||
if($field1 != "content_score" && $field2 != "content_meta" && $field3 != "content_layout"){
|
||||
mysql_query("ALTER TABLE ".MPREFIX."pcontent ADD content_score TINYINT ( 3 ) UNSIGNED NOT NULL DEFAULT '0';");
|
||||
mysql_query("ALTER TABLE ".MPREFIX."pcontent ADD content_meta TEXT NOT NULL;");
|
||||
mysql_query("ALTER TABLE ".MPREFIX."pcontent ADD content_layout VARCHAR ( 255 ) NOT NULL DEFAULT '';");
|
||||
$text = CONTENT_ADMIN_CONVERSION_LAN_64."<br />";
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
||||
//update content_author
|
||||
function upgrade_1_21(){
|
||||
global $sql;
|
||||
$sql = new db; $sql1 = new db;
|
||||
$upgrade = FALSE;
|
||||
if($sql -> db_Select("pcontent", "content_id, content_author", "content_author != '' ")){
|
||||
while($row = $sql -> db_Fetch()){
|
||||
if(is_numeric($row['content_author'])){
|
||||
}else{
|
||||
$tmp = explode("^", $row['content_author']);
|
||||
if($tmp[0] == "0"){
|
||||
$upgrade = TRUE;
|
||||
$newauthor = $tmp[1].($tmp[2] ? "^".$tmp[2] : "");
|
||||
$sql1 -> db_Update("pcontent", " content_author = '".$newauthor."' WHERE content_id='".$row['content_id']."' ");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if($upgrade){
|
||||
return CONTENT_ADMIN_CONVERSION_LAN_65."<br />";
|
||||
}else{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
//update preferences storage method
|
||||
function upgrade_1_22(){
|
||||
global $sql, $sql2, $eArrayStorage, $tp, $aa;
|
||||
|
||||
$upgrade = TRUE;
|
||||
|
||||
$sqlc = new db;
|
||||
$sqld = new db;
|
||||
|
||||
//convert preferences for core default preferences
|
||||
if($sqlc -> db_Select("core", "*", "e107_name='pcontent' ")){
|
||||
$row = $sqlc -> db_Fetch();
|
||||
|
||||
$tmp = $eArrayStorage->ReadArray($row['e107_value']);
|
||||
|
||||
//replace the id value for the content_pref
|
||||
$content_pref = array();
|
||||
foreach($tmp as $k=>$v){
|
||||
if(substr($k,-2) == "_0"){
|
||||
$k = str_replace("_0", "", $k);
|
||||
}
|
||||
if(strpos($k, "content_") === 0){
|
||||
$content_pref[$k] = $tp->toDB($v);
|
||||
}
|
||||
}
|
||||
if(!isset($content_pref['content_admin_subheading'])){
|
||||
//add new options to the preferences
|
||||
$content_pref = $this->upgrade_1_22_prefs($content_pref);
|
||||
|
||||
$tmp1 = $eArrayStorage->WriteArray($content_pref);
|
||||
$sqld -> db_Update("core", "e107_value = '{$tmp1}' WHERE e107_name = 'pcontent' ");
|
||||
}else{
|
||||
$upgrade=FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
//convert preferences for all main parents
|
||||
if($sqlc -> db_Select("pcontent", "content_id, content_heading, content_pref", "LEFT(content_parent, 1) = '0' ")){
|
||||
while($row=$sqlc->db_Fetch()){
|
||||
|
||||
$id = $row['content_id'];
|
||||
$tmp = $eArrayStorage->ReadArray($row['content_pref']);
|
||||
|
||||
//replace the id value for the content_pref
|
||||
$l = strlen($id);
|
||||
$content_pref = array();
|
||||
foreach($tmp as $k=>$v){
|
||||
if(substr($k,-($l+1)) == "_".$id){
|
||||
$k = str_replace("_".$id, "", $k);
|
||||
}
|
||||
if(strpos($k, "content_") === 0){
|
||||
$content_pref[$k] = $tp->toDB($v);
|
||||
}
|
||||
}
|
||||
//add new options to the preferences
|
||||
if(!isset($content_pref['content_admin_subheading'])){
|
||||
$content_pref = $this->upgrade_1_22_prefs($content_pref);
|
||||
|
||||
$tmp1 = $eArrayStorage->WriteArray($content_pref);
|
||||
$sqld -> db_Update("pcontent", "content_pref='{$tmp1}' WHERE content_id='$id' ");
|
||||
}else{
|
||||
$upgrade=FALSE;
|
||||
}
|
||||
|
||||
//update menus
|
||||
$plugintable = "pcontent";
|
||||
$plugindir = e_PLUGIN."content/";
|
||||
if(!is_object($aa)){
|
||||
require_once($plugindir."handlers/content_class.php");
|
||||
$aa = new content;
|
||||
}
|
||||
if($row['content_parent']==0){
|
||||
//remove menu
|
||||
@unlink(e_PLUGIN."content/menus/content_".$row['content_heading']."_menu.php");
|
||||
//create menu
|
||||
$aa -> CreateParentMenu($id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($upgrade===TRUE){
|
||||
return CONTENT_ADMIN_CONVERSION_LAN_66."<br />";
|
||||
}
|
||||
}
|
||||
|
||||
//add new preferences that come with this upgrade
|
||||
function upgrade_1_22_prefs($content_pref){
|
||||
|
||||
//create : item page
|
||||
$content_pref['content_admin_subheading'] = '1';
|
||||
$content_pref['content_admin_summary'] = '1';
|
||||
$content_pref['content_admin_startdate'] = '1';
|
||||
$content_pref['content_admin_enddate'] = '1';
|
||||
|
||||
//create : category page
|
||||
$content_pref['content_admincat_subheading'] = '1';
|
||||
$content_pref['content_admincat_comment'] = '1';
|
||||
$content_pref['content_admincat_rating'] = '1';
|
||||
$content_pref['content_admincat_pe'] = '1';
|
||||
$content_pref['content_admincat_visibility'] = '1';
|
||||
$content_pref['content_admincat_startdate'] = '1';
|
||||
$content_pref['content_admincat_enddate'] = '1';
|
||||
$content_pref['content_admincat_uploadicon'] = '1';
|
||||
$content_pref['content_admincat_selecticon'] = '1';
|
||||
|
||||
//create : submit page
|
||||
$content_pref['content_submit_subheading'] = '1';
|
||||
$content_pref['content_submit_summary'] = '1';
|
||||
$content_pref['content_submit_startdate'] = '1';
|
||||
$content_pref['content_submit_enddate'] = '1';
|
||||
|
||||
//content manager
|
||||
$content_pref['content_manager_approve'] = '255';
|
||||
$content_pref['content_manager_personal'] = '255';
|
||||
$content_pref['content_manager_category'] = '255';
|
||||
|
||||
return $content_pref;
|
||||
}
|
||||
|
||||
|
||||
//update preferences storage method
|
||||
function upgrade_1_23(){
|
||||
global $sql, $sql2, $eArrayStorage, $tp, $aa;
|
||||
|
||||
$upgrade = TRUE;
|
||||
|
||||
$sqlc = new db;
|
||||
$sqld = new db;
|
||||
//add new preferences in core
|
||||
if($sqlc -> db_Select("core", "*", "e107_name='pcontent' ")){
|
||||
$row = $sqlc -> db_Fetch();
|
||||
|
||||
$content_pref = $eArrayStorage->ReadArray($row['e107_value']);
|
||||
|
||||
//add new options to the preferences
|
||||
if(!isset($content_pref['content_admin_subheading'])){
|
||||
$content_pref = $this->upgrade_1_23_prefs($content_pref);
|
||||
|
||||
$tmp1 = $eArrayStorage->WriteArray($content_pref);
|
||||
$sqld -> db_Update("core", "e107_value = '{$tmp1}' WHERE e107_name = 'pcontent' ");
|
||||
}else{
|
||||
$upgrade=FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
//add new preferences for each main parent
|
||||
if($sqlc -> db_Select("pcontent", "content_id, content_heading, content_pref", "content_parent = '0' ")){
|
||||
while($row=$sqlc->db_Fetch()){
|
||||
|
||||
$id = $row['content_id'];
|
||||
$content_pref = $eArrayStorage->ReadArray($row['content_pref']);
|
||||
|
||||
if(!isset($content_pref['content_admin_subheading'])){
|
||||
//add new options to the preferences
|
||||
$content_pref = $this->upgrade_1_23_prefs($content_pref);
|
||||
|
||||
$tmp1 = $eArrayStorage->WriteArray($content_pref);
|
||||
$sqld -> db_Update("pcontent", "content_pref='{$tmp1}' WHERE content_id='$id' ");
|
||||
}else{
|
||||
$upgrade=FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($upgrade===TRUE){
|
||||
return CONTENT_ADMIN_CONVERSION_LAN_67."<br />";
|
||||
}
|
||||
}
|
||||
//add new preferences that come with this upgrade
|
||||
function upgrade_1_23_prefs($content_pref){
|
||||
|
||||
$content_pref['content_list_caption'] = CONTENT_LAN_23; //caption for recent list
|
||||
$content_pref['content_list_caption_append_name'] = '1'; //append category heading to caption
|
||||
$content_pref['content_catall_caption'] = CONTENT_LAN_25; //caption for all categories page
|
||||
$content_pref['content_cat_caption'] = CONTENT_LAN_26; //caption for single category page
|
||||
$content_pref['content_cat_caption_append_name'] = '1'; //append category heading to caption
|
||||
$content_pref['content_cat_sub_caption'] = CONTENT_LAN_28; //caption for subcategories
|
||||
$content_pref['content_cat_item_caption'] = CONTENT_LAN_31; //caption for items in category
|
||||
$content_pref['content_author_index_caption'] = CONTENT_LAN_32; //caption for author index page
|
||||
$content_pref['content_author_caption'] = CONTENT_LAN_32; //caption for single author page
|
||||
$content_pref['content_author_caption_append_name'] = '1'; //append author name to caption
|
||||
$content_pref['content_archive_caption'] = CONTENT_LAN_84; //caption for archive page
|
||||
$content_pref['content_top_icon_width'] = ''; //use this size for icon
|
||||
$content_pref['content_top_caption'] = CONTENT_LAN_38; //caption for top rated page
|
||||
$content_pref['content_top_caption_append_name'] = '1'; //append category heading to caption
|
||||
$content_pref['content_score_icon_width'] = ''; //use this size for icon
|
||||
$content_pref['content_score_caption'] = CONTENT_LAN_87; //caption for top score page
|
||||
$content_pref['content_score_caption_append_name'] = '1'; //append category heading to caption
|
||||
|
||||
return $content_pref;
|
||||
}
|
||||
|
||||
//update custom theme
|
||||
function upgrade_1_24(){
|
||||
global $sql, $sql2, $eArrayStorage, $tp, $aa;
|
||||
|
||||
$upgrade = TRUE;
|
||||
|
||||
$sqlc = new db;
|
||||
$sqld = new db;
|
||||
//add new preferences in core
|
||||
if($sqlc -> db_Select("core", "*", "e107_name='pcontent' ")){
|
||||
$row = $sqlc -> db_Fetch();
|
||||
|
||||
$content_pref = $eArrayStorage->ReadArray($row['e107_value']);
|
||||
|
||||
//update theme
|
||||
if(strpos($content_pref['content_theme'], "{e_")!==FALSE){
|
||||
}else{
|
||||
$content_pref['content_theme'] = "{e_PLUGIN}content/templates/".$content_pref['content_theme']."/";
|
||||
}
|
||||
|
||||
$tmp1 = $eArrayStorage->WriteArray($content_pref);
|
||||
$sqld -> db_Update("core", "e107_value = '{$tmp1}' WHERE e107_name = 'pcontent' ");
|
||||
}
|
||||
|
||||
//add new preferences for each main parent
|
||||
if($sqlc -> db_Select("pcontent", "content_id, content_heading, content_pref", "content_parent = '0' ")){
|
||||
while($row=$sqlc->db_Fetch()){
|
||||
|
||||
$id = $row['content_id'];
|
||||
$content_pref = $eArrayStorage->ReadArray($row['content_pref']);
|
||||
|
||||
//update theme
|
||||
if(strpos($content_pref['content_theme'], "{e_")!==FALSE){
|
||||
}else{
|
||||
$content_pref['content_theme'] = "{e_PLUGIN}content/templates/".$content_pref['content_theme']."/";
|
||||
}
|
||||
|
||||
$tmp1 = $eArrayStorage->WriteArray($content_pref);
|
||||
$sqld -> db_Update("pcontent", "content_pref='{$tmp1}' WHERE content_id='$id' ");
|
||||
}
|
||||
}
|
||||
return CONTENT_ADMIN_CONVERSION_LAN_68."<br />";
|
||||
}
|
||||
|
||||
//convert rows
|
||||
function upgrade_1_1(){
|
||||
global $sql, $sql2, $tp, $plugintable, $eArrayStorage;
|
||||
$plugintable = "pcontent";
|
||||
|
||||
$count = "0";
|
||||
$sql = new db;
|
||||
$thiscount = $sql -> db_Select("pcontent", "*", "ORDER BY content_id ", "mode=no_where" );
|
||||
if($thiscount > 0){
|
||||
while($row = $sql -> db_Fetch()){
|
||||
|
||||
//main parent
|
||||
if($row['content_parent'] == "0"){
|
||||
$newparent = "0";
|
||||
|
||||
//subcat
|
||||
}elseif(substr($row['content_parent'],0,2) == "0."){
|
||||
$newparent = "0".strrchr($row['content_parent'], ".");
|
||||
|
||||
//item
|
||||
}elseif( strpos($row['content_parent'], ".") && substr($row['content_parent'],0,1) != "0"){
|
||||
$newparent = substr(strrchr($row['content_parent'], "."),1);
|
||||
}
|
||||
|
||||
$sql2 -> db_Update("pcontent", " content_parent = '".$newparent."', content_pref='' WHERE content_id='".$row['content_id']."' ");
|
||||
}
|
||||
}
|
||||
return CONTENT_ADMIN_CONVERSION_LAN_58."<br /><br />".CONTENT_ADMIN_CONVERSION_LAN_46."<br />";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function show_main_intro(){
|
||||
global $sql, $ns, $rs, $type, $type_id, $action, $sub_action, $id, $plugintable;
|
||||
$plugintable = "pcontent";
|
||||
|
||||
if(!is_object($sql)){ $sql = new db; }
|
||||
$newcontent = $sql -> db_Count($plugintable, "(*)", "");
|
||||
if($newcontent > 0){
|
||||
return false;
|
||||
}else{
|
||||
|
||||
$text .= "
|
||||
<div style='text-align:center'>
|
||||
<div style='width:70%; text-align:left'>
|
||||
".$rs -> form_open("post", e_SELF, "dataform")."
|
||||
<table class='fborder'>";
|
||||
|
||||
$oldcontent = $sql -> db_Count("content", "(*)", "");
|
||||
if($oldcontent > 0){
|
||||
$text .= "<tr><td class='forumheader3' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_8." ".CONTENT_ADMIN_MAIN_LAN_9." ".CONTENT_ADMIN_MAIN_LAN_11."</td></tr>";
|
||||
|
||||
$text .= "<tr><td style='height:20px; border:0;' colspan='2'></td></tr>";
|
||||
$text .= "<tr><td class='fcaption' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_18."</td></tr>";
|
||||
$text .= "<tr><td class='forumheader3' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_19."</td></tr>";
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:50%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_43."</td>
|
||||
<td class='forumheader3' style='width:50%; white-space:nowrap;'>".$rs -> form_button("submit", "convert_table", CONTENT_ADMIN_CONVERSION_LAN_59)."</td>
|
||||
</tr>";
|
||||
|
||||
$text .= "<tr><td style='height:20px; border:0;' colspan='2'></td></tr>";
|
||||
$text .= "<tr><td class='fcaption' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_22."</td></tr>";
|
||||
$text .= "<tr><td class='forumheader3' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_23."</td></tr>";
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:50%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_54."</td>
|
||||
<td class='forumheader3' style='width:50%; white-space:nowrap;'>".$rs -> form_button("submit", "create_default", CONTENT_ADMIN_CONVERSION_LAN_60)."</td>
|
||||
</tr>";
|
||||
|
||||
$text .= "<tr><td style='height:20px; border:0;' colspan='2'></td></tr>";
|
||||
$text .= "<tr><td class='fcaption' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_20."</td></tr>";
|
||||
$text .= "<tr><td class='forumheader3' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_21."</td></tr>";
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:50%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_56."</td>
|
||||
<td class='forumheader3' style='width:50%; white-space:nowrap;'>".$rs -> form_button("button", "fresh", CONTENT_ADMIN_CONVERSION_LAN_61, "onclick=\"document.location='".e_PLUGIN."content/admin_content_config.php?type.0.cat.create'\"
|
||||
")."</td>
|
||||
</tr>";
|
||||
|
||||
}else{
|
||||
$text .= "<tr><td class='fcaption' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_8." ".CONTENT_ADMIN_MAIN_LAN_9." ".CONTENT_ADMIN_MAIN_LAN_24."</td></tr>";
|
||||
$text .= "<tr><td class='forumheader3' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_25."</td></tr>";
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:50%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_54."</td>
|
||||
<td class='forumheader3' style='width:50%; white-space:nowrap;'>".$rs -> form_button("submit", "create_default", CONTENT_ADMIN_CONVERSION_LAN_60)."</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
$text .= "</table>".$rs -> form_close()."
|
||||
</div>
|
||||
</div>";
|
||||
|
||||
$ns -> tablerender(CONTENT_ADMIN_MAIN_LAN_7, $text);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
//function to insert default preferences for a main parent
|
||||
function insert_default_prefs($id){
|
||||
global $sql, $aa, $plugintable, $eArrayStorage;
|
||||
$plugintable = "pcontent";
|
||||
$plugindir = e_PLUGIN."content/";
|
||||
unset($content_pref, $tmp);
|
||||
|
||||
if(!is_object($aa)){
|
||||
require_once($plugindir."handlers/content_class.php");
|
||||
$aa = new content;
|
||||
}
|
||||
|
||||
$content_pref = $aa -> ContentDefaultPrefs($id);
|
||||
$tmp = $eArrayStorage->WriteArray($content_pref);
|
||||
|
||||
$sql -> db_Update($plugintable, "content_pref='$tmp' WHERE content_id='$id' ");
|
||||
}
|
||||
|
||||
|
||||
//function to convert comments
|
||||
function convert_comments(){
|
||||
global $plugintable;
|
||||
$plugintable = "pcontent";
|
||||
|
||||
if(!is_object($sqlcc)){ $sqlcc = new db; }
|
||||
$numc = $sqlcc -> db_Count("comments", "(*)", "WHERE comment_type = '1' ");
|
||||
if($numc > 0){
|
||||
$sqlcc -> db_Update("comments", "comment_type = '".$plugintable."' WHERE comment_type = '1' ");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//function to convert rating
|
||||
function convert_rating(){
|
||||
global $plugintable;
|
||||
$plugintable = "pcontent";
|
||||
|
||||
if(!is_object($sqlcr)){ $sqlcr = new db; }
|
||||
$numr = $sqlcr -> db_Count("rate", "(*)", "WHERE (rate_table = 'article' || rate_table = 'review' || rate_table = 'content') ");
|
||||
if($numr > 0){
|
||||
$sqlcr -> db_Update("rate", "rate_table = '".$plugintable."' WHERE (rate_table = 'article' || rate_table = 'review' || rate_table = 'content') ");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//create main parent
|
||||
function create_mainparent($name, $tot, $order){
|
||||
global $sql, $aa, $plugintable, $tp;
|
||||
$plugintable = "pcontent";
|
||||
|
||||
$sql = new db;
|
||||
$sql -> db_Select("content", "MAX(content_id) as maxcid", "", "mode=no_where");
|
||||
list($maxcid) = $sql -> db_Fetch();
|
||||
$newid = $maxcid + $order;
|
||||
|
||||
// ##### STAGE 4 : INSERT MAIN PARENT FOR ARTICLE ---------------------------------------------
|
||||
$checkinsert = FALSE;
|
||||
if($tot > 0){
|
||||
//if(!is_object($sql)){ $sql = new db; }
|
||||
$sql = new db;
|
||||
if(!$sql -> db_Select($plugintable, "content_heading", "content_heading = '".$name."' AND content_parent = '0' ")){
|
||||
$name = $tp -> toDB($name);
|
||||
|
||||
$sql -> db_Insert($plugintable, "'".$newid."', '".$name."', '', '', '', '1', '', '', '', '0', '0', '0', '0', '', '".time()."', '0', '0', '', '".$order."', '0', '', '' ");
|
||||
|
||||
//check if row is present in the db (is it a valid insert)
|
||||
//if(!is_object($sql2)){ $sql2 = new db; }
|
||||
$sql2 = new db;
|
||||
if(!$sql2 -> db_Select($plugintable, "content_id", "content_heading = '".$name."' ")){
|
||||
$message = CONTENT_ADMIN_CONVERSION_LAN_45;
|
||||
}else{
|
||||
$message = $name." ".CONTENT_ADMIN_CONVERSION_LAN_7."<br />";
|
||||
$checkinsert = TRUE;
|
||||
|
||||
//select main parent id
|
||||
$sql3 = new db;
|
||||
//if(!is_object($sql3)){ $sql3 = new db; }
|
||||
$sql3 -> db_Select($plugintable, "content_id", "content_heading = '".$name."' AND content_parent = '0' ");
|
||||
list($main_id) = $sql3 -> db_Fetch();
|
||||
|
||||
//insert default preferences
|
||||
$this -> insert_default_prefs($main_id);
|
||||
|
||||
//create menu
|
||||
$aa -> CreateParentMenu($main_id);
|
||||
|
||||
$message .= $name." ".CONTENT_ADMIN_CONVERSION_LAN_8."<br />";
|
||||
}
|
||||
}else{
|
||||
$message = CONTENT_ADMIN_CONVERSION_LAN_9." ".$name." ".CONTENT_ADMIN_CONVERSION_LAN_10." : ".CONTENT_ADMIN_CONVERSION_LAN_53."<br />";
|
||||
}
|
||||
}else{
|
||||
$message = CONTENT_ADMIN_CONVERSION_LAN_9." ".$name." ".CONTENT_ADMIN_CONVERSION_LAN_10."<br />";
|
||||
}
|
||||
$create_mainparent = array($checkinsert, $message);
|
||||
return $create_mainparent;
|
||||
}
|
||||
|
||||
|
||||
//analayse unknown rows
|
||||
function analyse_unknown(){
|
||||
global $sql;
|
||||
|
||||
if(!is_object($sql)){ $sql = new db; }
|
||||
$totaloldrowsunknown = $sql -> db_Select("content", "*", " NOT ( (content_parent = '1' AND content_type = '1') || (content_parent = '0' AND content_type = '1') || (content_parent = '0' AND content_type = '6') || (content_parent = '0' AND content_type = '10') || (content_type = '3' || content_type = '16') || (content_type = '0' || content_type = '15') ) ");
|
||||
|
||||
while($row = $sql -> db_Fetch()){
|
||||
$unknown_bug[] = $row['content_id']." ".$row['content_heading'];
|
||||
$unknown_bug_id[] = $row['content_id'];
|
||||
$unknown_bug_type[] = "parent=".$row['content_parent']." - type=".$row['content_type'];
|
||||
}
|
||||
$analyse_unknown = array($unknown_bug, $unknown_bug_id);
|
||||
return $analyse_unknown;
|
||||
}
|
||||
|
||||
|
||||
//convert categories
|
||||
function convert_category($name, $query, $ordernr){
|
||||
global $sql, $plugintable, $tp;
|
||||
$plugintable = "pcontent";
|
||||
|
||||
// ##### STAGE 7 : INSERT CATEGORY ----------------------------------------------------
|
||||
if(!is_object($sql)){ $sql = new db; }
|
||||
if(!$sql -> db_Select("content", "*", " ".$query." ORDER BY content_id " )){
|
||||
$cat_present = false;
|
||||
}else{
|
||||
$count = $ordernr;
|
||||
$cat_present = true;
|
||||
while($row = $sql -> db_Fetch()){
|
||||
|
||||
//select main parent id
|
||||
if(!is_object($sql2)){ $sql2 = new db; }
|
||||
$sql2 -> db_Select($plugintable, "content_id", "content_heading = '".$name."' AND content_parent = '0' ");
|
||||
list($main_id) = $sql2 -> db_Fetch();
|
||||
|
||||
//summary can contain link to image in e107_images/link_icons/".$summary." THIS STILL NEEDS TO BE CHECKED
|
||||
$newcontent_heading = $tp -> toDB($row['content_heading']);
|
||||
$newcontent_subheading = ($row['content_subheading'] ? $tp -> toDB($row['content_subheading']) : "");
|
||||
$newcontent_summary = ($row['content_summary'] ? $tp -> toDB($row['content_summary']) : "");
|
||||
$newcontent_text = $tp -> toDB($row['content_content']);
|
||||
$newcontent_author = (is_numeric($row['content_author']) ? $row['content_author'] : "0^".$row['content_author']);
|
||||
$newcontent_icon = "";
|
||||
$newcontent_attach = "";
|
||||
$newcontent_images = "";
|
||||
$newcontent_parent = "0.".$main_id; //make each category a first level subcat of the main parent
|
||||
$newcontent_comment = $row['content_comment'];
|
||||
$newcontent_rate = "0";
|
||||
$newcontent_pe = $row['content_pe_icon'];
|
||||
$newcontent_refer = "";
|
||||
$newcontent_starttime = $row['content_datestamp'];
|
||||
$newcontent_endtime = "0";
|
||||
$newcontent_class = $row['content_class'];
|
||||
$newcontent_pref = "";
|
||||
$newcontent_score = "0";
|
||||
$newcontent_meta = "";
|
||||
$newcontent_layout = "";
|
||||
|
||||
if(!is_object($sql3)){ $sql3 = new db; }
|
||||
$sql3 -> db_Insert($plugintable, "'".$row['content_id']."', '".$newcontent_heading."', '".$newcontent_subheading."', '".$newcontent_summary."', '".$newcontent_text."', '".$newcontent_author."', '".$newcontent_icon."', '".$newcontent_attach."', '".$newcontent_images."', '".$newcontent_parent."', '".$newcontent_comment."', '".$newcontent_rate."', '".$newcontent_pe."', '".$newcontent_refer."', '".$newcontent_starttime."', '".$newcontent_endtime."', '".$newcontent_class."', '".$newcontent_pref."', '".$count."', '".$newcontent_score."', '".$newcontent_meta."', '".$newcontent_layout."' ");
|
||||
|
||||
if(!$sql3 -> db_Select($plugintable, "content_id, content_heading", "content_heading = '".$newcontent_heading."' ")){
|
||||
$bug_cat_insert[] = $row['content_id']." ".$row['content_heading'];
|
||||
}else{
|
||||
$valid_cat_insert[] = $row['content_id']." ".$row['content_heading'];
|
||||
$count = $count + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
$convert_category = array($cat_present, $valid_cat_insert, $bug_cat_insert, $count);
|
||||
return $convert_category;
|
||||
}
|
||||
|
||||
|
||||
//convert rows
|
||||
function convert_row($name, $query, $startorder){
|
||||
global $sql, $tp, $plugintable, $eArrayStorage;
|
||||
$plugintable = "pcontent";
|
||||
|
||||
// ##### STAGE 8 : INSERT ROW -------------------------------------------------------------
|
||||
if(!is_object($sql)){ $sql = new db; }
|
||||
if(!$thiscount = $sql -> db_Select("content", "*", " ".$query." ORDER BY content_id " )){
|
||||
$check_present = false;
|
||||
}else{
|
||||
$count = $startorder;
|
||||
$check_present = true;
|
||||
while($row = $sql -> db_Fetch()){
|
||||
|
||||
$oldcontentid = $row['content_id'];
|
||||
|
||||
//select main parent id
|
||||
if(!is_object($sql2)){ $sql2 = new db; }
|
||||
$sql2 -> db_Select($plugintable, "content_id", "content_heading = '".$name."' AND content_parent = '0' ");
|
||||
list($main_id) = $sql2 -> db_Fetch();
|
||||
|
||||
//item is in main cat
|
||||
if($row['content_parent'] == "0"){
|
||||
$newcontent_parent = $main_id;
|
||||
|
||||
//item is in sub cat
|
||||
}else{
|
||||
//select old review cat heading
|
||||
if(!is_object($sql3)){ $sql3 = new db; }
|
||||
if(!$sql3 -> db_Select("content", "content_id, content_heading", "content_id = '".$row['content_parent']."' ")){
|
||||
$bug_oldcat[] = $row['content_id']." ".$row['content_heading'];
|
||||
$newcontent_parent = $main_id;
|
||||
}else{
|
||||
list($old_cat_id, $old_cat_heading) = $sql3 -> db_Fetch();
|
||||
|
||||
//select new cat id from the cat with the old_cat_heading
|
||||
if(!is_object($sql4)){ $sql4 = new db; }
|
||||
if(!$sql4 -> db_Select($plugintable, "content_id", "content_heading = '".$old_cat_heading."' AND content_parent = '0.".$main_id."' ")){
|
||||
$bug_newcat[] = $row['content_id']." ".$row['content_heading'];
|
||||
$newcontent_parent = $main_id;
|
||||
}else{
|
||||
list($new_cat_id) = $sql4 -> db_Fetch();
|
||||
$newcontent_parent = $new_cat_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (strstr($row['content_content'], "{EMAILPRINT}")) {
|
||||
$row['content_content'] = str_replace("{EMAILPRINT}", "", $row['content_content']);
|
||||
}
|
||||
|
||||
$newcontent_heading = $tp -> toDB($row['content_heading']);
|
||||
$newcontent_subheading = ($row['content_subheading'] ? $tp -> toDB($row['content_subheading']) : "");
|
||||
//summary can contain link to image in e107_images/link_icons/".$summary." THIS STILL NEEDS TO BE CHECKED
|
||||
$newcontent_summary = ($row['content_summary'] ? $tp -> toDB($row['content_summary']) : "");
|
||||
$newcontent_text = $tp -> toDB($row['content_content']);
|
||||
//$newcontent_author = (is_numeric($row['content_author']) ? $row['content_author'] : "0^".$row['content_author']);
|
||||
$newcontent_author = $row['content_author'];
|
||||
$newcontent_icon = "";
|
||||
$newcontent_attach = "";
|
||||
$newcontent_images = "";
|
||||
$newcontent_comment = $row['content_comment'];
|
||||
$newcontent_rate = "0";
|
||||
$newcontent_pe = $row['content_pe_icon'];
|
||||
$newcontent_refer = ($row['content_type'] == "15" || $row['content_type'] == "16" ? "sa" : "");
|
||||
$newcontent_starttime = $row['content_datestamp'];
|
||||
$newcontent_endtime = "0";
|
||||
$newcontent_class = $row['content_class'];
|
||||
$newcontent_pref = "";
|
||||
$newcontent_score = ($row['content_review_score'] && $row['content_review_score'] != "none" ? $row['content_review_score'] : "0");
|
||||
$newcontent_meta = "";
|
||||
$newcontent_layout = "";
|
||||
|
||||
if(!is_object($sql5)){ $sql5 = new db; }
|
||||
$sql5 -> db_Insert($plugintable, "'".$row['content_id']."', '".$newcontent_heading."', '".$newcontent_subheading."', '".$newcontent_summary."', '".$newcontent_text."', '".$newcontent_author."', '".$newcontent_icon."', '".$newcontent_attach."', '".$newcontent_images."', '".$newcontent_parent."', '".$newcontent_comment."', '".$newcontent_rate."', '".$newcontent_pe."', '".$newcontent_refer."', '".$newcontent_starttime."', '".$newcontent_endtime."', '".$newcontent_class."', '".$newcontent_pref."', '1.".$count."', '".$newcontent_score."', '".$newcontent_meta."', '".$newcontent_layout."' ");
|
||||
|
||||
if(!is_object($sql6)){ $sql6 = new db; }
|
||||
if(!$sql6 -> db_Select($plugintable, "content_id, content_heading", "content_heading = '".$newcontent_heading."' ")){
|
||||
$bug_insert[] = $row['content_id']." ".$row['content_heading'];
|
||||
}else{
|
||||
$valid_insert[] = $row['content_id']." ".$row['content_heading'];
|
||||
$count = $count + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
$convert_row = array($check_present, $count, $valid_insert, $bug_insert, $bug_oldcat, $bug_newcat);
|
||||
return $convert_row;
|
||||
}
|
||||
|
||||
|
||||
//show output of the category conversion
|
||||
function results_conversion_category($name, $array, $oldrows){
|
||||
|
||||
//no pages present
|
||||
if($array[0] === false){
|
||||
if( !(count($array[1]) > 0 || count($array[2]) > 0) ){
|
||||
$text .= "<tr><td class='forumheader' colspan='2'>".CONTENT_ADMIN_CONVERSION_LAN_34." ".$name." ".CONTENT_ADMIN_CONVERSION_LAN_35."</td></tr>";
|
||||
}
|
||||
|
||||
//pages present
|
||||
}else{
|
||||
|
||||
//valid inserts
|
||||
if(count($array[1]) > 0 ){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".CONTENT_ADMIN_CONVERSION_LAN_3." : ".count($array[1])." ".CONTENT_ADMIN_CONVERSION_LAN_38."</td>
|
||||
<td class='forumheader3'><a style='cursor:pointer;' onclick=\"expandit('validcat_{$name}');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='validcat_{$name}' style='display: none;'>
|
||||
<table style='width:100%; border:0;'>";
|
||||
for($i=0;$i<count($array[1]);$i++){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td style='width:25%; white-space:nowrap;'>".CONTENT_ICON_OK." ".$array[1][$i]."</td>
|
||||
<td>".$name." ".CONTENT_ADMIN_CONVERSION_LAN_3." ".CONTENT_ADMIN_CONVERSION_LAN_26."</td>
|
||||
</tr>";
|
||||
}
|
||||
$text .= "
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
//bug inserts
|
||||
if(count($array[2]) > 0 ){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".CONTENT_ADMIN_CONVERSION_LAN_3." : ".count($array[2])." ".CONTENT_ADMIN_CONVERSION_LAN_39."</td>
|
||||
<td class='forumheader3'><a style='cursor:pointer;' onclick=\"expandit('failedcat_{$name}');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='failedcat_{$name}' style='display: none;'>
|
||||
<table style='width:100%; border:0;'>";
|
||||
for($i=0;$i<count($array[2]);$i++){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td style='width:25%; white-space:nowrap;'>".CONTENT_ICON_ERROR." ".$array[2][$i]."</td>
|
||||
<td>".CONTENT_ADMIN_CONVERSION_LAN_23."</td>
|
||||
</tr>";
|
||||
}
|
||||
$text .= "
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".CONTENT_ADMIN_CONVERSION_LAN_3." : ".CONTENT_ADMIN_CONVERSION_LAN_27."</td>
|
||||
<td class='forumheader3'>
|
||||
<a style='cursor: pointer; cursor: hand' onclick=\"expandit('analysecat_{$name}');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='analysecat_{$name}' style='display: none;'>
|
||||
<table style='width:100%; border:0;'>
|
||||
<tr><td style='width:25%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_28."</td><td>".$oldrows."</td></tr>
|
||||
<tr><td style='width:25%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_29."</td><td>".count($array[1])."</td></tr>
|
||||
<tr><td style='width:25%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_30."</td><td>".count($array[2])."</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
||||
//show output of the item conversion
|
||||
function results_conversion_row($name, $array, $oldrows){
|
||||
|
||||
//no rows present
|
||||
if($array[0] === false){
|
||||
$text .= "<tr><td class='forumheader' colspan='2'>".CONTENT_ADMIN_CONVERSION_LAN_34." ".$name." ".CONTENT_ADMIN_CONVERSION_LAN_36."</td></tr>";
|
||||
|
||||
//rows present
|
||||
}else{
|
||||
|
||||
//valid insert
|
||||
if(count($array[2]) > 0 ){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".CONTENT_ADMIN_CONVERSION_LAN_6." : ".count($array[2])." ".CONTENT_ADMIN_CONVERSION_LAN_38."</td>
|
||||
<td class='forumheader3'>
|
||||
<a style='cursor:pointer;' onclick=\"expandit('valid_{$name}');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='valid_{$name}' style='display: none;'>
|
||||
<table style='width:100%; border:0;'>";
|
||||
for($i=0;$i<count($array[2]);$i++){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td style='width:25%; white-space:nowrap;'>".CONTENT_ICON_OK." ".$array[2][$i]."</td>
|
||||
<td>".$name." ".CONTENT_ADMIN_CONVERSION_LAN_6." ".CONTENT_ADMIN_CONVERSION_LAN_26."</td>
|
||||
</tr>";
|
||||
}
|
||||
$text .= "
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
//bugs : old category
|
||||
if(count($array[4]) > 0 ){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".CONTENT_ADMIN_CONVERSION_LAN_6." : ".count($array[4])." ".CONTENT_ADMIN_CONVERSION_LAN_31."</td>
|
||||
<td class='forumheader3'>
|
||||
<a style='cursor:pointer;' onclick=\"expandit('oldcat_{$name}');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='oldcat_{$name}' style='display: none;'>
|
||||
<table style='width:100%; border:0;'>";
|
||||
for($i=0;$i<count($array[4]);$i++){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td style='width:25%; white-space:nowrap;'>".CONTENT_ICON_WARNING." ".$array[4][$i]."</td>
|
||||
<td>".CONTENT_ADMIN_CONVERSION_LAN_32."</td>
|
||||
</tr>";
|
||||
}
|
||||
$text .= "
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
//bugs : new category
|
||||
if(count($array[5]) > 0 ){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".CONTENT_ADMIN_CONVERSION_LAN_6." : ".count($array[5])." ".CONTENT_ADMIN_CONVERSION_LAN_31."</td>
|
||||
<td class='forumheader3'>
|
||||
<a style='cursor:pointer;' onclick=\"expandit('newcat_{$name}');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='newcat_{$name}' style='display: none;'>
|
||||
<table style='width:100%; border:0;'>";
|
||||
for($i=0;$i<count($array[5]);$i++){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td style='width:25%; white-space:nowrap;'>".CONTENT_ICON_WARNING." ".$array[5][$i]."</td>
|
||||
<td>".CONTENT_ADMIN_CONVERSION_LAN_33."</td>
|
||||
</tr>";
|
||||
}
|
||||
$text .= "
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
//bugs : insertion failed
|
||||
if(count($array[3]) > 0 ){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".CONTENT_ADMIN_CONVERSION_LAN_6." : ".count($array[3])." ".CONTENT_ADMIN_CONVERSION_LAN_39."</td>
|
||||
<td class='forumheader3'>
|
||||
<a style='cursor: pointer; cursor: hand' onclick=\"expandit('failed_{$name}');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='failed_{$name}' style='display: none;'>
|
||||
<table style='width:100%; border:0;'>";
|
||||
for($i=0;$i<count($array[3]);$i++){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td style='width:25%; white-space:nowrap;'>".CONTENT_ICON_ERROR." ".$array[3][$i]."</td>
|
||||
<td>".CONTENT_ADMIN_CONVERSION_LAN_23."</td>
|
||||
</tr>";
|
||||
}
|
||||
$text .= "
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
//analyses
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".CONTENT_ADMIN_CONVERSION_LAN_6." : ".CONTENT_ADMIN_CONVERSION_LAN_27."</td>
|
||||
<td class='forumheader3'>
|
||||
<a style='cursor: pointer; cursor: hand' onclick=\"expandit('analyse_{$name}');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='analyse_{$name}' style='display: none;'>
|
||||
<table style='width:100%; border:0;'>
|
||||
<tr><td style='width:25%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_28."</td><td>".$oldrows."</td></tr>
|
||||
<tr><td style='width:25%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_29."</td><td>".count($array[2])."</td></tr>
|
||||
<tr><td style='width:25%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_30."</td><td>".count($array[3])."</td></tr>
|
||||
<tr><td style='width:25%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_31."</td><td>".count($array[4])."</td></tr>
|
||||
<tr><td style='width:25%; white-space:nowrap;'>".CONTENT_ADMIN_CONVERSION_LAN_31."</td><td>".count($array[5])."</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
||||
//show output of the mainparent conversion
|
||||
function results_conversion_mainparent($content, $review, $article){
|
||||
$text = "<tr><td class='fcaption' colspan='2'>".CONTENT_ADMIN_CONVERSION_LAN_50."</td></tr>";
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".($content[0] == "1" ? CONTENT_ICON_OK : CONTENT_ICON_ERROR)." ".CONTENT_ADMIN_CONVERSION_LAN_20."</td>
|
||||
<td class='forumheader3'>
|
||||
<a style='cursor: pointer; cursor: hand' onclick=\"expandit('contentmain');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='contentmain' style='display: none;'>
|
||||
".$content[1]."
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".($review[0] == "1" ? CONTENT_ICON_OK : CONTENT_ICON_ERROR)." ".CONTENT_ADMIN_CONVERSION_LAN_21."</td>
|
||||
<td class='forumheader3'>
|
||||
<a style='cursor: pointer; cursor: hand' onclick=\"expandit('reviewmain');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='reviewmain' style='display: none;'>
|
||||
".$review[1]."
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; vertical-align:top;'>".($article[0] == "1" ? CONTENT_ICON_OK : CONTENT_ICON_ERROR)." ".CONTENT_ADMIN_CONVERSION_LAN_22."</td>
|
||||
<td class='forumheader3'>
|
||||
<a style='cursor: pointer; cursor: hand' onclick=\"expandit('articlemain');\">".CONTENT_ADMIN_CONVERSION_LAN_48."</a>
|
||||
<div id='articlemain' style='display: none;'>
|
||||
".$article[1]."
|
||||
</div>
|
||||
</td>
|
||||
</tr>";
|
||||
|
||||
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
@@ -1,556 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_db_class.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
if (!defined('ADMIN_WIDTH')) { define("ADMIN_WIDTH", "width:98%;"); }
|
||||
|
||||
$plugindir = e_PLUGIN."content/";
|
||||
$plugintable = "pcontent"; //name of the table used in this plugin (never remove this, as it's being used throughout the plugin !!)
|
||||
$datequery = " AND content_datestamp < ".time()." AND (content_enddate=0 || content_enddate>".time().") ";
|
||||
|
||||
//icon, file, image upload
|
||||
if(isset($_POST['uploadfile']))
|
||||
{
|
||||
if($_POST['uploadtype'])
|
||||
{
|
||||
$pref['upload_storagetype'] = "1";
|
||||
require_once(e_HANDLER."upload_handler.php");
|
||||
$mainparent = $aa -> getMainParent(intval($_POST['parent1']));
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
|
||||
if($_POST['content_id']){
|
||||
$newpid = $_POST['content_id'];
|
||||
}else{
|
||||
$sql -> db_select("pcontent", "MAX(content_id) as aid", "content_id!='0' ");
|
||||
list($aid) = $sql -> db_Fetch();
|
||||
$newpid = $aid+1;
|
||||
}
|
||||
}
|
||||
|
||||
//icon
|
||||
if($_POST['uploadtype'] == "1")
|
||||
{
|
||||
$pref['upload_storagetype'] = "1";
|
||||
$pathtmp = $_POST['tmppathicon'];
|
||||
$uploaded = file_upload($pathtmp);
|
||||
$new = "";
|
||||
if($uploaded){
|
||||
$uporg = $uploaded[0]['name'];
|
||||
$resize = varsettrue($content_pref["content_upload_icon_size"],"100");
|
||||
if($uporg){
|
||||
$new = $newpid."_".$uporg;
|
||||
rename($pathtmp.$uporg, $pathtmp.$new);
|
||||
require_once(e_HANDLER."resize_handler.php");
|
||||
resize_image($pathtmp.$new, $pathtmp.$new, $resize, "nocopy");
|
||||
}
|
||||
}
|
||||
$message = ($new ? CONTENT_ADMIN_ITEM_LAN_106 : CONTENT_ADMIN_ITEM_LAN_107);
|
||||
|
||||
//file
|
||||
}
|
||||
elseif($_POST['uploadtype'] == "2")
|
||||
{
|
||||
$pref['upload_storagetype'] = "1";
|
||||
$pathtmp = $_POST['tmppathfile'];
|
||||
$uploaded = file_upload($pathtmp);
|
||||
$new = "";
|
||||
if($uploaded){
|
||||
$uporg = $uploaded[0]['name'];
|
||||
if($uporg){
|
||||
$new = $newpid."_".$uporg;
|
||||
rename($pathtmp.$uporg, $pathtmp.$new);
|
||||
}
|
||||
}
|
||||
$message = ($new ? CONTENT_ADMIN_ITEM_LAN_108 : CONTENT_ADMIN_ITEM_LAN_109);
|
||||
|
||||
//image
|
||||
}
|
||||
elseif($_POST['uploadtype'] == "3")
|
||||
{
|
||||
$pref['upload_storagetype'] = "1";
|
||||
$pathtmp = $_POST['tmppathimage'];
|
||||
$uploaded = file_upload($pathtmp);
|
||||
$new = "";
|
||||
if($uploaded){
|
||||
$uporg = $uploaded[0]['name'];
|
||||
$resize = varsettrue($content_pref["content_upload_image_size"],"500");
|
||||
$resizethumb = varsettrue($content_pref["content_upload_image_size_thumb"],"100");
|
||||
if($uporg){
|
||||
$new = $newpid."_".$uporg;
|
||||
rename($pathtmp.$uporg, $pathtmp.$new);
|
||||
require_once(e_HANDLER."resize_handler.php");
|
||||
resize_image($pathtmp.$new, $pathtmp.$new, $resizethumb, "copy");
|
||||
resize_image($pathtmp.$new, $pathtmp.$new, $resize, "nocopy");
|
||||
}
|
||||
}
|
||||
$message = ($new ? CONTENT_ADMIN_ITEM_LAN_110 : CONTENT_ADMIN_ITEM_LAN_111);
|
||||
}
|
||||
}
|
||||
|
||||
class contentdb{
|
||||
|
||||
//function dbContent: create/update a content item
|
||||
//$mode : create or update
|
||||
//$type : none(=admin), submit, contentmanager
|
||||
function dbContent($mode, $type){
|
||||
global $pref, $qs, $sql, $ns, $rs, $aa, $tp, $plugintable, $e107cache, $eArrayStorage, $e_event;
|
||||
|
||||
$_POST['content_heading'] = $tp -> toDB(trim($_POST['content_heading']));
|
||||
$_POST['content_subheading'] = $tp -> toDB($_POST['content_subheading']);
|
||||
$_POST['content_summary'] = $tp -> toDB($_POST['content_summary']);
|
||||
|
||||
if(e_WYSIWYG)
|
||||
{
|
||||
$_POST['content_text'] = $tp->createConstants($_POST['content_text']); // convert e107_images/ to {e_IMAGE} etc.
|
||||
}
|
||||
//the problem with tiny_mce is it's storing e_HTTP with an image path, while it should only use the {e_xxx} variables
|
||||
//this small check resolves this, and stores the paths correctly
|
||||
if(strstr($_POST['content_text'],e_HTTP."{e_")){
|
||||
$_POST['content_text'] = str_replace(e_HTTP."{e_", "{e_", $_POST['content_text']);
|
||||
}
|
||||
$_POST['content_text'] = $tp -> toDB($_POST['content_text']);
|
||||
$_POST['content_class'] = ($_POST['content_class'] ? intval($_POST['content_class']) : "0");
|
||||
$_POST['content_meta'] = $tp -> toDB($_POST['content_meta']);
|
||||
|
||||
//content create
|
||||
if( isset($qs[0]) && $qs[0]=='content' && isset($qs[1]) && ($qs[1]=='create' || $qs[1]=='submit') && isset($qs[2]) && is_numeric($qs[2]) )
|
||||
{
|
||||
$parent = intval($_POST['parent1']);
|
||||
|
||||
//content edit
|
||||
}elseif( isset($qs[0]) && $qs[0]=='content' && isset($qs[1]) && ($qs[1]=='edit' || $qs[1]=='sa') && isset($qs[2]) && is_numeric($qs[2]) ){
|
||||
if( isset($_POST['parent1']) && strpos($_POST['parent1'], ".") ){
|
||||
$tmp = explode(".", $_POST['parent1']);
|
||||
$parent = $tmp[1];
|
||||
}else{
|
||||
$parent = $_POST['parent1'];
|
||||
}
|
||||
}
|
||||
$_POST['parent'] = $parent;
|
||||
|
||||
if(USER)
|
||||
{
|
||||
if($_POST['content_author_id'])
|
||||
{
|
||||
if(!($_POST['content_author_id'] == USERID && $_POST['content_author_name'] == USERNAME && $_POST['content_author_email'] == USEREMAIL) )
|
||||
{
|
||||
$author = $_POST['content_author_id'];
|
||||
|
||||
if ($_POST['content_author_name'] != CONTENT_ADMIN_ITEM_LAN_14)
|
||||
{
|
||||
$author .= "^".$_POST['content_author_name'];
|
||||
}
|
||||
if ($_POST['content_author_email'] != CONTENT_ADMIN_ITEM_LAN_15)
|
||||
{
|
||||
$author .= "^".$_POST['content_author_email'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$author = $_POST['content_author_id'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$author = $_POST['content_author_name'];
|
||||
if($_POST['content_author_email'] != "" && $_POST['content_author_email'] != CONTENT_ADMIN_ITEM_LAN_15)
|
||||
{
|
||||
$author .= "^".$_POST['content_author_email'];
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{ // Non-user posting content
|
||||
if ($type != 'submit')
|
||||
{ // Naughty!
|
||||
header("location:".$plugindir."content.php"); // but be kind
|
||||
exit;
|
||||
}
|
||||
$author = $_POST['content_author_name'];
|
||||
if($_POST['content_author_email'] != "" && $_POST['content_author_email'] != CONTENT_ADMIN_ITEM_LAN_15)
|
||||
{
|
||||
$author .= "^".$_POST['content_author_email'];
|
||||
}
|
||||
}
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($_POST['parent']));
|
||||
$content_pref = $aa -> getContentPref($mainparent, true);
|
||||
|
||||
//move icon to correct folder
|
||||
if($_POST['content_icon']){
|
||||
$icon = $tp->toDB($_POST['content_icon']);
|
||||
if($icon && is_readable($content_pref['content_icon_path_tmp'].$icon)){
|
||||
rename($content_pref['content_icon_path_tmp'].$icon, $content_pref['content_icon_path'].$icon);
|
||||
}
|
||||
}
|
||||
|
||||
$sumf = 0;
|
||||
$sumi = 0;
|
||||
foreach($_POST as $k => $v){
|
||||
if(strpos($k, "content_files") === 0){
|
||||
$sumf = $sumf+1;
|
||||
}
|
||||
if(strpos($k, "content_images") === 0){
|
||||
$sumi = $sumi+1;
|
||||
}
|
||||
}
|
||||
//move attachments to correct folder
|
||||
$totalattach = "";
|
||||
for($i=0;$i<$sumf;$i++){
|
||||
$attach{$i} = $tp->toDB($_POST["content_files{$i}"]);
|
||||
if($attach{$i} && is_readable($content_pref['content_file_path_tmp'].$attach{$i})){
|
||||
rename($content_pref['content_file_path_tmp'].$attach{$i}, $content_pref['content_file_path'].$attach{$i});
|
||||
}
|
||||
if($attach{$i} && is_readable($content_pref['content_file_path'].$attach{$i})){
|
||||
$totalattach .= "[file]".$attach{$i};
|
||||
}
|
||||
}
|
||||
//move images to correct folder
|
||||
$totalimages = "";
|
||||
for($i=0;$i<$sumi;$i++){
|
||||
$image{$i} = $tp->toDB($_POST["content_images{$i}"]);
|
||||
if($image{$i} && is_readable($content_pref['content_image_path_tmp'].$image{$i})){
|
||||
rename($content_pref['content_image_path_tmp'].$image{$i}, $content_pref['content_image_path'].$image{$i});
|
||||
}
|
||||
if($image{$i} && is_readable($content_pref['content_image_path_tmp']."thumb_".$image{$i})){
|
||||
rename($content_pref['content_image_path_tmp']."thumb_".$image{$i}, $content_pref['content_image_path']."thumb_".$image{$i});
|
||||
}
|
||||
if($image{$i} && is_readable($content_pref['content_image_path'].$image{$i})){
|
||||
$totalimages .= "[img]".$image{$i};
|
||||
}
|
||||
}
|
||||
|
||||
$zam = array("-", ":", " ");
|
||||
if($_POST['update_datestamp'])
|
||||
{
|
||||
$starttime = time();
|
||||
}
|
||||
else
|
||||
{
|
||||
if(isset($_POST['startdate']) && $_POST['startdate'] != "0" && $_POST['startdate'] != "")
|
||||
{
|
||||
$newstarttime = str_replace($zam, "*", $_POST['startdate']);
|
||||
$newstarttime = explode("*", $newstarttime);
|
||||
$newstarttime = mktime($newstarttime[3], $newstarttime[4], 0, $newstarttime[1], $newstarttime[2], $newstarttime[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$newstarttime = time();
|
||||
}
|
||||
if(isset($_POST['content_datestamp']) && $_POST['content_datestamp'] != "" && $_POST['content_datestamp'] != "0")
|
||||
{
|
||||
if($newstarttime != $starttime)
|
||||
{
|
||||
$starttime = $newstarttime;
|
||||
}
|
||||
else
|
||||
{
|
||||
$starttime = intval($_POST['content_datestamp']);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$starttime = time();
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_POST['enddate']) && $_POST['enddate'] != "0" && $_POST['enddate'] != "")
|
||||
{
|
||||
$endtime = str_replace($zam, "*", $_POST['enddate']);
|
||||
$endtime = explode("*", $endtime);
|
||||
$endtime = mktime($endtime[3], $endtime[4], 0, $endtime[1], $endtime[2], $endtime[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$endtime = "0";
|
||||
}
|
||||
|
||||
//custom additional data tags
|
||||
for($i=0;$i<$content_pref["content_admin_custom_number"];$i++){
|
||||
if(isset($_POST["content_custom_key_{$i}"]) && isset($_POST["content_custom_value_{$i}"]) && $_POST["content_custom_value_{$i}"] != ""){
|
||||
$keystring = $tp->toDB($_POST["content_custom_key_{$i}"]);
|
||||
$custom["content_custom_{$keystring}"] = $tp->toDB($_POST["content_custom_value_{$i}"]);
|
||||
}
|
||||
}
|
||||
//preset additional data tags
|
||||
if( varsettrue($_POST['content_custom_preset_key']) ){
|
||||
$custom['content_custom_presettags'] = $tp->toDB($_POST['content_custom_preset_key']);
|
||||
}
|
||||
$contentprefvalue = ($custom ? $eArrayStorage->WriteArray($custom) : '');
|
||||
|
||||
$_POST['content_layout'] = (!$_POST['content_layout'] || $_POST['content_layout'] == "content_content_template.php" ? "" : $tp->toDB($_POST['content_layout']));
|
||||
|
||||
//content_order : not added in the sql
|
||||
//content_refer : only added in sql if posting submitted item
|
||||
//$refer = (isset($_POST['content_refer']) && $_POST['content_refer']=='sa' ? ", content_refer='' " : "");
|
||||
|
||||
if($mode == "create"){
|
||||
if($type == "submit"){
|
||||
$refer = ($content_pref["content_manager_submit_directpost"] ? "" : "sa");
|
||||
}elseif($type == "contentmanager"){
|
||||
$refer = ($content_pref["content_manager_manager_directpost"] ? "" : "sa");
|
||||
}else{
|
||||
$refer = "";
|
||||
}
|
||||
$sql -> db_Insert($plugintable, "'0', '".$_POST['content_heading']."', '".$_POST['content_subheading']."', '".$_POST['content_summary']."', '".$_POST['content_text']."', '".$tp->toDB($author)."', '".$icon."', '".$totalattach."', '".$totalimages."', '".$_POST['parent']."', '".intval($_POST['content_comment'])."', '".intval($_POST['content_rate'])."', '".intval($_POST['content_pe'])."', '".$refer."', '".$starttime."', '".$endtime."', '".$_POST['content_class']."', '".$contentprefvalue."', '0', '".intval($_POST['content_score'])."', '".$_POST['content_meta']."', '".$_POST['content_layout']."' ");
|
||||
$id = mysql_insert_id();
|
||||
$e107cache->clear("$plugintable");
|
||||
|
||||
//trigger event for notify
|
||||
$edata_cs = array("content_heading" => $_POST['content_heading'], "content_subheading" => $_POST['content_subheading'], "content_author" => $_POST['content_author_name']);
|
||||
$e_event->trigger("content", $edata_cs);
|
||||
|
||||
$data = array('method'=>'create', 'table'=>$plugintable, 'id'=>$id, 'plugin'=>'content', 'function'=>'dbContent');
|
||||
$message = $e_event->triggerHook($data);
|
||||
|
||||
if(!$type || $type == "admin"){
|
||||
js_location(e_SELF."?".e_QUERY.".cc");
|
||||
}elseif($type == "contentmanager"){
|
||||
js_location(e_SELF."?c");
|
||||
}elseif($type == "submit"){
|
||||
if($content_pref["content_manager_submit_directpost"]){
|
||||
js_location(e_SELF."?s");
|
||||
}else{
|
||||
js_location(e_SELF."?d");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($mode == "update"){
|
||||
$refer = (isset($_POST['content_refer']) && $_POST['content_refer']=='sa' ? ", content_refer='' " : '');
|
||||
|
||||
$sql -> db_Update($plugintable, "content_heading = '".$_POST['content_heading']."', content_subheading = '".$_POST['content_subheading']."', content_summary = '".$_POST['content_summary']."', content_text = '".$_POST['content_text']."', content_author = '".$tp->toDB($author)."', content_icon = '".$icon."', content_file = '".$totalattach."', content_image = '".$totalimages."', content_parent = '".$_POST['parent']."', content_comment = '".intval($_POST['content_comment'])."', content_rate = '".intval($_POST['content_rate'])."', content_pe = '".intval($_POST['content_pe'])."' ".$refer.", content_datestamp = '".$starttime."', content_enddate = '".$endtime."', content_class = '".$_POST['content_class']."', content_pref = '".$contentprefvalue."', content_score='".intval($_POST['content_score'])."', content_meta='".$_POST['content_meta']."', content_layout='".$_POST['content_layout']."' WHERE content_id = '".intval($_POST['content_id'])."' ");
|
||||
|
||||
$e107cache->clear("$plugintable");
|
||||
$e107cache->clear("comment.$plugintable.{$_POST['content_id']}");
|
||||
|
||||
$data = array('method'=>'update', 'table'=>$plugintable, 'id'=>$_POST['content_id'], 'plugin'=>'content', 'function'=>'dbContent');
|
||||
$message = $e_event->triggerHook($data);
|
||||
|
||||
if(!$type || $type == "admin"){
|
||||
js_location(e_SELF."?".e_QUERY.".cu");
|
||||
}elseif($type == "contentmanager"){
|
||||
js_location(e_SELF."?u");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//function dbCategoryUpdate($mode){
|
||||
function dbCategory($mode){
|
||||
global $pref, $sql, $ns, $rs, $qs, $aa, $tp, $plugintable, $e107cache;
|
||||
|
||||
$_POST['cat_heading'] = $tp -> toDB($_POST['cat_heading']);
|
||||
$_POST['cat_subheading'] = $tp -> toDB($_POST['cat_subheading']);
|
||||
if(e_WYSIWYG){
|
||||
$_POST['cat_text'] = $tp->createConstants($_POST['cat_text']); // convert e107_images/ to {e_IMAGE} etc.
|
||||
}
|
||||
$_POST['cat_text'] = $tp -> toDB($_POST['cat_text']);
|
||||
$_POST['cat_class'] = ($_POST['cat_class'] ? intval($_POST['cat_class']) : "0");
|
||||
|
||||
//category create
|
||||
if( isset($qs[0]) && $qs[0]=='cat' && isset($qs[1]) && $qs[1]=='create' ){
|
||||
if( isset($qs[2]) && is_numeric($qs[2]) ){
|
||||
$parent = "0.".intval($qs[2]);
|
||||
}else{
|
||||
$parent = 0;
|
||||
}
|
||||
|
||||
//category edit
|
||||
}elseif( isset($qs[0]) && $qs[0]=='cat' && isset($qs[1]) && $qs[1]=='edit' ){
|
||||
if( isset($qs[2]) && is_numeric($qs[2]) ){
|
||||
|
||||
if( isset($qs[3]) && is_numeric($qs[3]) ){
|
||||
if(intval($qs[3]) == 0){
|
||||
$parent = 0;
|
||||
}elseif( $qs[2] == $qs[3] ){
|
||||
$parent = 0;
|
||||
}else{
|
||||
$parent = "0.".intval($qs[3]);
|
||||
}
|
||||
}else{
|
||||
if($qs[2]==$_POST['cat_id']){
|
||||
$parent = intval($_POST['parent_id']);
|
||||
$parent = ($parent!=0 ? "0.".$parent : 0);
|
||||
}else{
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$parent = 0;
|
||||
}
|
||||
}
|
||||
$_POST['parent'] = $parent;
|
||||
|
||||
if( isset($_POST['ne_day']) && $_POST['ne_day']!='' && $_POST['ne_day']!='0' && $_POST['ne_day'] != "none"
|
||||
&& isset($_POST['ne_month']) && $_POST['ne_month']!='' && $_POST['ne_month']!='0' && $_POST['ne_month'] != "none"
|
||||
&& isset($_POST['ne_year']) && $_POST['ne_year']!='' && $_POST['ne_year']!='0' && $_POST['ne_year'] != "none" ){
|
||||
$starttime = mktime( 0, 0, 0, intval($_POST['ne_month']), intval($_POST['ne_day']), intval($_POST['ne_year']));
|
||||
}else{
|
||||
$starttime = time();
|
||||
}
|
||||
|
||||
if( isset($_POST['end_day']) && $_POST['end_day']!='' && $_POST['end_day']!='0' && $_POST['end_day'] != "none"
|
||||
&& isset($_POST['end_month']) && $_POST['end_month']!='' && $_POST['end_month']!='0' && $_POST['end_month'] != "none"
|
||||
&& isset($_POST['end_year']) && $_POST['end_year']!='' && $_POST['end_year']!='0' && $_POST['end_year'] != "none" ){
|
||||
$endtime = mktime( 0, 0, 0, intval($_POST['end_month']), intval($_POST['end_day']), intval($_POST['end_year']));
|
||||
}else{
|
||||
$endtime = "0";
|
||||
}
|
||||
|
||||
if($mode == "create"){
|
||||
$sql -> db_Insert($plugintable, "'0', '".$_POST['cat_heading']."', '".$_POST['cat_subheading']."', '', '".$_POST['cat_text']."', '".ADMINID."', '".$tp->toDB($_POST["cat_icon"])."', '', '', '".$_POST['parent']."', '".intval($_POST['cat_comment'])."', '".intval($_POST['cat_rate'])."', '".intval($_POST['cat_pe'])."', '', '".$starttime."', '".$endtime."', '".$_POST['cat_class']."', '', '0', '0', '', '' ");
|
||||
|
||||
// check and insert default pref values if new top level category + create menu file
|
||||
if($_POST['parent'] == "0"){
|
||||
$iid = mysql_insert_id();
|
||||
$content_pref = $aa -> getContentPref($iid);
|
||||
$aa -> CreateParentMenu($iid);
|
||||
}
|
||||
$e107cache->clear("$plugintable");
|
||||
js_location(e_SELF."?".e_QUERY.".pc");
|
||||
|
||||
}elseif($mode == "update"){
|
||||
$sql -> db_Update($plugintable, "content_heading = '".$_POST['cat_heading']."', content_subheading = '".$_POST['cat_subheading']."', content_summary = '', content_text = '".$_POST['cat_text']."', content_author = '".ADMINID."', content_icon = '".$tp->toDB($_POST["cat_icon"])."', content_image = '', content_parent = '".$_POST['parent']."', content_comment = '".intval($_POST['cat_comment'])."', content_rate = '".intval($_POST['cat_rate'])."', content_pe = '".intval($_POST['cat_pe'])."', content_refer = '0', content_datestamp = '".$starttime."', content_enddate = '".$endtime."', content_class = '".intval($_POST['cat_class'])."' WHERE content_id = '".intval($_POST['cat_id'])."' ");
|
||||
|
||||
// check and insert default pref values if new top level category + create menu file
|
||||
if($_POST['parent'] == "0"){
|
||||
@unlink(e_PLUGIN."content/menus/content_".$_POST['menuheading']."_menu.php");
|
||||
$content_pref = $aa -> getContentPref($_POST['cat_id']);
|
||||
$aa -> CreateParentMenu($_POST['cat_id']);
|
||||
}
|
||||
$e107cache->clear("$plugintable");
|
||||
js_location(e_SELF."?".e_QUERY.".pu");
|
||||
}
|
||||
}
|
||||
|
||||
function dbDelete($mode, $cat, $del_id){
|
||||
global $plugintable, $sql, $_POST, $e107cache;
|
||||
|
||||
if($mode == "admin"){
|
||||
if($cat == "cat"){
|
||||
if($sql -> db_Delete($plugintable, "content_id='".intval($del_id)."' ")){
|
||||
$e107cache->clear("$plugintable");
|
||||
$message = CONTENT_ADMIN_CAT_LAN_23;
|
||||
return $message;
|
||||
}
|
||||
}elseif($cat == "content"){
|
||||
if($sql -> db_Delete($plugintable, "content_id='".intval($del_id)."' ")){
|
||||
$e107cache->clear("$plugintable");
|
||||
$message = CONTENT_ADMIN_ITEM_LAN_3;
|
||||
return $message;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
function dbSetOrder($mode, $type, $order){
|
||||
global $plugintable, $sql, $aa, $qs, $_POST, $e107cache;
|
||||
//$mode : all, inc, dec
|
||||
//$type : cc (category order), ai (global all items), ci (items in category)
|
||||
//$order : posted values or id-currentorder
|
||||
|
||||
if($mode == "all"){
|
||||
foreach ($order as $cid){
|
||||
//each order value in the db has two numbers (a-b) where a = category item order, and b = global item order
|
||||
//146.3.cat : category order
|
||||
//35.3.ci.1-0 : category item order
|
||||
//35.3.ai.1-0 : global item order
|
||||
|
||||
$tmp = explode(".", $cid);
|
||||
$old = explode("-", $tmp[3]);
|
||||
$old[0] = ($old[0] == "" ? "0" : $old[0]);
|
||||
$old[1] = ($old[1] == "" ? "0" : $old[1]);
|
||||
|
||||
$tmp[0] = intval($tmp[0]);
|
||||
$tmp[1] = intval($tmp[1]);
|
||||
$old[0] = intval($old[0]);
|
||||
$old[1] = intval($old[1]);
|
||||
|
||||
if($tmp[2] == "cat"){
|
||||
$sql->db_Update($plugintable, "content_order='".$tmp[1]."' WHERE content_id='".$tmp[0]."' " );
|
||||
|
||||
}elseif($tmp[2] == "ci"){
|
||||
$sql->db_Update($plugintable, "content_order='".$tmp[1].".".$old[1]."' WHERE content_id='".$tmp[0]."' " );
|
||||
|
||||
}elseif($tmp[2] == "ai"){
|
||||
$sql->db_Update($plugintable, "content_order='".$old[0].".".$tmp[1]."' WHERE content_id='".$tmp[0]."' " );
|
||||
}
|
||||
$message = CONTENT_ADMIN_ORDER_LAN_2;
|
||||
}
|
||||
|
||||
}elseif($mode == "inc"){
|
||||
|
||||
$tmp = explode("-", $order);
|
||||
$tmp[0] = intval($tmp[0]);
|
||||
$tmp[1] = intval($tmp[1]);
|
||||
$tmp[2] = intval($tmp[2]);
|
||||
|
||||
if($type == "cc"){
|
||||
$mainparent = $aa -> getMainParent($tmp[0]);
|
||||
$array = $aa -> getCategoryTree("", $mainparent, TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$qry = " content_id REGEXP '".$aa -> CONTENTREGEXP($validparent)."' AND content_order='".($tmp[1]-1)."' ";
|
||||
$sql->db_Update($plugintable, "content_order=content_order+1 WHERE ".$qry." " );
|
||||
$sql->db_Update($plugintable, "content_order=content_order-1 WHERE content_id='".$tmp[0]."' " );
|
||||
|
||||
}elseif($type == "ci"){
|
||||
$sql->db_Update($plugintable, "content_order='".$tmp[1].".".$tmp[2]."' WHERE content_parent = '".intval($qs[2])."' AND SUBSTRING_INDEX(content_order, '.', 1) = '".($tmp[1]-1)."' " );
|
||||
$sql->db_Update($plugintable, "content_order='".($tmp[1]-1).".".$tmp[2]."' WHERE content_id='".$tmp[0]."' " );
|
||||
|
||||
}elseif($type == "ai"){
|
||||
$array = $aa -> getCategoryTree("", intval($qs[1]), TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$qry = " content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' AND SUBSTRING_INDEX(content_order, '.', -1) = '".($tmp[2]-1)."' ";
|
||||
$sql->db_Update($plugintable, " content_order=content_order+0.1 WHERE ".$qry." " );
|
||||
$sql->db_Update($plugintable, "content_order='".$tmp[1].".".($tmp[2]-1)."' WHERE content_id='".$tmp[0]."' " );
|
||||
|
||||
}
|
||||
$message = CONTENT_ADMIN_ORDER_LAN_0;
|
||||
|
||||
}elseif($mode == "dec"){
|
||||
|
||||
$tmp = explode("-", $order);
|
||||
$tmp[0] = intval($tmp[0]);
|
||||
$tmp[1] = intval($tmp[1]);
|
||||
$tmp[2] = intval($tmp[2]);
|
||||
if($type == "cc"){
|
||||
$mainparent = $aa -> getMainParent($tmp[0]);
|
||||
$array = $aa -> getCategoryTree("", $mainparent, TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$qry = " content_id REGEXP '".$aa -> CONTENTREGEXP($validparent)."' AND content_order='".($tmp[1]+1)."' ";
|
||||
$sql->db_Update($plugintable, "content_order=content_order-1 WHERE ".$qry." " );
|
||||
$sql->db_Update($plugintable, "content_order=content_order+1 WHERE content_id='".$tmp[0]."' " );
|
||||
|
||||
}elseif($type == "ci"){
|
||||
$sql->db_Update($plugintable, "content_order='".$tmp[1].".".$tmp[2]."' WHERE content_parent = '".intval($qs[2])."' AND SUBSTRING_INDEX(content_order, '.', 1) = '".($tmp[1]+1)."' " );
|
||||
$sql->db_Update($plugintable, "content_order='".($tmp[1]+1).".".$tmp[2]."' WHERE content_id='".$tmp[0]."' " );
|
||||
|
||||
}elseif($type == "ai"){
|
||||
$array = $aa -> getCategoryTree("", intval($qs[1]), TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$qry = " content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' AND SUBSTRING_INDEX(content_order, '.', -1) = '".($tmp[2]+1)."' ";
|
||||
$sql->db_Update($plugintable, "content_order=content_order-0.1 WHERE ".$qry." " );
|
||||
$sql->db_Update($plugintable, "content_order='".$tmp[1].".".($tmp[2]+1)."' WHERE content_id='".$tmp[0]."' " );
|
||||
}
|
||||
$message = CONTENT_ADMIN_ORDER_LAN_1;
|
||||
}
|
||||
$e107cache->clear("$plugintable");
|
||||
return $message;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@@ -1,32 +0,0 @@
|
||||
<?php
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
global $plugindir;
|
||||
$plugindir = e_PLUGIN."content/";
|
||||
$imagedir = e_IMAGE."admin_images/";
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content.php");
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content_admin.php");
|
||||
|
||||
if (!defined('CONTENT_ICON_EDIT')) { define("CONTENT_ICON_EDIT", "<img src='".$imagedir."maintain_16.png' alt='".CONTENT_ICON_LAN_0."' title='".CONTENT_ICON_LAN_0."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_LINK')) { define("CONTENT_ICON_LINK", "<img src='".$imagedir."leave_16.png' alt='".CONTENT_ICON_LAN_15."' title='".CONTENT_ICON_LAN_15."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_DELETE')) { define("CONTENT_ICON_DELETE", "<img src='".$imagedir."delete_16.png' alt='".CONTENT_ICON_LAN_1."' title='".CONTENT_ICON_LAN_1."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_DELETE_BASE')) { define("CONTENT_ICON_DELETE_BASE", $imagedir."delete_16.png"); }
|
||||
if (!defined('CONTENT_ICON_OPTIONS')) { define("CONTENT_ICON_OPTIONS", "<img src='".$imagedir."cat_settings_16.png' alt='".CONTENT_ICON_LAN_2."' title='".CONTENT_ICON_LAN_2."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_USER')) { define("CONTENT_ICON_USER", "<img src='".$imagedir."users_16.png' alt='".CONTENT_ICON_LAN_3."' title='".CONTENT_ICON_LAN_3."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_FILE')) { define("CONTENT_ICON_FILE", "<img src='".$plugindir."images/file_16.png' alt='".CONTENT_ICON_LAN_4."' title='".CONTENT_ICON_LAN_4."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_NEW')) { define("CONTENT_ICON_NEW", "<img src='".$imagedir."articles_16.png' alt='".CONTENT_ICON_LAN_5."' title='".CONTENT_ICON_LAN_5."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_SUBMIT')) { define("CONTENT_ICON_SUBMIT", "<img src='".$plugindir."images/submit_32.png' alt='".CONTENT_ICON_LAN_6."' title='".CONTENT_ICON_LAN_6."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_SUBMIT_SMALL')) { define("CONTENT_ICON_SUBMIT_SMALL", "<img src='".$plugindir."images/submit_16.png' alt='".CONTENT_ICON_LAN_6."' title='".CONTENT_ICON_LAN_6."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_AUTHORLIST')) { define("CONTENT_ICON_AUTHORLIST", "<img src='".$plugindir."images/personal.png' alt='".CONTENT_ICON_LAN_7."' title='".CONTENT_ICON_LAN_7."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_WARNING')) { define("CONTENT_ICON_WARNING", "<img src='".$plugindir."images/warning_16.png' alt='".CONTENT_ICON_LAN_8."' title='".CONTENT_ICON_LAN_8."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_OK')) { define("CONTENT_ICON_OK", "<img src='".$plugindir."images/ok_16.png' alt='".CONTENT_ICON_LAN_9."' title='".CONTENT_ICON_LAN_9."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_ERROR')) { define("CONTENT_ICON_ERROR", "<img src='".$plugindir."images/error_16.png' alt='".CONTENT_ICON_LAN_10."' title='".CONTENT_ICON_LAN_10."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_ORDERCAT')) { define("CONTENT_ICON_ORDERCAT", "<img src='".$plugindir."images/view_remove.png' alt='".CONTENT_ICON_LAN_11."' title='".CONTENT_ICON_LAN_11."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_ORDERALL')) { define("CONTENT_ICON_ORDERALL", "<img src='".$plugindir."images/window_new.png' alt='".CONTENT_ICON_LAN_12."' title='".CONTENT_ICON_LAN_12."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_CONTENTMANAGER')) { define("CONTENT_ICON_CONTENTMANAGER", "<img src='".$plugindir."images/manager_48.png' alt='".CONTENT_ICON_LAN_14."' title='".CONTENT_ICON_LAN_14."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_CONTENTMANAGER_SMALL')) { define("CONTENT_ICON_CONTENTMANAGER_SMALL", "<img src='".$plugindir."images/manager_16.png' alt='".CONTENT_ICON_LAN_13."' title='".CONTENT_ICON_LAN_13."' style='border:0; cursor:pointer;' />"); }
|
||||
if (!defined('CONTENT_ICON_ORDER_UP')) { define("CONTENT_ICON_ORDER_UP", "<img src='".$imagedir."up.png' alt='".CONTENT_ADMIN_ITEM_LAN_63."' title='".CONTENT_ADMIN_ITEM_LAN_63."' />"); }
|
||||
if (!defined('CONTENT_ICON_ORDER_DOWN')) { define("CONTENT_ICON_ORDER_DOWN", "<img src='".$imagedir."down.png' alt='".CONTENT_ADMIN_ITEM_LAN_64."' title='".CONTENT_ADMIN_ITEM_LAN_64."' />"); }
|
||||
if (!defined('CONTENT_ICON_DETAILS')) { define("CONTENT_ICON_DETAILS", "<img src='".$imagedir."downloads_16.png' alt='".CONTENT_ICON_LAN_16."' title='".CONTENT_ICON_LAN_16."' style='border:0; cursor:pointer;' />"); }
|
||||
|
||||
?>
|
@@ -1,279 +0,0 @@
|
||||
<?php
|
||||
require_once("../../../class2.php");
|
||||
require_once(e_HANDLER."form_handler.php");
|
||||
$rs = new form;
|
||||
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content.php");
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content_admin.php");
|
||||
|
||||
$months = array(CONTENT_ADMIN_DATE_LAN_0, CONTENT_ADMIN_DATE_LAN_1, CONTENT_ADMIN_DATE_LAN_2, CONTENT_ADMIN_DATE_LAN_3, CONTENT_ADMIN_DATE_LAN_4, CONTENT_ADMIN_DATE_LAN_5, CONTENT_ADMIN_DATE_LAN_6, CONTENT_ADMIN_DATE_LAN_7, CONTENT_ADMIN_DATE_LAN_8, CONTENT_ADMIN_DATE_LAN_9, CONTENT_ADMIN_DATE_LAN_10, CONTENT_ADMIN_DATE_LAN_11);
|
||||
|
||||
if(isset($_POST['addpreset'])){
|
||||
if(!$_POST['field']){
|
||||
$err = "<br /><b>".CONTENT_PRESET_LAN_0."</b><br /><br />";
|
||||
}else{
|
||||
$err = "";
|
||||
if($_POST['type'] == "text"){
|
||||
if(!($_POST['text_size'] && $_POST['text_maxsize'] && is_numeric($_POST['text_size']) && is_numeric($_POST['text_maxsize'])) ){
|
||||
$err .= "<br /><b>".CONTENT_PRESET_LAN_1."<br />".CONTENT_PRESET_LAN_3."</b><br />";
|
||||
}else{
|
||||
$value = $_POST['field']."^".$_POST['type']."^".$_POST['text_size']."^".$_POST['text_maxsize'];
|
||||
}
|
||||
}
|
||||
if($_POST['type'] == "area"){
|
||||
if(!($_POST['area_cols'] && $_POST['area_rows'] && is_numeric($_POST['area_cols']) && is_numeric($_POST['area_rows'])) ){
|
||||
$err .= "<br /><b>".CONTENT_PRESET_LAN_1."<br />".CONTENT_PRESET_LAN_4."</b><br />";
|
||||
}else{
|
||||
$value = $_POST['field']."^".$_POST['type']."^".$_POST['area_cols']."^".$_POST['area_rows'];
|
||||
}
|
||||
}
|
||||
if($_POST['type'] == "select"){
|
||||
$options = implode("^", $_POST['options']);
|
||||
if(!$_POST['options'][0] && !$_POST['options'][1]){
|
||||
$err .= "<br /><b>".CONTENT_PRESET_LAN_1."<br />".CONTENT_PRESET_LAN_5."</b><br />";
|
||||
}else{
|
||||
$value = $_POST['field']."^".$_POST['type']."^".$options;
|
||||
}
|
||||
}
|
||||
if($_POST['type'] == "date"){
|
||||
if(!($_POST['date_year_from'] && $_POST['date_year_to'] && is_numeric($_POST['date_year_from']) && is_numeric($_POST['date_year_to'])) ){
|
||||
$err .= "<br /><b>".CONTENT_PRESET_LAN_1."<br />".CONTENT_PRESET_LAN_6."</b><br />";
|
||||
}else{
|
||||
$value = $_POST['field']."^".$_POST['type']."^".$_POST['date_year_from']."^".$_POST['date_year_to'];
|
||||
}
|
||||
}
|
||||
if($_POST['type'] == "checkbox"){
|
||||
if(!$_POST['checkbox_value']){
|
||||
$err .= "<br /><b>".CONTENT_PRESET_LAN_1."<br />".CONTENT_PRESET_LAN_20."</b><br />";
|
||||
}else{
|
||||
$value = $_POST['field']."^".$_POST['type']."^".$_POST['checkbox_value'];
|
||||
}
|
||||
}
|
||||
if($_POST['type'] == "radio"){
|
||||
if(!($_POST['radio_value'] && $_POST['radio_text'] && $_POST['radio_value']!="" && $_POST['radio_text']!="")){
|
||||
$err .= "<br /><b>".CONTENT_PRESET_LAN_1."<br />".CONTENT_PRESET_LAN_19."</b><br />";
|
||||
}else{
|
||||
if(count($_POST['radio_value']) != count($_POST['radio_text'])){
|
||||
$err .= CONTENT_PRESET_LAN_19;
|
||||
}else{
|
||||
for($i=0;$i<count($_POST['radio_text']);$i++){
|
||||
$radio .= $_POST['radio_text'][$i]."^".$_POST['radio_value'][$i]."^";
|
||||
}
|
||||
$radio = substr($radio,0,-1);
|
||||
$value = $_POST['field']."^".$_POST['type']."^".$radio;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!$err){
|
||||
$value = $tp->post_toForm($value);
|
||||
|
||||
$js = "
|
||||
<script type='text/javascript'>
|
||||
|
||||
var ecopy = 'upline_new';
|
||||
var epaste = 'div_content_custom_preset';
|
||||
var type = window.opener.document.getElementById(ecopy).nodeName; // get the tag name of the source copy.
|
||||
var br = window.opener.document.createElement('br');
|
||||
|
||||
var field = window.opener.document.createElement('input');
|
||||
field.type = 'text';
|
||||
field.size = '50';
|
||||
field.name = 'content_custom_preset_key[]';
|
||||
field.value = '".$value."';
|
||||
field.className = 'tbox';
|
||||
|
||||
var but = window.opener.document.createElement('input');
|
||||
but.type = 'button';
|
||||
but.value = 'x';
|
||||
but.className = 'button';
|
||||
but.onclick = function(){ this.parentNode.parentNode.removeChild(this.parentNode); };
|
||||
|
||||
var destination = window.opener.document.getElementById(epaste);
|
||||
var source = window.opener.document.getElementById(ecopy).cloneNode(true);
|
||||
var newentry = window.opener.document.createElement(type);
|
||||
|
||||
newentry.appendChild(source);
|
||||
newentry.value='';
|
||||
newentry.appendChild(br);
|
||||
newentry.appendChild(field);
|
||||
newentry.appendChild(but);
|
||||
newentry.appendChild(br);
|
||||
|
||||
destination.appendChild(newentry);
|
||||
|
||||
window.close();
|
||||
</script>\n
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$text = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>\n
|
||||
<html>\n
|
||||
<head>\n
|
||||
<title>".CONTENT_PRESET_LAN_7."</title>\n
|
||||
<meta http-equiv='content-type' content='text/html; charset=utf-8' />\n
|
||||
<script type='text/javascript' src='../../../e107_files/e107.js'></script>
|
||||
".$js."
|
||||
<style type='text/css'>\n
|
||||
html,body{
|
||||
text-align:center;
|
||||
font-family: verdana, arial, helvetica, tahoma, sans-serif;
|
||||
font-size: 11px;
|
||||
color: #444;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top:0px;
|
||||
margin-bottom:0px;
|
||||
padding: 0px;
|
||||
background-color:#FFF;
|
||||
height:100%;
|
||||
cursor:default;
|
||||
}
|
||||
td{
|
||||
padding:5px;
|
||||
font-size:11px;
|
||||
text-align:left;
|
||||
}
|
||||
.fborder{
|
||||
width:80%;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
.fcaption{
|
||||
font-size:12px;
|
||||
font-weight:bold;
|
||||
white-space:nowrap;
|
||||
}
|
||||
.err{
|
||||
font-size:11px;
|
||||
font-weight:bold;
|
||||
color: #FF0000;
|
||||
}
|
||||
.leftcell{
|
||||
width:10%;
|
||||
white-space:nowrap;
|
||||
}
|
||||
.button{
|
||||
padding:2px;
|
||||
cursor:pointer;
|
||||
}
|
||||
.example {
|
||||
border: #999 1px dashed;
|
||||
padding: 5px;
|
||||
margin: 5px;
|
||||
background-color: #f7f7f9;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload=self.focus()>";
|
||||
|
||||
$qs = explode(".", e_QUERY);
|
||||
|
||||
$text .= "
|
||||
<form method='post' action='".e_SELF."?".e_QUERY."'>\n
|
||||
<table class='fborder' style='width:350px;'>
|
||||
".($err ? "<tr><td colspan='2' class='err' style='padding-bottom:10px;'>".$err."</td></tr>" : "")."
|
||||
<tr><td colspan='2' class='fcaption' style='padding-bottom:10px;'>".CONTENT_PRESET_LAN_8." : ".$qs[0]."</td></tr>
|
||||
<tr><td class='leftcell'>".CONTENT_PRESET_LAN_9."</td><td>".$rs -> form_text("field", 40, $_POST['field'], 50)."</td></tr>";
|
||||
|
||||
if($qs[0] == "text"){
|
||||
$text .= "
|
||||
<tr><td class='leftcell'>".CONTENT_PRESET_LAN_10."</td><td>".$rs -> form_text("text_size", 3, $_POST['text_size'], 3)."</td></tr>
|
||||
<tr><td class='leftcell'>".CONTENT_PRESET_LAN_11."</td><td>".$rs -> form_text("text_maxsize", 3, $_POST['text_maxsize'], 3)."</td></tr>
|
||||
";
|
||||
$example = CONTENT_PRESET_LAN_32."<br /><br />".$rs -> form_text("extext", 40, CONTENT_PRESET_LAN_9."=".CONTENT_PRESET_LAN_32.", ".CONTENT_PRESET_LAN_10."=40, ".CONTENT_PRESET_LAN_11."=10", 100);
|
||||
}
|
||||
|
||||
if($qs[0] == "area"){
|
||||
$text .= "
|
||||
<tr><td class='leftcell'>".CONTENT_PRESET_LAN_12."</td><td>".$rs -> form_text("area_cols", 3, $_POST['area_cols'], 3)."</td></tr>
|
||||
<tr><td class='leftcell'>".CONTENT_PRESET_LAN_13."</td><td>".$rs -> form_text("area_rows", 3, $_POST['area_rows'], 3)."</td></tr>
|
||||
";
|
||||
$example = CONTENT_PRESET_LAN_32."<br /><br />".$rs -> form_textarea("exarea", 30, 4, "".CONTENT_PRESET_LAN_9."=".CONTENT_PRESET_LAN_32."\n".CONTENT_PRESET_LAN_12."=30\n".CONTENT_PRESET_LAN_13."=4", $form_js = "", $form_style = "", $form_wrap = "", $form_readonly = "", $form_tooltip = "");
|
||||
}
|
||||
|
||||
if($qs[0] == "date"){
|
||||
$text .= "
|
||||
<tr><td class='leftcell'>".CONTENT_PRESET_LAN_14."</td><td>".$rs -> form_text("date_year_from", 3, $_POST['date_year_from'], 4)."</td></tr>
|
||||
<tr><td class='leftcell'>".CONTENT_PRESET_LAN_15."</td><td>".$rs -> form_text("date_year_to", 3, $_POST['date_year_to'], 4)."</td></tr>
|
||||
";
|
||||
$example = CONTENT_PRESET_LAN_32." ".CONTENT_PRESET_LAN_14." 1990, ".CONTENT_PRESET_LAN_15." 2000<br /><br />
|
||||
".$rs -> form_select_open("exday", "")."
|
||||
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_12, "0", "");
|
||||
for($i=1;$i<=31;$i++){
|
||||
$example .= $rs -> form_option($i, ($values[$tmp[0]]['day'] == $i ? "1" : "0"), $i, "");
|
||||
}
|
||||
$example .= $rs -> form_select_close();
|
||||
|
||||
$example .= $rs -> form_select_open("exmonth", "")."
|
||||
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_13, "0", "");
|
||||
for($i=1;$i<=12;$i++){
|
||||
$example .= $rs -> form_option($months[($i-1)], ($values[$tmp[0]]['month'] == $i ? "1" : "0"), $i, "");
|
||||
}
|
||||
$example .= $rs -> form_select_close();
|
||||
|
||||
$example .= $rs -> form_select_open("exyear", "")."
|
||||
".$rs -> form_option(CONTENT_ADMIN_DATE_LAN_14, "0", "");
|
||||
for($i=1990;$i<=2000;$i++){
|
||||
$example .= $rs -> form_option($i, "0", $i, "");
|
||||
}
|
||||
$example .= $rs -> form_select_close();
|
||||
}
|
||||
|
||||
if($qs[0] == "select"){
|
||||
$text .= "
|
||||
<tr><td class='leftcell' style='vertical-align:top;'>".CONTENT_PRESET_LAN_23."</td>
|
||||
<td><input class='tbox' type='text' name='options[0]' size='10' maxlength='100' /> (".CONTENT_PRESET_LAN_24.")</td>
|
||||
</tr>
|
||||
<tr><td class='leftcell' style='vertical-align:top;'>".CONTENT_PRESET_LAN_16."</td>
|
||||
<td>
|
||||
<div id='select_container' style='width:40%;white-space:nowrap;'>
|
||||
<span id='selectline' style='white-space:nowrap;'>
|
||||
<input class='tbox' type='text' name='options[]' size='10' maxlength='100' />
|
||||
<input type='button' class='button' value='".CONTENT_PRESET_LAN_17."' onclick=\"duplicateHTML('selectline','select_container');\" />
|
||||
</span><br />
|
||||
</div>
|
||||
</td></tr>
|
||||
";
|
||||
$example = CONTENT_PRESET_LAN_32." ".CONTENT_PRESET_LAN_23." = ".CONTENT_PRESET_LAN_32.", options=a,b,c<br /><br />
|
||||
".$rs -> form_select_open("exselect", "");
|
||||
$example .= $rs -> form_option(CONTENT_PRESET_LAN_32, "0", "", "");
|
||||
$example .= $rs -> form_option("a", "0", "a", "");
|
||||
$example .= $rs -> form_option("b", "0", "b", "");
|
||||
$example .= $rs -> form_option("c", "0", "c", "");
|
||||
$example .= $rs -> form_select_close();
|
||||
}
|
||||
if($qs[0] == "checkbox"){
|
||||
$text .= "<tr><td class='leftcell'>".CONTENT_PRESET_LAN_22."</td><td>".$rs -> form_text("checkbox_value", 3, $_POST['checkbox_value'], 50)."</td></tr>";
|
||||
$example = CONTENT_PRESET_LAN_32." ".CONTENT_PRESET_LAN_9." = ".CONTENT_PRESET_LAN_32.", ".CONTENT_PRESET_LAN_22." = 1<br /><br />".CONTENT_PRESET_LAN_32." ".$rs -> form_checkbox("excheckbox", "ex1", $form_checked = 0, $form_tooltip = "", $form_js = "");
|
||||
}
|
||||
if($qs[0] == "radio"){
|
||||
$text .= "
|
||||
<tr><td class='leftcell'></td>
|
||||
<td>
|
||||
<div id='radio_container' style='width:40%;white-space:nowrap;'>
|
||||
<span id='radioline' style='white-space:nowrap;'>
|
||||
".CONTENT_PRESET_LAN_21." <input class='tbox' type='text' name='radio_text[]' value='".$_POST['radio_text[]']."' size='8' maxlength='100' />
|
||||
".CONTENT_PRESET_LAN_22." <input class='tbox' type='text' name='radio_value[]' value='".$_POST['radio_value[]']."' size='2' maxlength='100' />
|
||||
<input type='button' class='button' value='".CONTENT_PRESET_LAN_17."' onclick=\"duplicateHTML('radioline','radio_container');\" />
|
||||
</span><br />
|
||||
</div>
|
||||
</td></tr>
|
||||
";
|
||||
$example = CONTENT_PRESET_LAN_32."<br /><br />".$rs -> form_radio("exradio", CONTENT_PRESET_LAN_32." 1", "0", "", "")." ".CONTENT_PRESET_LAN_32." 1 ".$rs -> form_radio("exradio", CONTENT_PRESET_LAN_32." 2", "0", "", "")." ".CONTENT_PRESET_LAN_32." 2";
|
||||
}
|
||||
|
||||
//process button
|
||||
$text .= "
|
||||
<tr><td class='leftcell'> </td><td style='text-align:right;'><input type='hidden' name='type' value='".$qs[0]."' /><input type='submit' class='button' name='addpreset' value='".CONTENT_PRESET_LAN_18."' /><br /><br /></td></tr>\n
|
||||
<tr><td colspan='2' class='example'>".$example."</td></tr>
|
||||
</table>\n
|
||||
</form>\n
|
||||
</body>\n
|
||||
</html>\n";
|
||||
|
||||
echo $text;
|
||||
|
||||
?>
|
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 957 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 996 B |
Before Width: | Height: | Size: 975 B |
Before Width: | Height: | Size: 978 B |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 998 B |
Before Width: | Height: | Size: 838 B |
Before Width: | Height: | Size: 61 B |
Before Width: | Height: | Size: 856 B |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 945 B |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 189 B |
Before Width: | Height: | Size: 708 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 663 B |
Before Width: | Height: | Size: 772 B |
@@ -1,230 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/languages/English/lan_content.php,v $
|
||||
| $Revision$
|
||||
| $Date$
|
||||
| $Author$
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
|
||||
define("CONTENT_EMAILPRINT_LAN_1", "this content item is from");
|
||||
|
||||
define("POPUP_LAN_1", "click to enlarge image");
|
||||
|
||||
define("CONTENT_USERPROFILE_LAN_1", ">> view all content {caption} items");
|
||||
define("CONTENT_USERPROFILE_LAN_2", "content {caption}: {total} items found");
|
||||
|
||||
define("CONTENT_NOTIFY_LAN_1", "Content Events");
|
||||
define("CONTENT_NOTIFY_LAN_2", "Content item submitted by user");
|
||||
define("CONTENT_NOTIFY_LAN_3", "Content Submitted");
|
||||
|
||||
define("CONTENT_TYPE_LAN_0", "categories");
|
||||
define("CONTENT_TYPE_LAN_1", "authors");
|
||||
define("CONTENT_TYPE_LAN_2", "archive");
|
||||
define("CONTENT_TYPE_LAN_3", "top rated");
|
||||
define("CONTENT_TYPE_LAN_4", "top score");
|
||||
define("CONTENT_TYPE_LAN_5", "recent");
|
||||
|
||||
define("CONTENT_ICON_LAN_0", "edit");
|
||||
define("CONTENT_ICON_LAN_1", "delete");
|
||||
define("CONTENT_ICON_LAN_2", "options");
|
||||
define("CONTENT_ICON_LAN_3", "user details");
|
||||
define("CONTENT_ICON_LAN_4", "download attachment");
|
||||
define("CONTENT_ICON_LAN_5", "new");
|
||||
define("CONTENT_ICON_LAN_6", "submit content");
|
||||
define("CONTENT_ICON_LAN_7", "author list");
|
||||
define("CONTENT_ICON_LAN_8", "warning");
|
||||
define("CONTENT_ICON_LAN_9", "ok");
|
||||
define("CONTENT_ICON_LAN_10", "error");
|
||||
define("CONTENT_ICON_LAN_11", "order items in category");
|
||||
define("CONTENT_ICON_LAN_12", "order items in main parent");
|
||||
define("CONTENT_ICON_LAN_13", "personal admin");
|
||||
define("CONTENT_ICON_LAN_14", "personal content manager");
|
||||
define("CONTENT_ICON_LAN_15", "view");
|
||||
define("CONTENT_ICON_LAN_16", "view details");
|
||||
|
||||
define("CONTENT_ADMIN_DATE_LAN_0", "January");
|
||||
define("CONTENT_ADMIN_DATE_LAN_1", "February");
|
||||
define("CONTENT_ADMIN_DATE_LAN_2", "March");
|
||||
define("CONTENT_ADMIN_DATE_LAN_3", "April");
|
||||
define("CONTENT_ADMIN_DATE_LAN_4", "May");
|
||||
define("CONTENT_ADMIN_DATE_LAN_5", "June");
|
||||
define("CONTENT_ADMIN_DATE_LAN_6", "July");
|
||||
define("CONTENT_ADMIN_DATE_LAN_7", "August");
|
||||
define("CONTENT_ADMIN_DATE_LAN_8", "September");
|
||||
define("CONTENT_ADMIN_DATE_LAN_9", "October");
|
||||
define("CONTENT_ADMIN_DATE_LAN_10", "November");
|
||||
define("CONTENT_ADMIN_DATE_LAN_11", "December");
|
||||
define("CONTENT_ADMIN_DATE_LAN_12", "day");
|
||||
define("CONTENT_ADMIN_DATE_LAN_13", "month");
|
||||
define("CONTENT_ADMIN_DATE_LAN_14", "year");
|
||||
define("CONTENT_ADMIN_DATE_LAN_15", "start date");
|
||||
define("CONTENT_ADMIN_DATE_LAN_16", "end date");
|
||||
define("CONTENT_ADMIN_DATE_LAN_17", "You can specify a start date for this content item. If you use a date in the future the content item will be visible from that point onward. If you do not need a specific starting date, you can just leave these fields as they are.");
|
||||
define("CONTENT_ADMIN_DATE_LAN_18", "you can specify an end date for this content item. With the end date you can specify until which point in time the content item needs to be visible. If you do not need an end time for this content item, you can just leave the fields as they are.");
|
||||
|
||||
define("CONTENT_PAGETITLE_LAN_0", "Content");
|
||||
define("CONTENT_PAGETITLE_LAN_1", "Main");
|
||||
define("CONTENT_PAGETITLE_LAN_2", "Recent");
|
||||
define("CONTENT_PAGETITLE_LAN_3", "Category");
|
||||
define("CONTENT_PAGETITLE_LAN_4", "Top Rated");
|
||||
define("CONTENT_PAGETITLE_LAN_5", "Author");
|
||||
define("CONTENT_PAGETITLE_LAN_6", "Archive");
|
||||
define("CONTENT_PAGETITLE_LAN_7", "Submit");
|
||||
define("CONTENT_PAGETITLE_LAN_8", "Submit Item");
|
||||
define("CONTENT_PAGETITLE_LAN_9", "Submit And Content Manager");
|
||||
define("CONTENT_PAGETITLE_LAN_10", "View Items");
|
||||
define("CONTENT_PAGETITLE_LAN_11", "Edit Item");
|
||||
define("CONTENT_PAGETITLE_LAN_12", "Create Item");
|
||||
define("CONTENT_PAGETITLE_LAN_13", "Categories");
|
||||
define("CONTENT_PAGETITLE_LAN_14", "Authorlist");
|
||||
define("CONTENT_PAGETITLE_LAN_15", "Top Score");
|
||||
define("CONTENT_PAGETITLE_LAN_16", "Submitted Items");
|
||||
define("CONTENT_PAGETITLE_LAN_17", "Post Submitted Item");
|
||||
|
||||
define("CONTENT_SEARCH_LAN_0", "no content items found with these keywords.");
|
||||
|
||||
define("CONTENT_ORDER_LAN_0", "sort by ...");
|
||||
define("CONTENT_ORDER_LAN_1", "heading (ASC)");
|
||||
define("CONTENT_ORDER_LAN_2", "heading (DESC)");
|
||||
define("CONTENT_ORDER_LAN_3", "date (ASC)");
|
||||
define("CONTENT_ORDER_LAN_4", "date (DESC)");
|
||||
define("CONTENT_ORDER_LAN_5", "refer (ASC)");
|
||||
define("CONTENT_ORDER_LAN_6", "refer (DESC)");
|
||||
define("CONTENT_ORDER_LAN_7", "parent (ASC)");
|
||||
define("CONTENT_ORDER_LAN_8", "parent (DESC)");
|
||||
define("CONTENT_ORDER_LAN_9", "order (ASC)");
|
||||
define("CONTENT_ORDER_LAN_10", "order (DESC)");
|
||||
define("CONTENT_ORDER_LAN_11", "author (ASC)");
|
||||
define("CONTENT_ORDER_LAN_12", "author (DESC)");
|
||||
|
||||
define("CONTENT_LAN_0", "Content");
|
||||
define("CONTENT_LAN_1", "Recent List");
|
||||
define("CONTENT_LAN_2", "Category List");
|
||||
define("CONTENT_LAN_3", "Category");
|
||||
define("CONTENT_LAN_4", "Author List");
|
||||
define("CONTENT_LAN_5", "Author");
|
||||
define("CONTENT_LAN_6", "all categories");
|
||||
define("CONTENT_LAN_7", "all authors");
|
||||
define("CONTENT_LAN_8", "top rated items");
|
||||
define("CONTENT_LAN_9", "in");
|
||||
define("CONTENT_LAN_10", "on");
|
||||
define("CONTENT_LAN_11", "by");
|
||||
define("CONTENT_LAN_12", "top score items");
|
||||
define("CONTENT_LAN_13", "list");
|
||||
define("CONTENT_LAN_14", "-- categories --");
|
||||
define("CONTENT_LAN_15", "no authors yet");
|
||||
define("CONTENT_LAN_16", "[read more]");
|
||||
define("CONTENT_LAN_17", "");
|
||||
define("CONTENT_LAN_18", "search by keyword");
|
||||
define("CONTENT_LAN_19", "search");
|
||||
define("CONTENT_LAN_20", "content search results");
|
||||
define("CONTENT_LAN_21", "no content types yet.");
|
||||
define("CONTENT_LAN_22", "content types");
|
||||
define("CONTENT_LAN_23", "Recent Content List");
|
||||
define("CONTENT_LAN_24", "breadcrumb");
|
||||
define("CONTENT_LAN_25", "Content Categories");
|
||||
define("CONTENT_LAN_26", "Content Category");
|
||||
define("CONTENT_LAN_27", "subcategories");
|
||||
define("CONTENT_LAN_28", "parent subcategories");
|
||||
define("CONTENT_LAN_29", "unknown");
|
||||
define("CONTENT_LAN_30", "content item");
|
||||
define("CONTENT_LAN_31", "content items");
|
||||
define("CONTENT_LAN_32", "Content Author List");
|
||||
define("CONTENT_LAN_33", "Go To Page");
|
||||
define("CONTENT_LAN_34", "content");
|
||||
define("CONTENT_LAN_35", "comments");
|
||||
define("CONTENT_LAN_36", "moderate comments");
|
||||
define("CONTENT_LAN_37", "no content items rated yet");
|
||||
define("CONTENT_LAN_38", "Top Rated Content");
|
||||
define("CONTENT_LAN_39", "author list");
|
||||
define("CONTENT_LAN_40", "author user details");
|
||||
define("CONTENT_LAN_41", "attached");
|
||||
define("CONTENT_LAN_42", "file");
|
||||
define("CONTENT_LAN_43", "files");
|
||||
define("CONTENT_LAN_44", "hits:");
|
||||
define("CONTENT_LAN_45", "author awarded score:");
|
||||
define("CONTENT_LAN_46", "article index");
|
||||
define("CONTENT_LAN_47", "author");
|
||||
define("CONTENT_LAN_48", "content items");
|
||||
define("CONTENT_LAN_49", "last content item");
|
||||
define("CONTENT_LAN_50", "date");
|
||||
define("CONTENT_LAN_51", "Type List");
|
||||
define("CONTENT_LAN_52", "no valid authors found");
|
||||
define("CONTENT_LAN_53", "item");
|
||||
define("CONTENT_LAN_54", "items");
|
||||
define("CONTENT_LAN_55", "last item on");
|
||||
define("CONTENT_LAN_56", "show overview of");
|
||||
define("CONTENT_LAN_57", "comments:");
|
||||
define("CONTENT_LAN_58", "home");
|
||||
define("CONTENT_LAN_59", "content");
|
||||
define("CONTENT_LAN_60", "recent");
|
||||
define("CONTENT_LAN_61", "view recent items");
|
||||
define("CONTENT_LAN_62", "view all categories");
|
||||
define("CONTENT_LAN_63", "view all authors");
|
||||
define("CONTENT_LAN_64", "view top rated items");
|
||||
define("CONTENT_LAN_65", "submit content");
|
||||
define("CONTENT_LAN_66", "click here to submit content, you can choose the category on the submit page.");
|
||||
define("CONTENT_LAN_67", "submit and manage content");
|
||||
define("CONTENT_LAN_68", "click here to submit or manage content.");
|
||||
define("CONTENT_LAN_69", "email the");
|
||||
define("CONTENT_LAN_70", "print the");
|
||||
define("CONTENT_LAN_71", "content item");
|
||||
define("CONTENT_LAN_72", "category item");
|
||||
define("CONTENT_LAN_73", "no content items yet");
|
||||
define("CONTENT_LAN_74", "");
|
||||
define("CONTENT_LAN_75", "submit content item");
|
||||
define("CONTENT_LAN_76", "create pdf file of the");
|
||||
define("CONTENT_LAN_77", "content search");
|
||||
define("CONTENT_LAN_78", "untitled page");
|
||||
define("CONTENT_LAN_79", "page");
|
||||
define("CONTENT_LAN_80", "recent items : ");
|
||||
define("CONTENT_LAN_81", "categories");
|
||||
define("CONTENT_LAN_82", "no items yet in");
|
||||
define("CONTENT_LAN_83", "item archive");
|
||||
define("CONTENT_LAN_84", "Content Archive");
|
||||
define("CONTENT_LAN_85", "authorlist");
|
||||
define("CONTENT_LAN_86", "view top score items");
|
||||
define("CONTENT_LAN_87", "Top Score Content");
|
||||
define("CONTENT_LAN_88", "no content items have a score yet");
|
||||
define("CONTENT_LAN_89", "select page");
|
||||
define("CONTENT_LAN_90", "previous page");
|
||||
define("CONTENT_LAN_91", "next page");
|
||||
define("CONTENT_LAN_92", " - current");
|
||||
|
||||
define('CONTENT_LAN_ALL', 'all');
|
||||
|
||||
define("CONTENT_MENU_LAN_0", "content Menu :");
|
||||
define("CONTENT_MENU_LAN_1", "no content items yet");
|
||||
define("CONTENT_MENU_LAN_2", "recent items");
|
||||
define("CONTENT_MENU_LAN_3", "categories");
|
||||
define("CONTENT_MENU_LAN_4", "content links");
|
||||
define("CONTENT_MENU_LAN_5", "");
|
||||
define("CONTENT_MENU_LAN_6", "");
|
||||
define("CONTENT_MENU_LAN_7", "");
|
||||
define("CONTENT_MENU_LAN_8", "");
|
||||
define("CONTENT_MENU_LAN_9", "");
|
||||
define("CONTENT_MENU_LAN_10", "");
|
||||
define("CONTENT_MENU_LAN_11", "");
|
||||
define("CONTENT_MENU_LAN_12", "");
|
||||
define("CONTENT_MENU_LAN_13", "");
|
||||
define("CONTENT_MENU_LAN_14", "");
|
||||
define("CONTENT_MENU_LAN_15", "");
|
||||
define("CONTENT_MENU_LAN_16", "");
|
||||
define("CONTENT_MENU_LAN_17", "");
|
||||
define("CONTENT_MENU_LAN_18", "");
|
||||
define("CONTENT_MENU_LAN_19", "");
|
||||
define("CONTENT_MENU_LAN_20", "");
|
||||
|
||||
define("CONTENT_MANAGER_LAN_1", "create content");
|
||||
define("CONTENT_MANAGER_LAN_2", "edit content");
|
||||
define("CONTENT_MANAGER_LAN_3", "approve submitted ");
|
||||
define("CONTENT_MANAGER_LAN_4", "submit content");
|
||||
|
||||
define("CONTENT_E_LIST_LAN_1", "no valid content category");
|
||||
|
||||
?>
|
@@ -1,699 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/languages/English/lan_content_admin.php,v $
|
||||
| $Revision$
|
||||
| $Date$
|
||||
| $Author$
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
|
||||
define("CONTENT_PLUGIN_LAN_1", "Content Management");
|
||||
define("CONTENT_PLUGIN_LAN_2", "A Complete Content Management Section.");
|
||||
define("CONTENT_PLUGIN_LAN_3", "Configure Content Management");
|
||||
define("CONTENT_PLUGIN_LAN_4", "This plugin is now ready to be used.");
|
||||
define("CONTENT_PLUGIN_LAN_5", "Content");
|
||||
define("CONTENT_PLUGIN_LAN_6", "Content Management Plugin table structure updated");
|
||||
|
||||
|
||||
define("CONTENT_LATEST_LAN_1", "Submitted Content Items:");
|
||||
define("CONTENT_STATUS_LAN_1", "Content Items:");
|
||||
|
||||
|
||||
define("CONTENT_TEMPLATE_LAN_1", "id:");
|
||||
define("CONTENT_TEMPLATE_LAN_2", "author:");
|
||||
define("CONTENT_TEMPLATE_LAN_3", "view item:");
|
||||
define("CONTENT_TEMPLATE_LAN_4", "subheading:");
|
||||
define("CONTENT_TEMPLATE_LAN_5", "category:");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_CAT_LAN_0", "create content category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_1", "edit content category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_2", "heading");
|
||||
define("CONTENT_ADMIN_CAT_LAN_3", "subheading");
|
||||
define("CONTENT_ADMIN_CAT_LAN_4", "text");
|
||||
define("CONTENT_ADMIN_CAT_LAN_5", "icon");
|
||||
define("CONTENT_ADMIN_CAT_LAN_6", "submit");
|
||||
define("CONTENT_ADMIN_CAT_LAN_7", "update");
|
||||
define("CONTENT_ADMIN_CAT_LAN_8", "view icons");
|
||||
define("CONTENT_ADMIN_CAT_LAN_9", "no content categories yet");
|
||||
define("CONTENT_ADMIN_CAT_LAN_10", "content categories");
|
||||
define("CONTENT_ADMIN_CAT_LAN_11", "content category created");
|
||||
define("CONTENT_ADMIN_CAT_LAN_12", "content category updated");
|
||||
define("CONTENT_ADMIN_CAT_LAN_13", "required field(s) left blank");
|
||||
define("CONTENT_ADMIN_CAT_LAN_14", "comments");
|
||||
define("CONTENT_ADMIN_CAT_LAN_15", "rating");
|
||||
define("CONTENT_ADMIN_CAT_LAN_16", "print email/icons");
|
||||
define("CONTENT_ADMIN_CAT_LAN_17", "visibility");
|
||||
define("CONTENT_ADMIN_CAT_LAN_18", "author");
|
||||
define("CONTENT_ADMIN_CAT_LAN_19", "content category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_20", "options");
|
||||
define("CONTENT_ADMIN_CAT_LAN_21", "clear form");
|
||||
define("CONTENT_ADMIN_CAT_LAN_22", "options updated");
|
||||
define("CONTENT_ADMIN_CAT_LAN_23", "content category deleted");
|
||||
define("CONTENT_ADMIN_CAT_LAN_24", "id");
|
||||
define("CONTENT_ADMIN_CAT_LAN_25", "icon");
|
||||
define("CONTENT_ADMIN_CAT_LAN_26", "new main category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_27", "category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_28", "Assign users from the left window to the Personal Content Manager for this category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_29", "Admins - click to move ... ");
|
||||
define("CONTENT_ADMIN_CAT_LAN_30", "Submit And Content Manager");
|
||||
define("CONTENT_ADMIN_CAT_LAN_31", "remove");
|
||||
define("CONTENT_ADMIN_CAT_LAN_32", "clear managers");
|
||||
define("CONTENT_ADMIN_CAT_LAN_33", "assign Submit And Content Managers");
|
||||
define("CONTENT_ADMIN_CAT_LAN_34", "admins successfully assigned to the category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_35", "content sub category deleted");
|
||||
define("CONTENT_ADMIN_CAT_LAN_36", "Category check: there are still subcategories present, the category will NOT be deleted. First remove all subcategories and then try again.");
|
||||
define("CONTENT_ADMIN_CAT_LAN_37", "content items check: there are still content items present, the category will NOT be deleted. First remove all content items and then try again.");
|
||||
define("CONTENT_ADMIN_CAT_LAN_38", "content items check: no items found");
|
||||
define("CONTENT_ADMIN_CAT_LAN_39", "category check: no subcategories found");
|
||||
define("CONTENT_ADMIN_CAT_LAN_40", "Below you see a list of the main category and all subcategories if present.<br />");
|
||||
define("CONTENT_ADMIN_CAT_LAN_41", "The personal manager of content categories allows you to assign certain other admins to a category. With this privilege these admins can manage their own, and only their own, personal content items in this specified category, without the need to have control over the full content manager plugin. From the normal content page outside of the admin area they will see a personal manager icon which redirects them to the personal manager page.");
|
||||
define("CONTENT_ADMIN_CAT_LAN_42", "to re-edit the same category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_43", "click here");
|
||||
define("CONTENT_ADMIN_CAT_LAN_44", "to add another category in the earlier selected main category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_45", "allow comments?");
|
||||
define("CONTENT_ADMIN_CAT_LAN_46", "allow rating?");
|
||||
define("CONTENT_ADMIN_CAT_LAN_47", "display print/email icons?");
|
||||
define("CONTENT_ADMIN_CAT_LAN_48", "choose which users see this item");
|
||||
define("CONTENT_ADMIN_CAT_LAN_49", "choose an icon for this category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_50", "Only if you have created a New Main Parent Category, a menu file has been created.<br />This menu file has been created in your /menus folder.<br />In order to see the menu in action, you still need to activate the menu in your <a href='".e_ADMIN."menus.php'>admin menus area</a>.<br /><br />");
|
||||
define("CONTENT_ADMIN_CAT_LAN_51", "error; menu file not created");
|
||||
define("CONTENT_ADMIN_CAT_LAN_52", "ALWAYS choose a category first before you fill in other fields!");
|
||||
define("CONTENT_ADMIN_CAT_LAN_53", "to manage another category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_54", "user");
|
||||
define("CONTENT_ADMIN_CAT_LAN_55", "users");
|
||||
define("CONTENT_ADMIN_CAT_LAN_56", "item");
|
||||
define("CONTENT_ADMIN_CAT_LAN_57", "items");
|
||||
define("CONTENT_ADMIN_CAT_LAN_58", "category icon successfully uploaded<br />notice: you still need to assign the icon to this category in the icon>choose existing icon area !<br />and of course after that you still need to submit the form to create/update this category");
|
||||
define("CONTENT_ADMIN_CAT_LAN_59", "category icon not uploaded");
|
||||
define("CONTENT_ADMIN_CAT_LAN_60", "assign an icon");
|
||||
define("CONTENT_ADMIN_CAT_LAN_61", "upload a new icon");
|
||||
define("CONTENT_ADMIN_CAT_LAN_62", "After you have uploaded a new category icon, you can assign this icon in the below 'icon' area<br />If you upload a new icon, this icon will be scaled to 48 pixels, and additionally a small 16 pixels icon will be created as well<br /><br />");
|
||||
define("CONTENT_ADMIN_CAT_LAN_63", "upload icon");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_0", "approve submitted");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_1", "users with this class are able to approve submitted content items");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_2", "personal manager");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_3", "users with this class are able to create and manage their personal content items");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_4", "category manager");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_5", "users with this class are able to create and manage all content items in this category");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_6", "submit content");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_7", "users with this class are able to submit content items in this category");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_8", "manager inherit preferences updated");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_9", "manage permissions");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_ITEM_LAN_0", "required field(s) left blank");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_1", "content item created");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_2", "content item updated");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_3", "content item deleted");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_4", "no content items yet");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_5", "existing content items");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_6", "first letters");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_7", "please select a letter above.");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_8", "id");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_9", "icon");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_10", "author");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_11", "heading");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_12", "options");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_13", "choose parent category");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_14", "name");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_15", "email");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_16", "subheading");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_17", "summary");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_18", "text");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_19", "upload icon");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_20", "icon");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_21", "This option is disabled as file uploading is not enabled on your server");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_22", "The");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_23", "folder is not writable, you need to CHMOD 777 the folder before uploading");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_24", "attachments");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_25", "upload new icon");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_26", "remove");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_27", "present content file");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_28", "upload new file");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_29", "no file yet");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_30", "content file");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_31", "images");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_32", "present content image");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_33", "upload new image");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_34", "content image");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_35", "set preferences for this content item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_36", "comments");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_37", "rating");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_38", "print email/icons");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_39", "visibility");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_40", "score");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_41", "select a score ...");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_42", "tick to update timestamp to current time");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_43", "post user submitted content item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_44", "create content item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_45", "update content item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_46", "preview");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_47", "preview again");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_48", "main parent");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_49", "submitted content items");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_50", "no submitted content items");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_51", "author details");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_52", "submit content item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_53", "meta keywords");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_54", "additional data");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_55", "Go back to the <a href='".e_SELF."'>main content manager page</a> to manage more of your personal content<br />or<br />Go to the <a href='".e_PLUGIN."content/content.php'>content main page</a> to view content items.");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_56", "submit and manage content");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_57", "category");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_58", "items");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_59", "move");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_60", "order");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_61", "update order");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_62", "order categories");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_63", "inc");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_64", "dec");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_65", "order content items");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_66", "Below you see the distinct letters of the content heading for all items in this category.<br />By clicking on one of the letters you will see a list of all items starting with the selected letter. You can also choose the ALL button to display all items in this category.");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_67", "Below you see the content items listed for the selected category or narrowed down with a selected letter.<br />You can edit or delete an item by clicking the appropriate buttons on the right.");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_68", "Below you have the ability to add custom data for this content item. Each custom data needs to have both a key and a value data present. You can specify the key in the left field and the corresponding value in the right field.<br />(for instance, key='photography' and value='all photos are made by me'.");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_69", "Here you can upload icons, attachments and/or images to go with the content item. The allowed filetypes are : ");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_70", "Separate each word with commas, no spaces are allowed !");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_71", "leave if item written by you");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_72", "define author details");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_73", "define a start date for this item (leave if none needed)");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_74", "define an end date for this item (leave if none needed)");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_75", "assign an icon");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_76", "assign attachments");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_77", "assign images");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_78", "allow comments?");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_79", "allow rating?");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_80", "display print/email icons?");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_81", "choose which users see this item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_82", "define a score");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_83", "define meta keywords");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_84", "define custom data fields (key + value)");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_85", "enabled");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_86", "disabled");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_87", "choose an icon for this item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_88", "to create an item in the earlier selected main category");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_89", "to edit an item in the earlier selected main category");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_90", "click here");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_91", "to re-edit the same item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_92", "layout");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_93", "choose a layout scheme");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_94", "select a layout scheme");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_95", "upload a new icon");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_96", "choose an existing icon");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_97", "After you have uploaded a new icon, you can assign it in the below 'choose an existing icon' area");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_98", "upload a new attachment");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_99", "choose an existing attachment");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_100", "After you have uploaded a new attachment, you can assign it in the below 'choose an existing attachment' area");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_101", "upload a new image");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_102", "choose an existing image");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_103", "After you have uploaded a new image, you can assign it in the below 'choose an existing image' area");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_104", "upload");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_105", "view");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_106", "icon successfully uploaded<br />notice: you still need to assign the icon to this content item in the 'choose an existing icon' area !<br />and of course after that you still need to submit the form to create/update the content item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_107", "icon not uploaded");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_108", "attachment successfully uploaded<br />notice: you still need to assign the attachment to this content item in the 'choose an existing attachment' area !<br />and of course after that you still need to submit the form to create/update the content item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_109", "attachment not uploaded");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_110", "image successfully uploaded<br />notice: you still need to assign the image to this content item in the 'choose an existing image' area !<br />and of course after that you still need to submit the form to create/update the content item");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_111", "image not uploaded");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_112", "upload an icon, attachment or image");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_113", "choose the type of upload in the select box before you upload the file");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_114", "icon");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_115", "attachment");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_116", "image");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_117", "submitted content item posted");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_118", "no");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_119", "assigned");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_120", "default layout");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_121", "no new icon uploaded yet");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_122", "no new attachment uploaded yet");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_123", "no new image uploaded yet");
|
||||
define("CONTENT_ADMIN_ITEM_LAN_124", "to view the item");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_ORDER_LAN_0", "order is increased");
|
||||
define("CONTENT_ADMIN_ORDER_LAN_1", "order is decreased");
|
||||
define("CONTENT_ADMIN_ORDER_LAN_2", "new order for content items is saved");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_MAIN_LAN_0", "existing content categories");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_1", "no content categories yet");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_2", "main content categories");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_3", "content item deleted");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_4", "parent text");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_5", "parent icon");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_6", "");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_7", "Welcome to the Content Management System !");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_8", "This information is shown because the table of the Content Management Plugin contains no records.");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_9", "Please read the following information carefully and choose what you want to do.");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_10", "You can manage content items on this page. First decide the category you would like to manage content for. Select a category in the select box to start managing content for that category.");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_11", "Since the old content table contains records, you can choose one of the following three options:");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_12", "");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_13", "You can create new content items on this page. First decide the category you would like to manage content for. Click on the button of the main parents listed below to create new content in that main category.");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_14", "You can set the order for content items on this page. Click on the button of the main parents listed below to start ordering content items or categories for the selected main category.");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_15", "You can manage categories on this page. Choose the main category from the buttons listed below to show an overview of all categories and subcategories within that main category.");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_16", "You can create new categories on this page. By default the creation form for a new main category is shown. If you would like to create a subcategory for an existing main category, please click on one of the buttons listed below to show the creation form for a subcategory within the selected main category.");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_17", "please create a new category on the <a href='".e_SELF."?type.0.cat.create'>Create New Category</a> page");
|
||||
|
||||
define("CONTENT_ADMIN_MAIN_LAN_18", "Convert records");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_19", "
|
||||
The first thing you need to do is create a backup of your existing content table as well as your comments and rate table.<br />
|
||||
Use a program to backup your content table, like phpMyAdmin.<br />
|
||||
After you have created a backup of your old content table, you can start converting the records to the new Content Management Plugin.<br />
|
||||
After you have converted your old content, you should no longer see this information, and be able to manage your existing content.<br />
|
||||
");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_20", "Start with an empty content table");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_21", "
|
||||
If you no longer need the records from your old content table,<br />
|
||||
and just want to start with a fresh new Content Management Plugin table,<br />
|
||||
and you do not want to create a default set of categories,<br />
|
||||
you can start by creating a new category.<br />
|
||||
");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_22", "Create a default set of categories");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_23", "
|
||||
If you want to start with a fresh install, you can first create a default set of content categories.<br />
|
||||
With this default set three main parent categories will be created, namely Content, Review and Article.<br />
|
||||
");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_24", "This is a fresh install / The old content table does not contain records");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_25", "
|
||||
Since the old existing content table does not contain any records, you can now start managing new content.<br />
|
||||
By clicking the next button, you will automatically create a default set of categories, namely Content, Review and Article.<br />
|
||||
");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_26", "preview");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_27", "preview again");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_28", "choose category ...");
|
||||
define("CONTENT_ADMIN_MAIN_LAN_29", "NEW MAIN CATEGORY");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_MENU_LAN_0", "Manage Content");
|
||||
define("CONTENT_ADMIN_MENU_LAN_1", "Create Content");
|
||||
define("CONTENT_ADMIN_MENU_LAN_2", "Manage Category");
|
||||
define("CONTENT_ADMIN_MENU_LAN_3", "Create Category");
|
||||
define("CONTENT_ADMIN_MENU_LAN_4", "Submitted Content Items");
|
||||
define("CONTENT_ADMIN_MENU_LAN_5", "Category");
|
||||
define("CONTENT_ADMIN_MENU_LAN_6", "Options");
|
||||
define("CONTENT_ADMIN_MENU_LAN_7", "Admin : Create");
|
||||
define("CONTENT_ADMIN_MENU_LAN_8", "Submit Item");
|
||||
define("CONTENT_ADMIN_MENU_LAN_9", "Path And Theme");
|
||||
define("CONTENT_ADMIN_MENU_LAN_10", "General");
|
||||
define("CONTENT_ADMIN_MENU_LAN_11", "Content Item Preview");
|
||||
define("CONTENT_ADMIN_MENU_LAN_12", "Category pages");
|
||||
define("CONTENT_ADMIN_MENU_LAN_13", "Content pages");
|
||||
define("CONTENT_ADMIN_MENU_LAN_14", "Menu");
|
||||
define("CONTENT_ADMIN_MENU_LAN_15", "Order");
|
||||
define("CONTENT_ADMIN_MENU_LAN_16", "Archive Page");
|
||||
define("CONTENT_ADMIN_MENU_LAN_17", "Submit And Content Manager");
|
||||
define("CONTENT_ADMIN_MENU_LAN_18", "Author Page");
|
||||
define("CONTENT_ADMIN_MENU_LAN_19", "Content Manager");
|
||||
define("CONTENT_ADMIN_MENU_LAN_20", "Top Rated Page");
|
||||
define("CONTENT_ADMIN_MENU_LAN_21", "Pages");
|
||||
define("CONTENT_ADMIN_MENU_LAN_22", "Top Score Page");
|
||||
define("CONTENT_ADMIN_MENU_LAN_23", "Admin : Create Category");
|
||||
define("CONTENT_ADMIN_MENU_LAN_24", "Breadcrumb");
|
||||
define("CONTENT_ADMIN_MENU_LAN_25", "Navigator / Search / Order");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_JS_LAN_0", "Are you sure you want to delete this category?");
|
||||
define("CONTENT_ADMIN_JS_LAN_1", "Are you sure you want to delete this content?");
|
||||
define("CONTENT_ADMIN_JS_LAN_2", "are you sure you want to remove the current image ?");
|
||||
define("CONTENT_ADMIN_JS_LAN_3", "are you sure you want to remove the current file ?");
|
||||
define("CONTENT_ADMIN_JS_LAN_4", "image");
|
||||
define("CONTENT_ADMIN_JS_LAN_5", "file");
|
||||
define("CONTENT_ADMIN_JS_LAN_6", "ID");
|
||||
define("CONTENT_ADMIN_JS_LAN_7", "are you sure you want to remove the current icon ?");
|
||||
define("CONTENT_ADMIN_JS_LAN_8", "icon");
|
||||
define("CONTENT_ADMIN_JS_LAN_9", "NOTICE :\\nonly empty categories can be deleted.\\na category is empty if it does NOT contain any subcategories and\\nif it does NOT contain any content items!");
|
||||
define("CONTENT_ADMIN_JS_LAN_10", "Are you sure you want to delete this submitted content before posting it?");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_SUBMIT_LAN_0", "you do not have enough permission or user submission is not enabled");
|
||||
define("CONTENT_ADMIN_SUBMIT_LAN_1", "content submit types");
|
||||
define("CONTENT_ADMIN_SUBMIT_LAN_2", "Thank you, your content item has been submitted.");
|
||||
define("CONTENT_ADMIN_SUBMIT_LAN_3", "Thank you, your content item has been submitted and will be reviewed by a site administrator in due course.");
|
||||
define("CONTENT_ADMIN_SUBMIT_LAN_4", "required field(s) left blank");
|
||||
define("CONTENT_ADMIN_SUBMIT_LAN_5", "Go back to the <a href='".e_SELF."'>main submission page</a> to submit more content<br />or<br />Go to the <a href='".e_PLUGIN."content/content.php'>content main page</a> to view content items.");
|
||||
define("CONTENT_ADMIN_SUBMIT_LAN_6", "");
|
||||
define("CONTENT_ADMIN_SUBMIT_LAN_7", "");
|
||||
define("CONTENT_ADMIN_SUBMIT_LAN_8", "submitted content item deleted");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_0", "content");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_1", "review");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_2", "article");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_3", "category");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_4", "categories");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_5", "page");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_6", "pages");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_7", "main parent inserted");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_8", "main parent preferences inserted");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_9", "no");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_10", "main parent needed");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_11", "conversion analysis");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_12", "total rows to convert");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_13", "total converted rows");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_14", "total warnings");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_15", "total failures");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_16", "analysis of the old content table");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_17", "total rows");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_18", "unknown rows");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_19", "all rows are familiar");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_20", "content main parent");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_21", "review main parent");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_22", "article main parent");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_23", "insertion failed");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_24", "no content pages present");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_25", "content pages present");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_26", "inserted");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_27", "analysis of the conversion");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_28", "total old rows");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_29", "total new rows");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_30", "failed");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_31", "warnings");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_32", "old category does not exist: items added to higher category");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_33", "new category does not exist: items added to higher category");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_34", "no");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_35", "category pages present");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_36", "pages and/or submitted pages present");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_37", "conversion of categories");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_38", "valid inserts");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_39", "failed inserts");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_40", "warning");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_41", "warning");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_42", "conversion results of the old content table to the new content plugin table");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_43", "press the button to convert the old content table");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_44", "the new content table already contains data !<br />are you sure you want to convert the old content table to the new content table ?<br /><br />if you still would like to convert the table, the old content data will be added to the already existing new content table, but no guarantee can be made to assure that all items will be added to already existing new categories in a correct manner !");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_45", "insertion failed: main parent not inserted");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_46", "Start managing your content by going to the <a href='".e_PLUGIN."content/admin_content_config.php'>Content Manager Plugin Frontpage</a> !");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_47", "conversion completed");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_48", "click here for details");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_49", "conversion of pages");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_50", "conversion of main parents");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_51", "unknown rows");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_52", "default set of main parent categories created");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_53", "a main parent by this name already exists");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_54", "create a default set of parent categories (content, review and article)");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_55", "content management plugin : conversion options");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_56", "click the button to go to the Content Create New Category page.");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_57", "choose parent");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_58", "upgrade successful<br /><br /><b>Please note:<br />you need to reconfigure the options for each main parent<br />and you need to delete the menus you've created in your content/menus folder, and recreate them by updating the options for the specific main parents you want to use menus for.</b>");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_59", "convert table");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_60", "create defaults");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_61", "create new category");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_62", "Content Management Plugin Version updated to version:");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_63", "upgrade");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_64", "Content Management Plugin table structure updated");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_65", "Content Management Plugin : content_author updated");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_66", "Content Management Plugin : content_preferences and menus updated");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_67", "Content Management Plugin : content_preferences updated");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_68", "Content Management Plugin : content_theme updated");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_69", "");
|
||||
define("CONTENT_ADMIN_CONVERSION_LAN_70", "");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_1", "Options:");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_2", "Pages:");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_3", "Admin : Create Item");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_4", "options : submit content");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_5", "Path Locations");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_6", "General");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_7", "Content Manager");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_8", "Menu Properties");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_9", "Content Item Preview");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_10", "Category pages");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_11", "Content pages");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_12", "Author Page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_13", "Archive Page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_14", "Top Rated Page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_15", "Top Score Page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_16", "all categories page (all categories in the main parent)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_17", "view category page (parent item, subcategories and content items in that category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_18", "categories");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_19", "recent items list");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_20", "links to pages");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_21", "Admin : Create Category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_22", "Theme and Layout");
|
||||
define("CONTENT_ADMIN_OPT_LAN_MENU_23", "options : content managers");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_0", "sections");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_1", "choose what will be displayed");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_2", "attachments");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_3", "images");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_4", "comment");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_5", "rating");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_6", "score");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_7", "visibility");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_8", "meta definition");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_9", "layout schemes");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_10", "custom data tags");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_11", "preset data tags");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_12", "subheading");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_13", "summary");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_14", "text (define amount of words)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_15", "date");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_16", "author : name");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_17", "author : email");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_18", "author : link to author profile");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_19", "author : link to author list");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_20", "email/print/pdf icon");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_21", "parent breadcrumb");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_22", "refer (only if logging enabled)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_23", "amount of items");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_24", "last item of each author");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_25", "amount of items by each author");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_26", "edit icon for fast editing");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_27", "icon");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_28", "of the category item");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_29", "of the list of subcategories");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_30", "enabled");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_31", "disabled");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_32", "subheading");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_33", "start date");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_34", "end date");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_35", "upload icon");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_36", "assign icon");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_37", "Admin : Create Category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_38", "summary");
|
||||
define("CONTENT_ADMIN_OPT_LAN_SECTION_39", "");
|
||||
|
||||
|
||||
define("CONTENT_PRESET_LAN_0", "error : fieldname not filled in");
|
||||
define("CONTENT_PRESET_LAN_1", "error : not all fields are filled in correctly<br />all fields need to be filled in");
|
||||
define("CONTENT_PRESET_LAN_2", "");
|
||||
define("CONTENT_PRESET_LAN_3", "both size and maxsize need to be numeric values");
|
||||
define("CONTENT_PRESET_LAN_4", "both cols and rows need to be numeric values");
|
||||
define("CONTENT_PRESET_LAN_5", "you need to provide some options");
|
||||
define("CONTENT_PRESET_LAN_6", "both year from and year to need to be numeric values");
|
||||
define("CONTENT_PRESET_LAN_7", "Content Preset Field Generator");
|
||||
define("CONTENT_PRESET_LAN_8", "create a new preset data tag of type");
|
||||
define("CONTENT_PRESET_LAN_9", "fieldname");
|
||||
define("CONTENT_PRESET_LAN_10", "size");
|
||||
define("CONTENT_PRESET_LAN_11", "maxlength");
|
||||
define("CONTENT_PRESET_LAN_12", "cols");
|
||||
define("CONTENT_PRESET_LAN_13", "rows");
|
||||
define("CONTENT_PRESET_LAN_14", "years from");
|
||||
define("CONTENT_PRESET_LAN_15", "years to");
|
||||
define("CONTENT_PRESET_LAN_16", "options");
|
||||
define("CONTENT_PRESET_LAN_17", "add more");
|
||||
define("CONTENT_PRESET_LAN_18", "add preset");
|
||||
define("CONTENT_PRESET_LAN_19", "you need to provide an equal amount of text and value fields");
|
||||
define("CONTENT_PRESET_LAN_20", "you need to provide a value for the checkbox");
|
||||
define("CONTENT_PRESET_LAN_21", "text");
|
||||
define("CONTENT_PRESET_LAN_22", "value");
|
||||
define("CONTENT_PRESET_LAN_23", "choose text");
|
||||
define("CONTENT_PRESET_LAN_24", "the first option with no value");
|
||||
define("CONTENT_PRESET_LAN_25", "add field ...");
|
||||
define("CONTENT_PRESET_LAN_26", "text");
|
||||
define("CONTENT_PRESET_LAN_27", "textarea");
|
||||
define("CONTENT_PRESET_LAN_28", "select");
|
||||
define("CONTENT_PRESET_LAN_29", "date");
|
||||
define("CONTENT_PRESET_LAN_30", "checkbox");
|
||||
define("CONTENT_PRESET_LAN_31", "radio");
|
||||
define("CONTENT_PRESET_LAN_32", "example:");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_OPT_LAN_0", "options");
|
||||
define("CONTENT_ADMIN_OPT_LAN_1", "default preferences");
|
||||
define("CONTENT_ADMIN_OPT_LAN_2", "update options");
|
||||
define("CONTENT_ADMIN_OPT_LAN_3", "number of images that can be uploaded");
|
||||
define("CONTENT_ADMIN_OPT_LAN_4", "number of attachments that can be uploaded");
|
||||
define("CONTENT_ADMIN_OPT_LAN_5", "number of custom data tags available");
|
||||
define("CONTENT_ADMIN_OPT_LAN_6", "preset data tags");
|
||||
define("CONTENT_ADMIN_OPT_LAN_7", "define default preset data tags");
|
||||
//define("CONTENT_ADMIN_OPT_LAN_8", "Here you can provide additional preset data tags. The fields you provide here are the keys of the key=>value data tags. They will have a input element for the value to be set in the admin creation form. You can choose from the pull-down menu which type of element you want the preset data tag to be. Note: these are not part of the amount of custom data tags you have specified above, and will be used additionally. These Preset Tags are very useful if you want to have a certain custom tag available standard for each new item. For instance, if you always want to be able to define a value for 'photographer' you can create such a preset tag, which will always be displayed for each new item in this main parent.");
|
||||
define("CONTENT_ADMIN_OPT_LAN_9", "allow submit items ?");
|
||||
define("CONTENT_ADMIN_OPT_LAN_10", "who can submit items ?");
|
||||
define("CONTENT_ADMIN_OPT_LAN_11", "direct posting");
|
||||
define("CONTENT_ADMIN_OPT_LAN_12", "if enabled, a submitted item is directly added in the database and will be immediately visible, else a site admin needs to approve the item.");
|
||||
define("CONTENT_ADMIN_OPT_LAN_13", "here you can define where your images are or will be stored. use braces ( { } ) for the general e107 related path variables (like ( {e_PLUGIN} or {e_IMAGE} ). for the content category icons two versions are needed, one small and one large set of icons. The TMP paths are needed for upload, you must create these!");
|
||||
define("CONTENT_ADMIN_OPT_LAN_15", "path to content cat icons (large)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_16", "path to content cat icons (small)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_17", "path to content item icons");
|
||||
define("CONTENT_ADMIN_OPT_LAN_18", "path to content item images");
|
||||
define("CONTENT_ADMIN_OPT_LAN_19", "path to content item attachments");
|
||||
define("CONTENT_ADMIN_OPT_LAN_20", "define theme for this main category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_21", "define default layout scheme");
|
||||
define("CONTENT_ADMIN_OPT_LAN_22", "activate logging of refer count");
|
||||
define("CONTENT_ADMIN_OPT_LAN_23", "show blank item icon if no icon present");
|
||||
define("CONTENT_ADMIN_OPT_LAN_24", "show blank category icon if no icon present");
|
||||
define("CONTENT_ADMIN_OPT_LAN_25", "select a layout scheme");
|
||||
define("CONTENT_ADMIN_OPT_LAN_26", "show breadcrumb on these pages:");
|
||||
define("CONTENT_ADMIN_OPT_LAN_27", "all categories");
|
||||
define("CONTENT_ADMIN_OPT_LAN_28", "single category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_29", "all authors");
|
||||
define("CONTENT_ADMIN_OPT_LAN_30", "single author");
|
||||
define("CONTENT_ADMIN_OPT_LAN_31", "recent");
|
||||
define("CONTENT_ADMIN_OPT_LAN_32", "content item");
|
||||
define("CONTENT_ADMIN_OPT_LAN_33", "top rated");
|
||||
define("CONTENT_ADMIN_OPT_LAN_34", "archive");
|
||||
define("CONTENT_ADMIN_OPT_LAN_35", "score");
|
||||
define("CONTENT_ADMIN_OPT_LAN_36", "breadcrumb separator character");
|
||||
define("CONTENT_ADMIN_OPT_LAN_37", "define how to render the breadcrumb information");
|
||||
define("CONTENT_ADMIN_OPT_LAN_38", "tmp");
|
||||
define("CONTENT_ADMIN_OPT_LAN_39", "echo");
|
||||
define("CONTENT_ADMIN_OPT_LAN_40", "use a separate menu");
|
||||
define("CONTENT_ADMIN_OPT_LAN_41", "combine into one menu");
|
||||
define("CONTENT_ADMIN_OPT_LAN_42", "");
|
||||
define("CONTENT_ADMIN_OPT_LAN_43", "display navigator on these pages:");
|
||||
define("CONTENT_ADMIN_OPT_LAN_44", "display search on these pages:");
|
||||
define("CONTENT_ADMIN_OPT_LAN_45", "");
|
||||
define("CONTENT_ADMIN_OPT_LAN_46", "display order option on these pages:");
|
||||
define("CONTENT_ADMIN_OPT_LAN_47", "");
|
||||
define("CONTENT_ADMIN_OPT_LAN_48", "rendertype navigator/search/order");
|
||||
define("CONTENT_ADMIN_OPT_LAN_49", "display limited number of items per page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_50", "how many items will be displayed");
|
||||
define("CONTENT_ADMIN_OPT_LAN_51", "choose a default sort method");
|
||||
define("CONTENT_ADMIN_OPT_LAN_52", "max image size");
|
||||
define("CONTENT_ADMIN_OPT_LAN_53", "define the size to which uploaded images will be resized to");
|
||||
define("CONTENT_ADMIN_OPT_LAN_54", "if the width or height of the uploaded image is greater than the given value, the image will be resized to this value.<br />the popup images will also be displayed with this value.");
|
||||
define("CONTENT_ADMIN_OPT_LAN_55", "thumb image size");
|
||||
define("CONTENT_ADMIN_OPT_LAN_56", "define the size of the thumb images that will be created with the uploaded image");
|
||||
define("CONTENT_ADMIN_OPT_LAN_57", "if the width or height of the uploaded image is greater than the given value, the image will be resized to this value.<br />the images will also be displayed with this value on the content page.");
|
||||
define("CONTENT_ADMIN_OPT_LAN_58", "max icon width");
|
||||
define("CONTENT_ADMIN_OPT_LAN_59", "define the maximum width of the icon on icon upload");
|
||||
define("CONTENT_ADMIN_OPT_LAN_60", "if the uploaded icon is greater than the given value, the icon will be resized to this value.<br />the icon will also be displayed with this value.");
|
||||
define("CONTENT_ADMIN_OPT_LAN_61", "px");
|
||||
define("CONTENT_ADMIN_OPT_LAN_62", "choose managers from this userclass");
|
||||
define("CONTENT_ADMIN_OPT_LAN_63", "For several areas you can define which userclass is able to actually view the page. With these options, you can limit certain areas and certain pages from view for certain userclasses.");
|
||||
define("CONTENT_ADMIN_OPT_LAN_64", "display email of non-member author");
|
||||
define("CONTENT_ADMIN_OPT_LAN_65", "display a letter index");
|
||||
define("CONTENT_ADMIN_OPT_LAN_66", "the letterindex is a list of buttons with all the first letters of the content heading fields. you can narrow down the archive list by clicking a certain letter so only content items starting with that letter will be displayed on the screen.");
|
||||
define("CONTENT_ADMIN_OPT_LAN_67", "define datestyle for display date");
|
||||
define("CONTENT_ADMIN_OPT_LAN_68", "For more information on date formats see the <a href='http://www.php.net/manual/en/function.strftime.php' rel='external'>strftime function page at php.net</a>");
|
||||
define("CONTENT_ADMIN_OPT_LAN_69", "display icons on all items<br />(print/email/pdf icons)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_70", "allow rating on all items");
|
||||
define("CONTENT_ADMIN_OPT_LAN_71", "allow comments on all items");
|
||||
define("CONTENT_ADMIN_OPT_LAN_72", "");
|
||||
define("CONTENT_ADMIN_OPT_LAN_73", "rendertype multipage index");
|
||||
define("CONTENT_ADMIN_OPT_LAN_74", "if you have a multipage article, you can either show the article index of these pages as a list of normal hyperlinks, or show them in a selectbox");
|
||||
define("CONTENT_ADMIN_OPT_LAN_75", "hyperlinks");
|
||||
define("CONTENT_ADMIN_OPT_LAN_76", "selectbox");
|
||||
define("CONTENT_ADMIN_OPT_LAN_77", "define amount of characters");
|
||||
define("CONTENT_ADMIN_OPT_LAN_78", "define a postfix");
|
||||
define("CONTENT_ADMIN_OPT_LAN_79", "leave blank to show full");
|
||||
define("CONTENT_ADMIN_OPT_LAN_80", "leave blank to show nothing");
|
||||
define("CONTENT_ADMIN_OPT_LAN_81", "define amount of words");
|
||||
define("CONTENT_ADMIN_OPT_LAN_82", "text");
|
||||
define("CONTENT_ADMIN_OPT_LAN_83", "add link to the postfix");
|
||||
define("CONTENT_ADMIN_OPT_LAN_84", "display the parent item");
|
||||
define("CONTENT_ADMIN_OPT_LAN_85", "display the parent subcategories");
|
||||
define("CONTENT_ADMIN_OPT_LAN_86", "display items of parent subcategories");
|
||||
define("CONTENT_ADMIN_OPT_LAN_87", "if enabled all items from the selected category and items from all underlying categories are shown.");
|
||||
define("CONTENT_ADMIN_OPT_LAN_88", "define display order of parent and child items");
|
||||
define("CONTENT_ADMIN_OPT_LAN_89", "parents first, then items");
|
||||
define("CONTENT_ADMIN_OPT_LAN_90", "items first, then parents");
|
||||
define("CONTENT_ADMIN_OPT_LAN_91", "rendertype for parent, sub and items");
|
||||
define("CONTENT_ADMIN_OPT_LAN_92", "each in a separate menu");
|
||||
define("CONTENT_ADMIN_OPT_LAN_93", "caption");
|
||||
define("CONTENT_ADMIN_OPT_LAN_94", "add search box");
|
||||
define("CONTENT_ADMIN_OPT_LAN_95", "add sort and order box");
|
||||
define("CONTENT_ADMIN_OPT_LAN_96", "show navigator links");
|
||||
define("CONTENT_ADMIN_OPT_LAN_97", "if disabled all link options below are disregarded");
|
||||
define("CONTENT_ADMIN_OPT_LAN_98", "link : all categories");
|
||||
define("CONTENT_ADMIN_OPT_LAN_99", "link : all authors");
|
||||
define("CONTENT_ADMIN_OPT_LAN_100", "link : all content items");
|
||||
define("CONTENT_ADMIN_OPT_LAN_101", "link : top rated");
|
||||
define("CONTENT_ADMIN_OPT_LAN_102", "link : top score");
|
||||
define("CONTENT_ADMIN_OPT_LAN_103", "link : recent items");
|
||||
define("CONTENT_ADMIN_OPT_LAN_104", "link : Submit And Content Manager");
|
||||
define("CONTENT_ADMIN_OPT_LAN_105", "icon : links");
|
||||
define("CONTENT_ADMIN_OPT_LAN_106", "none (), bullet (), middot (·), white bullet (º), arrow (»), category_icon()");
|
||||
define("CONTENT_ADMIN_OPT_LAN_107", "none");
|
||||
define("CONTENT_ADMIN_OPT_LAN_108", "bullet");
|
||||
define("CONTENT_ADMIN_OPT_LAN_109", "middot");
|
||||
define("CONTENT_ADMIN_OPT_LAN_110", "white bullet");
|
||||
define("CONTENT_ADMIN_OPT_LAN_111", "arrow");
|
||||
define("CONTENT_ADMIN_OPT_LAN_112", "category icon");
|
||||
define("CONTENT_ADMIN_OPT_LAN_113", "content icon");
|
||||
define("CONTENT_ADMIN_OPT_LAN_114", "rendertype for links");
|
||||
define("CONTENT_ADMIN_OPT_LAN_115", "caption for link list");
|
||||
define("CONTENT_ADMIN_OPT_LAN_116", "this caption will only be used if the links are shown as 'normallinks'.");
|
||||
define("CONTENT_ADMIN_OPT_LAN_117", "display categories");
|
||||
define("CONTENT_ADMIN_OPT_LAN_118", "include top level category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_119", "if disabled only the subcategories of the top level category are displayed");
|
||||
define("CONTENT_ADMIN_OPT_LAN_120", "display number of items in each category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_121", "icon: category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_122", "icon: category (default)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_123", "rendertype of category list");
|
||||
define("CONTENT_ADMIN_OPT_LAN_124", "caption category list");
|
||||
define("CONTENT_ADMIN_OPT_LAN_125", "display recent item list");
|
||||
define("CONTENT_ADMIN_OPT_LAN_126", "display date");
|
||||
define("CONTENT_ADMIN_OPT_LAN_127", "display author");
|
||||
define("CONTENT_ADMIN_OPT_LAN_128", "display subheading");
|
||||
define("CONTENT_ADMIN_OPT_LAN_129", "subheading : define amount of words");
|
||||
define("CONTENT_ADMIN_OPT_LAN_130", "subheading : define postfix");
|
||||
define("CONTENT_ADMIN_OPT_LAN_131", "how many items will be displayed");
|
||||
define("CONTENT_ADMIN_OPT_LAN_132", "icon for recent items");
|
||||
define("CONTENT_ADMIN_OPT_LAN_133", "icon : width");
|
||||
define("CONTENT_ADMIN_OPT_LAN_134", "if chosen 'content icon', define the width of the icon to use");
|
||||
define("CONTENT_ADMIN_OPT_LAN_135", "caption recent item list");
|
||||
define("CONTENT_ADMIN_OPT_LAN_136", "Back End");
|
||||
define("CONTENT_ADMIN_OPT_LAN_137", "Front End");
|
||||
define("CONTENT_ADMIN_OPT_LAN_138", "Manage Content");
|
||||
define("CONTENT_ADMIN_OPT_LAN_139", "Create Content");
|
||||
define("CONTENT_ADMIN_OPT_LAN_140", "Manage Category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_141", "Create Category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_142", "Order");
|
||||
define("CONTENT_ADMIN_OPT_LAN_143", "Options");
|
||||
define("CONTENT_ADMIN_OPT_LAN_144", "Submit And Content Manager");
|
||||
define("CONTENT_ADMIN_OPT_LAN_145", "Recent");
|
||||
define("CONTENT_ADMIN_OPT_LAN_146", "All Categories");
|
||||
define("CONTENT_ADMIN_OPT_LAN_147", "One Category");
|
||||
define("CONTENT_ADMIN_OPT_LAN_148", "Content Item");
|
||||
define("CONTENT_ADMIN_OPT_LAN_149", "Author Page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_150", "Archive Page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_151", "Top Rated Page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_152", "Top Score Page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_153", "Submit Page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_154", "Manager Page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_155", "caption");
|
||||
define("CONTENT_ADMIN_OPT_LAN_156", "caption index page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_157", "caption author page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_158", "append author name to caption");
|
||||
define("CONTENT_ADMIN_OPT_LAN_159", "caption category page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_160", "append category heading to caption");
|
||||
define("CONTENT_ADMIN_OPT_LAN_161", "caption parent subcategories (only used if rendertype is set to separate menus)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_162", "caption content items (only used if rendertype is set to separate menus)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_163", "show next and previous page links");
|
||||
define("CONTENT_ADMIN_OPT_LAN_164", "caption for previous page link<br />(use {PAGETITLE} to add the title of the previous page)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_165", "caption for next page link<br />(use {PAGETITLE} to add the title of the next page)");
|
||||
define("CONTENT_ADMIN_OPT_LAN_166", "use 'all' to show full text");
|
||||
define("CONTENT_ADMIN_OPT_LAN_167", "inherit");
|
||||
define("CONTENT_ADMIN_OPT_LAN_168", "first page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_169", "last page");
|
||||
define("CONTENT_ADMIN_OPT_LAN_170", "where should custom and preset tags be rendered in a multipage content item ?");
|
||||
define("CONTENT_ADMIN_OPT_LAN_171", "amount of levels");
|
||||
define("CONTENT_ADMIN_OPT_LAN_172", "numeric value to show that amount of levels of subcategories of the category tree. leave blank to show all levels.");
|
||||
define("CONTENT_ADMIN_OPT_LAN_173", "include 'home' in the breadcrumb");
|
||||
define("CONTENT_ADMIN_OPT_LAN_174", "include the content start page in the breadcrumb");
|
||||
define("CONTENT_ADMIN_OPT_LAN_175", "show menu only on content pages of this top level category?");
|
||||
define("CONTENT_ADMIN_OPT_LAN_176", "when assigning an icons, load all icons ? (default is disabled = only load tmp icons) useful if you want to reuse the same icons");
|
||||
define("CONTENT_ADMIN_OPT_LAN_177", "when assigning an attachment, load all ? (default is disabled = only load tmp attachments) useful if you want to reuse the same attachments");
|
||||
|
||||
define('CONTENT_ADMIN_OPT_LAN_178', 'Start times for items');
|
||||
|
||||
?>
|
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/languages/English/lan_content_frontpage.php,v $
|
||||
| $Revision$
|
||||
| $Date$
|
||||
| $Author$
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
define("CONT_FP_1", "Content category");
|
||||
define("CONT_FP_2", "main page");
|
||||
|
||||
?>
|
@@ -1,73 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/languages/English/lan_content_help.php,v $
|
||||
| $Revision$
|
||||
| $Date$
|
||||
| $Author$
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
define("CONTENT_ADMIN_HELP_1", "Content Management Help Area");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ITEM_1", "<i>if you have not yet added top level categories, please do so at the <a href='".e_SELF."?cat.create'>Create New Category</a> page.</i><br /><br /><b>category</b><br />select a category from the pull-down menu to manage content for that category.<br /><br />Selecting a top level category from the pull-down menu will show all content items in that top level category.<br />Selecting a subcategory will show only those content items in the specified subcategory.");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ITEM_2", "<b>first letters</b><br />if multiple content item starting letters of the content_heading are present, you will see buttons to select only those content items starting with that letter. Selecting the 'all' button will show a list containing all content items in this category.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_EDIT." : edit the content item<br />".CONTENT_ICON_DELETE." : delete the content item<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ITEMEDIT_1", "<b>edit form</b><br />you can now edit all information for this content item and submit your changes.<br /><br />If you need to change the category for this content item, please do so first. After you have selected the correct category, change or add any fields present, before you submit the changes.");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ITEMCREATE_1", "<b>category</b><br />please select a category from the select box to create your content item for.<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ITEMCREATE_2", "<b>creation form</b><br />you can now provide all information for this content item and submit it.<br /><br /><b>Be aware of the fact that different top level categories can have a different set of preferences; different fields can be available for you to fill in. Therefore you always need to select a category first before you fill in other fields!</b>");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_CAT_1", "<i>this page shows all categories and subcategories present.</i><br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_EDIT." : edit the category<br />".CONTENT_ICON_DELETE." : delete the category<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_CAT_2", "<i>this page allows you to create a new category</i><br /><br />Always choose a parent category before you fill in the other fields !<br /><br />This must be done, because some unique category preferences need to be loaded in the system.<br /><br />By default the category page is shown to create a new top level category.");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_CAT_3", "<i>this page shows the category edit form.</i><br /><br /><b>category edit form</b><br />you can now edit all information for this (sub)category and submit your changes.<br /><br />If you want to change the parent location for this category, please do so first. After you have set the correct category edit all other fields.");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ORDER_1", "<i>This page shows all categories and subcategories present.</i><br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_ORDERALL." : manage the global order of content item regardless of category.<br />".CONTENT_ICON_ORDERCAT." : manage the order of content items in the specific category.<br />".CONTENT_ICON_ORDER_UP." : the up button allows you to move a content item one up in order.<br />".CONTENT_ICON_ORDER_DOWN." : the down button allows you to move a content item one down in order.<br /><br /><b>order</b><br />here you can manually set the order of all the categories in this each parent. You need to change the values in the select boxes to the order of your kind and then press the update button below to save the new order.<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ORDER_2", "<i>This page shows all content items from the category you have selected.</i><br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_ORDER_UP." : the up button allows you to move a content item one up in order.<br />".CONTENT_ICON_ORDER_DOWN." : the down button allows you to move a content item one down in order.<br /><br /><b>order</b><br />here you can manually set the order of all the categories in this top level category. You need to change the values in the select boxes to the order of your kind and then press the update button below to save the new order.<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_ORDER_3", "<i>This page shows all content items from the top level category you have selected.</i><br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_ORDER_UP." : the up button allow you to move a content item one up in order.<br />".CONTENT_ICON_ORDER_DOWN." : the down button allow you to move a content item one down in order.<br /><br /><b>order</b><br />here you can manually set the order of all the categories in this top level category. You need to change the values in the select boxes to the order of your kind and then press the update button below to save the new order.<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_1", "On this page you can select a top level category to set options for, or you can choose to edit the default preferences.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_OPTIONS." : edit the options<br /><br /><br />The default preferences are only used when you create a new top level category and when you use the inherit option. So when you create a new top level category these default preferences will be stored. You can change these to make sure newly created top level categories already have a certain set of features present.<br /><br />Each top level category has its own set of options, which are unique to that specific top level category<br /><br /><b>inherit</b><br />The inherit checkboxes allow you to override the individual options for a top level category, and use the default preferences instead.");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_2", "");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_MANAGER_1", "On this page you see a list of all categories. You can manage the different userclasses for each category by clicking the icon.<br /><br /><b>explanation of icons</b><br />".CONTENT_ICON_DETAILS." : view detailed information<br />".CONTENT_ICON_CONTENTMANAGER_SMALL." : edit the personal content managers<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_MANAGER_2", "<i>on this page you can assign the userclasses to the selected category you have clicked</i><br /><br />You can define userclasses for the different types of managers and set certain options for the submit/create page. Currently there are four types of managers you can define:<br /><br /><b>submit content:</b> users with this class are able to submit content items<br /><br /><b>approve submitted:</b> users with this class are able to approve submitted content items<br /><br /><b>personal manager:</b> users with this class are able to manage only their personal content items<br /><br /><b>category manager:</b> users with this class are able to manage all content items in this category<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_SUBMIT_1", "<i>On this page you see a list of all content items that were submitted by users.</i><br /><br /><b>detailed list</b><br />You see a list of these content items with their id, icon, main parent, heading [subheading], author and options.<br /><br /><b>options</b><br />you can post or delete a content item using the buttons shown.");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_1", "This page allows you to set options for the admin create page for a content item and a category.<br /><br />You can define which sections are available when an admin (or manager) creates a new content item or category.<br /><br /><b>custom data tags</b><br />you can allow a user or admin to add optional fields to the content item by using these custom data tags. These optional fields are blank key=>value pairs. For instance: you could add a key field for 'photographer' and provide the value field with 'all photos by me'. Both these key and value fields are empty textfields which will be present in the create form.<br /><br /><b>preset data tags</b><br />apart from the custom data tags, you can provide preset data tags. The difference is that in preset data tags, the key field already is given and the user only needs to provide the value field for the preset. In the same example as above 'photographer' can be predefined, and the user needs to provide 'all photos by me'. You can choose the element type by selecting one option in the selectbox. In the popup window, you can provide all the information for the preset data tag.<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_2", "");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_3", "The General Options are options that are used throughout the content pages of the content management plugin.<br /><br />In the Path and Theme Options you can define where images and files are stored.<br /><br />you can define which theme will be used by this top level category. You can create additional themes by copying (and renaming) the whole 'default' directory in your templates directory.<br /><br />You can define a default layout scheme for new content items. You can create new layout schemes by creating a content_content_template_XXX.php file in your 'templates/default' folder. These layouts can be used to give each content item in this top level category a different layout.<br /><br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_4", "");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_5", "");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_6", "These Options are used in the Menu for top level category, if you have activated the menu.<br /><br />".CONTENT_ADMIN_OPT_LAN_68);
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_7", "The Content Item Preview options have affect on the small preview that is given for a content item.<br /><br />This preview is given on several pages, like the recent page, the view items in category page and the view items of author page.<br /><br />".CONTENT_ADMIN_OPT_LAN_68."");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_8", "The Category Pages show information on the content categories in this top level category.<br /><br />There are two distinct areas present:<br /><br />all categories page:<br />this page shows all the categories in this top level category<br /><br />view category page:<br />this page shows the category item, optionally the subcategories in that category and the content items in that category or those categories<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_9", "The Content Page shows the Content Item.<br /><br />you can define which sections to show by checking/unchecking the boxes.<br /><br />you can show the email address of a non-member author.<br /><br />you can override the email/print/pdf icons, the rating system and the comments.<br /><br />".CONTENT_ADMIN_OPT_LAN_74."");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_10", "The Author Page shows a list of all unique authors of the content items in this main parent.<br /><br />you can define which sections to show by checking/unchecking the boxes.<br /><br />You can limit the number of items to show per page.<br />");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_11", "The Archive Page shows all content items in the top level category.<br /><br />you can define which sections to show by checking/unchecking the boxes.<br /><br />you can show the email address of a non-member author.<br /><br />You can limit the number of items to show per page.<br /><br />".CONTENT_ADMIN_OPT_LAN_66."<br /><br />".CONTENT_ADMIN_OPT_LAN_68."");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_12", "The Top Rated Page shows all content items that have been rated by users.<br /><br />You can choose the sections to display by checking the boxes.<br /><br />Also you can define if the email address of a non-member author will be displayed.");
|
||||
|
||||
define("CONTENT_ADMIN_HELP_OPTION_DIV_13", "The Top Score Page shows all content items that have been given a score by the author of the content item.<br /><br />You can choose the sections to display by checking the boxes.<br /><br />Also you can define if the email address of a non-member author will be displayed.");
|
||||
|
||||
?>
|
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/languages/English/lan_content_search.php,v $
|
||||
| $Revision$
|
||||
| $Date$
|
||||
| $Author$
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
define("CONT_SCH_LAN_1", "Content");
|
||||
define("CONT_SCH_LAN_2", "All Content Categories");
|
||||
define("CONT_SCH_LAN_3", "Posted in reply to item");
|
||||
define("CONT_SCH_LAN_4", "in");
|
||||
|
||||
?>
|
@@ -1,121 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/plugin.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
global $PLUGINS_DIRECTORY;
|
||||
include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content_admin.php");
|
||||
|
||||
// Plugin info -------------------------------------------------------------------------------------------------------
|
||||
$eplug_name = "CONTENT_PLUGIN_LAN_1";
|
||||
$eplug_version = "1.24";
|
||||
$eplug_author = "Eric Vanderfeesten (lisa)";
|
||||
$eplug_logo = "";
|
||||
$eplug_url = "http://eindhovenseschool.net";
|
||||
$eplug_email = "lisa@eindhovenseschool.net";
|
||||
$eplug_description = CONTENT_PLUGIN_LAN_2;
|
||||
$eplug_compatible = "e107v0.7+";
|
||||
$eplug_readme = ""; // leave blank if no readme file
|
||||
$eplug_latest = TRUE; //Show reported threads in admin (use latest.php)
|
||||
$eplug_status = TRUE; //Show post count in admin (use status.php)
|
||||
$eplug_category = "content";
|
||||
|
||||
// Name of the plugin's folder -------------------------------------------------------------------------------------
|
||||
$eplug_folder = "content";
|
||||
|
||||
// Mane of menu item for plugin ----------------------------------------------------------------------------------
|
||||
$eplug_menu_name = "";
|
||||
|
||||
// Name of the admin configuration file --------------------------------------------------------------------------
|
||||
$eplug_conffile = "admin_content_config.php";
|
||||
|
||||
// Icon image and caption text ------------------------------------------------------------------------------------
|
||||
$eplug_icon = $eplug_folder."/images/content_32.png";
|
||||
$eplug_icon_small = $eplug_folder."/images/content_16.png";
|
||||
$eplug_caption = CONTENT_PLUGIN_LAN_3;
|
||||
|
||||
// List of preferences -----------------------------------------------------------------------------------------------
|
||||
$eplug_prefs = array();
|
||||
|
||||
|
||||
// List of table names -----------------------------------------------------------------------------------------------
|
||||
$eplug_table_names = array(
|
||||
"pcontent"
|
||||
);
|
||||
|
||||
// List of sql requests to create tables -----------------------------------------------------------------------------
|
||||
$eplug_tables = array(
|
||||
"CREATE TABLE ".MPREFIX."pcontent (
|
||||
content_id int(10) unsigned NOT NULL auto_increment,
|
||||
content_heading varchar(255) NOT NULL default '',
|
||||
content_subheading varchar(255) NOT NULL default '',
|
||||
content_summary text NOT NULL,
|
||||
content_text longtext NOT NULL,
|
||||
content_author varchar(255) NOT NULL default '',
|
||||
content_icon varchar(255) NOT NULL default '',
|
||||
content_file text NOT NULL,
|
||||
content_image text NOT NULL,
|
||||
content_parent varchar(50) NOT NULL default '',
|
||||
content_comment tinyint(1) unsigned NOT NULL default '0',
|
||||
content_rate tinyint(1) unsigned NOT NULL default '0',
|
||||
content_pe tinyint(1) unsigned NOT NULL default '0',
|
||||
content_refer text NOT NULL,
|
||||
content_datestamp int(10) unsigned NOT NULL default '0',
|
||||
content_enddate int(10) unsigned NOT NULL default '0',
|
||||
content_class varchar(255) NOT NULL default '',
|
||||
content_pref text NOT NULL,
|
||||
content_order varchar(10) NOT NULL default '0',
|
||||
content_score tinyint(3) unsigned NOT NULL default '0',
|
||||
content_meta text NOT NULL,
|
||||
content_layout varchar(255) NOT NULL default '',
|
||||
PRIMARY KEY (content_id)
|
||||
) ENGINE=MyISAM;",
|
||||
"INSERT INTO ".MPREFIX."pcontent VALUES (1, 'content', '', '', '', '1', '', '', '', '0', '0', '0', '0', '', '".time()."', '0', '0', '', '1', '0', '', '')",
|
||||
"INSERT INTO ".MPREFIX."pcontent VALUES (2, 'article', '', '', '', '1', '', '', '', '0', '0', '0', '0', '', '".time()."', '0', '0', '', '2', '0', '', '')",
|
||||
"INSERT INTO ".MPREFIX."pcontent VALUES (3, 'review', '', '', '', '1', '', '', '', '0', '0', '0', '0', '', '".time()."', '0', '0', '', '3', '0', '', '')"
|
||||
);
|
||||
|
||||
// Create a link in main menu (yes=TRUE, no=FALSE) -------------------------------------------------------------
|
||||
$eplug_link = TRUE;
|
||||
$eplug_link_name = CONTENT_PLUGIN_LAN_5;
|
||||
$eplug_link_url = $PLUGINS_DIRECTORY.'content/content.php';
|
||||
$eplug_link_icon = "";
|
||||
|
||||
// Text to display after plugin successfully installed ------------------------------------------------------------------
|
||||
$eplug_done = CONTENT_PLUGIN_LAN_4;
|
||||
|
||||
// upgrading ... //
|
||||
$upgrade_add_prefs = "";
|
||||
$upgrade_remove_prefs = "";
|
||||
|
||||
$upgrade_alter_tables = array(
|
||||
"ALTER TABLE ".MPREFIX."pcontent ADD content_score TINYINT ( 3 ) UNSIGNED NOT NULL DEFAULT '0';",
|
||||
"ALTER TABLE ".MPREFIX."pcontent ADD content_meta TEXT NOT NULL;",
|
||||
"ALTER TABLE ".MPREFIX."pcontent ADD content_layout VARCHAR ( 255 ) NOT NULL DEFAULT '';",
|
||||
);
|
||||
$eplug_upgrade_done = CONTENT_PLUGIN_LAN_6;
|
||||
|
||||
//uninstall function: remove core prefs
|
||||
if(!function_exists('content_uninstall')){
|
||||
function content_uninstall(){
|
||||
global $sql;
|
||||
if($sql->db_Select("core","*","e107_name='pcontent'")){
|
||||
$sql -> db_Delete("core", "e107_name='pcontent' ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@@ -1,41 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/search/search_advanced.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
$advanced['cat']['type'] = 'dropdown';
|
||||
$advanced['cat']['text'] = LAN_SEARCH_63.':';
|
||||
$advanced['cat']['list'][] = array('id' => 'all', 'title' => LAN_SEARCH_51);
|
||||
|
||||
$advanced_caption['id'] = 'cat';
|
||||
$advanced_caption['title']['all'] = CONT_SCH_LAN_2;
|
||||
|
||||
if ($sql -> db_Select("pcontent", "content_id, content_heading", "LEFT(content_parent,1)='0'")) {
|
||||
while ($row = $sql -> db_Fetch()) {
|
||||
$advanced['cat']['list'][] = array('id' => $row['content_id'], 'title' => $row['content_heading']);
|
||||
$advanced_caption['title'][$row['content_id']] = $row['content_heading'];
|
||||
}
|
||||
}
|
||||
|
||||
$advanced['date']['type'] = 'date';
|
||||
$advanced['date']['text'] = LAN_SEARCH_68.':';
|
||||
|
||||
$advanced['match']['type'] = 'dropdown';
|
||||
$advanced['match']['text'] = LAN_SEARCH_52.':';
|
||||
$advanced['match']['list'][] = array('id' => 0, 'title' => LAN_SEARCH_53);
|
||||
$advanced['match']['list'][] = array('id' => 1, 'title' => LAN_SEARCH_54);
|
||||
|
||||
?>
|
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
$comments_title = 'Content';
|
||||
$comments_type_id = 'pcontent';
|
||||
$comments_return['content'] = "p.content_id, p.content_heading, p.content_parent";
|
||||
$comments_table['content'] = "LEFT JOIN #pcontent AS p ON c.comment_type='pcontent' AND p.content_id = c.comment_item_id";
|
||||
function com_search_pcontent($row) {
|
||||
global $con;
|
||||
$datestamp = $con -> convert_date($row['comment_datestamp'], "long");
|
||||
$res['link'] = e_PLUGIN."content/content.php?content.".$row['content_id'];
|
||||
$res['pre_title'] = CONT_SCH_LAN_3.': ';
|
||||
$res['title'] = $row['content_heading'];
|
||||
$res['summary'] = $row['comment_comment'];
|
||||
preg_match("/([0-9]+)\.(.*)/", $row['comment_author'], $user);
|
||||
$res['detail'] = LAN_SEARCH_7."<a href='user.php?id.".$user[1]."'>".$user[2]."</a>".LAN_SEARCH_8.$datestamp;
|
||||
return $res;
|
||||
}
|
||||
|
||||
?>
|
@@ -1,92 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/search/search_parser.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
// advanced
|
||||
$advanced_where = "";
|
||||
if (isset($_GET['cat']) && is_numeric($_GET['cat']))
|
||||
{
|
||||
$advanced_where .= " content_parent='".$_GET['cat']."' AND";
|
||||
}
|
||||
|
||||
if (isset($_GET['time']) && is_numeric($_GET['time']))
|
||||
{
|
||||
$advanced_where .= " content_datestamp ".($_GET['on'] == 'new' ? '>=' : '<=')." '".(time() - $_GET['time'])."' AND";
|
||||
}
|
||||
|
||||
if (isset($_GET['match']) && $_GET['match'])
|
||||
{
|
||||
$search_fields = array('content_heading');
|
||||
}
|
||||
else
|
||||
{
|
||||
$search_fields = array('content_heading', 'content_subheading', 'content_summary', 'content_text');
|
||||
}
|
||||
|
||||
// basic
|
||||
$return_fields = 'content_id, content_heading, content_subheading, content_summary, content_text, content_datestamp, content_parent, content_author';
|
||||
$weights = array('1.2', '0.9', '0.6', '0.6');
|
||||
$no_results = LAN_198;
|
||||
$where = "content_class IN (".USERCLASS_LIST.") AND `content_refer`!='sa' AND".$advanced_where;
|
||||
$order = array('content_datestamp' => DESC);
|
||||
|
||||
$ps = $sch -> parsesearch('pcontent', $return_fields, $search_fields, $weights, 'search_content', $no_results, $where, $order);
|
||||
$text .= $ps['text'];
|
||||
$results = $ps['results'];
|
||||
|
||||
|
||||
function search_content($row)
|
||||
{
|
||||
global $con, $sql;
|
||||
$res['link'] = e_PLUGIN."content/content.php?content.".$row['content_id'];
|
||||
$res['pre_title'] = "";
|
||||
$res['title'] = $row['content_heading'];
|
||||
$res['summary'] = $row['content_summary'].' '.$row['content_text'];
|
||||
|
||||
//get category heading
|
||||
if($row['content_parent'] == '0')
|
||||
{
|
||||
$qry = "
|
||||
SELECT c.content_heading
|
||||
FROM #pcontent as c
|
||||
WHERE c.content_id = '".$row['content_id']."' ";
|
||||
}
|
||||
elseif(strpos($row['content_parent'], "0.") !== FALSE)
|
||||
{
|
||||
$tmp = explode(".", $row['content_parent']);
|
||||
$qry = "
|
||||
SELECT c.content_heading
|
||||
FROM #pcontent as c
|
||||
WHERE c.content_id = '".intval($tmp[1])."' ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry = "
|
||||
SELECT c.*, p.*
|
||||
FROM #pcontent as c
|
||||
LEFT JOIN #pcontent as p ON p.content_id = c.content_parent
|
||||
WHERE c.content_id = '".$row['content_id']."' ";
|
||||
}
|
||||
|
||||
$sql -> db_Select_gen($qry);
|
||||
$cat = $sql -> db_Fetch();
|
||||
|
||||
$res['detail'] = LAN_SEARCH_3.$con -> convert_date($row['content_datestamp'], "long")." ".CONT_SCH_LAN_4." ".$cat['content_heading'];
|
||||
return $res;
|
||||
}
|
||||
|
||||
?>
|
@@ -1,764 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/content_admin_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
// ##### CONTENT OPTIONS --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_OPTIONS_START)){
|
||||
$CONTENT_ADMIN_OPTIONS_START = "
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", e_SELF."?option", "optionsform","","", "")."
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:1%;'></td>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:74%; text-align:left;'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_20."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center;'>".CONTENT_ADMIN_OPT_LAN_167."</td>
|
||||
</tr>
|
||||
<tr><td colspan='5' style='border:0; height:20px;'></td></tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:1%;'></td>
|
||||
<td class='forumheader3' style='width:5%;'></td>
|
||||
<td class='forumheader3' style='width:74%; white-space:nowrap;'>".CONTENT_ADMIN_OPT_LAN_1."</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap;'>
|
||||
<a href='".e_SELF."?option.default'>".CONTENT_ICON_OPTIONS."</a>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%;'></td>
|
||||
</tr>
|
||||
<tr><td colspan='5' style='border:0; height:20px;'></td></tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_OPTIONS_TABLE)){
|
||||
$CONTENT_ADMIN_OPTIONS_TABLE = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='forumheader3' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='forumheader3' style='width:74%;'>
|
||||
{CONTENT_HEADING}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_CATEGORY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_LINK_OPTION}
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_INHERIT}
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_OPTIONS_END)){
|
||||
$CONTENT_ADMIN_OPTIONS_END = "
|
||||
<tr>
|
||||
<td class='forumheader3' colspan='4'></td>
|
||||
<td class='forumheader3' style='text-align:center;'>
|
||||
<input class='button' type='submit' name='updateinherit' value='".CONTENT_ADMIN_CAT_LAN_7."' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT ERROR --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_ERROR)){
|
||||
$CONTENT_ADMIN_ERROR = "<div style='text-align:center;'>".CONTENT_ADMIN_CAT_LAN_9."</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT MANAGER --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_MANAGER_START)){
|
||||
$CONTENT_ADMIN_MANAGER_START = "
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", e_SELF."?".$qs[0], "catform","","", "")."
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:1%;'></td>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:74%;'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_20."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center;'>".CONTENT_ADMIN_OPT_LAN_167."</td>
|
||||
</tr>
|
||||
{CONTENT_ADMIN_SPACER=true}
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:1%;'></td>
|
||||
<td class='forumheader3' style='width:5%;'></td>
|
||||
<td class='forumheader3' style='width:74%; white-space:nowrap;'>".CONTENT_ADMIN_OPT_LAN_1."</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap;'>
|
||||
<a href='".e_SELF."?manager.default'>".CONTENT_ICON_CONTENTMANAGER_SMALL."</a>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%;'></td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_MANAGER_TABLE)){
|
||||
$CONTENT_ADMIN_MANAGER_TABLE = "
|
||||
{CONTENT_ADMIN_SPACER}
|
||||
<tr>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:74%;'>
|
||||
{CONTENT_MANAGER_PRE}{CONTENT_HEADING}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_CATEGORY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_LINK_MANAGER}
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_MANAGER_INHERIT}
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_MANAGER_END)){
|
||||
$CONTENT_ADMIN_MANAGER_END = "
|
||||
<tr>
|
||||
<td class='forumheader3' colspan='4'></td>
|
||||
<td class='forumheader3' style='text-align:center;'>
|
||||
<input class='button' type='submit' name='updatemanagerinherit' value='".CONTENT_ADMIN_CAT_LAN_7."' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT MANAGER CATEGORY --------------------------------------------------
|
||||
$CONTENT_ADMIN_MANAGER_ROW_TITLE = "<tr><td colspan='2' class='fcaption'>{TOPIC_CAPTION}</td></tr>";
|
||||
$CONTENT_ADMIN_MANAGER_ROW_NOEXPAND = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:35%; vertical-align:top;'>{TOPIC_TOPIC}</td>
|
||||
<td class='forumheader3'>{TOPIC_FIELD}</td>
|
||||
</tr>";
|
||||
|
||||
if(!isset($CONTENT_ADMIN_MANAGER_CATEGORY)){
|
||||
$CONTENT_ADMIN_MANAGER_CATEGORY = "
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", e_SELF."?".e_QUERY, "managerform", "", "enctype='multipart/form-data'")."
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
<tr>
|
||||
<td colspan='2' class='fcaption'>".CONTENT_ADMIN_MANAGER_LAN_9."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='text-align:left'>
|
||||
".CONTENT_ADMIN_MANAGER_LAN_6."<br />".CONTENT_ADMIN_MANAGER_LAN_7."<br />
|
||||
</td>
|
||||
<td class='forumheader3' style='text-align:left'>
|
||||
{CONTENT_ADMIN_MANAGER_SUBMIT}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='text-align:left'>
|
||||
".CONTENT_ADMIN_MANAGER_LAN_0."<br />".CONTENT_ADMIN_MANAGER_LAN_1."<br />
|
||||
</td>
|
||||
<td class='forumheader3' style='text-align:left'>
|
||||
{CONTENT_ADMIN_MANAGER_APPROVE}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='text-align:left'>
|
||||
".CONTENT_ADMIN_MANAGER_LAN_2."<br />".CONTENT_ADMIN_MANAGER_LAN_3."<br />
|
||||
</td>
|
||||
<td class='forumheader3' style='text-align:left'>
|
||||
{CONTENT_ADMIN_MANAGER_PERSONAL}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='text-align:left'>
|
||||
".CONTENT_ADMIN_MANAGER_LAN_4."<br />".CONTENT_ADMIN_MANAGER_LAN_5."<br />
|
||||
</td>
|
||||
<td class='forumheader3' style='text-align:left'>
|
||||
{CONTENT_ADMIN_MANAGER_CATEGORY}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br /><br />
|
||||
{CONTENT_ADMIN_MANAGER_OPTIONS}
|
||||
<br /><br />
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
<tr>
|
||||
<td colspan='2' class='fcaption' style='text-align:center'>
|
||||
{CONTENT_ADMIN_BUTTON}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
$sc_style['CONTENT_ADMIN_SPACER']['pre'] = "<tr><td class='forumheader3' colspan='7' style='height:15px; border:0;'>";
|
||||
$sc_style['CONTENT_ADMIN_SPACER']['post'] = "</td></tr>";
|
||||
|
||||
// ##### CONTENT CATEGORY --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_CATEGORY_START)){
|
||||
$CONTENT_ADMIN_CATEGORY_START = "
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", e_SELF."?".$qs[0], "catform","","", "")."
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:1%'></td>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:84%'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center'>".CONTENT_ADMIN_CAT_LAN_20."</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_CATEGORY_TABLE)){
|
||||
$CONTENT_ADMIN_CATEGORY_TABLE = "
|
||||
{CONTENT_ADMIN_SPACER}
|
||||
<tr>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:84%;'>
|
||||
{CONTENT_MANAGER_PRE}{CONTENT_HEADING}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_CATEGORY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; white-space:nowrap; vertical-align:top;'>
|
||||
{CONTENT_ADMIN_OPTIONS}
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_CATEGORY_END)){
|
||||
$CONTENT_ADMIN_CATEGORY_END = "
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT SUBMITTED --------------------------------------------------
|
||||
|
||||
if(!isset($CONTENT_ADMIN_SUBMITTED_START)){
|
||||
$CONTENT_ADMIN_SUBMITTED_START = "
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", e_SELF, "submittedform","","", "")."
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:1%'>".CONTENT_ADMIN_ITEM_LAN_8."</td>
|
||||
<td style='width:5%; text-align:center;' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_9."</td>
|
||||
<td style='width:50%; text-align:left;' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_11."</td>
|
||||
<td style='width:10%; text-align:center;' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_12."</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_SUBMITTED_TABLE)){
|
||||
$CONTENT_ADMIN_SUBMITTED_TABLE = "
|
||||
<tr>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_ICON}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:64%;'>
|
||||
{CONTENT_HEADING}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_5."</td>
|
||||
<td>{CONTENT_ADMIN_CATEGORY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_OPTIONS}
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if(!isset($CONTENT_ADMIN_SUBMITTED_END)){
|
||||
$CONTENT_ADMIN_SUBMITTED_END = "
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT ORDER --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_ORDER_START)){
|
||||
$CONTENT_ADMIN_ORDER_START = "
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", e_SELF."?order", "orderform")."
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:1%'></td>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_CAT_LAN_25."</td>
|
||||
<td class='fcaption' style='width:64%'>".CONTENT_ADMIN_CAT_LAN_19."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_58."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_59."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_60."</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_ORDER_TABLE)){
|
||||
$CONTENT_ADMIN_ORDER_TABLE = "
|
||||
{CONTENT_ADMIN_SPACER}
|
||||
<tr>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_CAT_ICON}</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:64%;'>
|
||||
{CONTENT_MANAGER_PRE}{CONTENT_HEADING} {CONTENT_ADMIN_ORDER_AMOUNT}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_CATEGORY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_ORDER_CAT}
|
||||
{CONTENT_ADMIN_ORDER_CATALL}
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_ORDER_UPDOWN}
|
||||
</td>
|
||||
<td class='{CONTENT_ADMIN_HTML_CLASS}' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_ORDER_SELECT}
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_ORDER_END)){
|
||||
$CONTENT_ADMIN_ORDER_END = "
|
||||
<tr>
|
||||
<td class='fcaption' colspan='4'> </td>
|
||||
<td class='fcaption' colspan='2' style='text-align:center'>
|
||||
{CONTENT_ADMIN_BUTTON}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT ORDER CONTENT --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_ORDER_CONTENT_START)){
|
||||
$CONTENT_ADMIN_ORDER_CONTENT_START = "
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", "{CONTENT_ADMIN_FORM_TARGET}", "orderform")."
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:1%'></td>
|
||||
<td class='fcaption' style='width:79%; text-align:left; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_11."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_59."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center; white-space:nowrap;'>".CONTENT_ADMIN_ITEM_LAN_60."</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_ORDER_CONTENT_TABLE)){
|
||||
$CONTENT_ADMIN_ORDER_CONTENT_TABLE = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='forumheader3' style='width:79%; text-align:left;'>
|
||||
{CONTENT_HEADING} ({CONTENT_ORDER})
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_ITEM}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_ORDER_UPDOWN}
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; vertical-align:top; white-space:nowrap;'>
|
||||
{CONTENT_ADMIN_ORDER_SELECT}
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_ORDER_CONTENT_END)){
|
||||
$CONTENT_ADMIN_ORDER_CONTENT_END = "
|
||||
<tr>
|
||||
<td class='fcaption' colspan='2'> </td>
|
||||
<td class='fcaption' colspan='2' style='text-align:center'>
|
||||
{CONTENT_ADMIN_BUTTON}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT ITEM LIST : LETTERINDEX --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_LIST_LETTER)){
|
||||
$CONTENT_ADMIN_CONTENT_LIST_LETTER = "
|
||||
<div style='text-align:center'>
|
||||
<form method='post' action='{CONTENT_ADMIN_FORM_TARGET}'>
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
<tr><td colspan='2' class='fcaption'>".CONTENT_ADMIN_ITEM_LAN_6."</td></tr>
|
||||
<tr><td colspan='2' class='forumheader3'>{CONTENT_ADMIN_LETTERINDEX}</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT ITEM LIST --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_LIST_START)){
|
||||
$CONTENT_ADMIN_CONTENT_LIST_START = "
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", e_SELF."?".e_QUERY, "deletecontentform","","", "")."
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:1%'></td>
|
||||
<td class='fcaption' style='width:5%; text-align:center;'>".CONTENT_ADMIN_ITEM_LAN_9."</td>
|
||||
<td class='fcaption' style='width:84%; text-align:left;'>".CONTENT_ADMIN_ITEM_LAN_11."</td>
|
||||
<td class='fcaption' style='width:10%; text-align:center;'>".CONTENT_ADMIN_ITEM_LAN_12."</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_LIST_TABLE)){
|
||||
$CONTENT_ADMIN_CONTENT_LIST_TABLE = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:1%; text-align:left; vertical-align:top;'><a href='javascript:void(0);' onclick=\"expandit('ci_{CONTENT_ID}')\">".CONTENT_ICON_DETAILS."</a></td>
|
||||
<td class='forumheader3' style='width:5%; text-align:center; vertical-align:top;'>{CONTENT_ICON}</td>
|
||||
<td class='forumheader3' style='width:84%; text-align:left;'>
|
||||
{CONTENT_HEADING}
|
||||
<div id='ci_{CONTENT_ID}' style='display:none; vertical-align:top; margin-top:10px;'>
|
||||
<table class='fborder' style='width:98%;'>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_1."</td>
|
||||
<td>{CONTENT_ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:15%; white-space:nowrap; line-height:150%;'>".CONTENT_TEMPLATE_LAN_2."</td>
|
||||
<td>{CONTENT_AUTHOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_3."</td>
|
||||
<td>{CONTENT_LINK_ITEM}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>".CONTENT_TEMPLATE_LAN_4."</td>
|
||||
<td>{CONTENT_SUBHEADING}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td class='forumheader3' style='width:10%; text-align:center; white-space:nowrap; vertical-align:top;'>
|
||||
{CONTENT_ADMIN_OPTIONS}
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_LIST_END)){
|
||||
$CONTENT_ADMIN_CONTENT_LIST_END = "
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT CATEGORY SELECTOR --------------------------------------------------
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_CATSELECT)){
|
||||
$CONTENT_ADMIN_CONTENT_CATSELECT = "
|
||||
<div style='text-align:center'>
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr><td class='fcaption' colspan='2'>".CONTENT_ADMIN_MAIN_LAN_2."</td></tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_27."</td>
|
||||
<td class='forumheader3'>{CONTENTFORM_CATEGORYSELECT}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT CATEGORY CREATE --------------------------------------------------
|
||||
|
||||
$sc_style['CATFORM_CATEGORY']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_27."</td><td class='forumheader3'>";
|
||||
$sc_style['CATFORM_CATEGORY']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_HEADING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_2."</td><td class='forumheader3'>";
|
||||
$sc_style['CATFORM_HEADING']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_SUBHEADING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_3."</td><td class='forumheader3'>";
|
||||
$sc_style['CATFORM_SUBHEADING']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_TEXT']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_4."</td><td class='forumheader3'>";
|
||||
$sc_style['CATFORM_TEXT']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_DATESTART']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_DATE_LAN_15."</td><td class='forumheader3'>".CONTENT_ADMIN_DATE_LAN_17."<br /><br />";
|
||||
$sc_style['CATFORM_DATESTART']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_DATEEND']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_DATE_LAN_16."</td><td class='forumheader3'>".CONTENT_ADMIN_DATE_LAN_18."<br /><br />";
|
||||
$sc_style['CATFORM_DATEEND']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_UPLOAD']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_63."</td><td class='forumheader3'>";
|
||||
$sc_style['CATFORM_UPLOAD']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_ICON']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_5."</td><td class='forumheader3'>";
|
||||
$sc_style['CATFORM_ICON']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_COMMENT']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_14."</td><td class='forumheader3'>";
|
||||
$sc_style['CATFORM_COMMENT']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_RATING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_15."</td><td class='forumheader3'>";
|
||||
$sc_style['CATFORM_RATING']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_PEICON']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_16."</td><td class='forumheader3'>";
|
||||
$sc_style['CATFORM_PEICON']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CATFORM_VISIBILITY']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_17."</td><td class='forumheader3'>";
|
||||
$sc_style['CATFORM_VISIBILITY']['post'] = "</td></tr>";
|
||||
|
||||
if(!isset($CONTENT_ADMIN_CAT_CREATE)){
|
||||
$CONTENT_ADMIN_CAT_CREATE = "
|
||||
<div style='text-align:center'>
|
||||
".$rs -> form_open("post", e_SELF."?".e_QUERY, "dataform", "", "enctype='multipart/form-data'")."
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
{CATFORM_CATEGORY}
|
||||
{CATFORM_HEADING}
|
||||
{CATFORM_SUBHEADING}
|
||||
{CATFORM_TEXT}
|
||||
{CATFORM_DATESTART}
|
||||
{CATFORM_DATEEND}
|
||||
{CATFORM_UPLOAD}
|
||||
{CATFORM_ICON}
|
||||
{CATFORM_COMMENT}
|
||||
{CATFORM_RATING}
|
||||
{CATFORM_PEICON}
|
||||
{CATFORM_VISIBILITY}
|
||||
<tr><td class='forumheader' style='text-align:center' colspan='2'>{CONTENT_ADMIN_BUTTON}</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
||||
// ##### CONTENT CONTENT CREATE --------------------------------------------------
|
||||
|
||||
$sc_style['CONTENTFORM_CATEGORY']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_CAT_LAN_27."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_CATEGORY']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_HEADING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_11."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_HEADING']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_SUBHEADING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_16."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_SUBHEADING']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_SUMMARY']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_17."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_SUMMARY']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_TEXT']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_18."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_TEXT']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_AUTHOR']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_51."</td><td class='forumheader3'>(".CONTENT_ADMIN_ITEM_LAN_71.")<br />";
|
||||
$sc_style['CONTENTFORM_AUTHOR']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_DATESTART']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_DATE_LAN_15."</td><td class='forumheader3'>".CONTENT_ADMIN_DATE_LAN_17."<br /><br />";
|
||||
$sc_style['CONTENTFORM_DATESTART']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_DATEEND']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_DATE_LAN_16."</td><td class='forumheader3'>".CONTENT_ADMIN_DATE_LAN_18."<br /><br />";
|
||||
$sc_style['CONTENTFORM_DATEEND']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_UPLOAD']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_104."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_112."<br />".CONTENT_ADMIN_ITEM_LAN_113."<br />";
|
||||
$sc_style['CONTENTFORM_UPLOAD']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_ICON']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_20."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_75."<br />";
|
||||
$sc_style['CONTENTFORM_ICON']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_ATTACH']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_24."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_76."<br />";
|
||||
$sc_style['CONTENTFORM_ATTACH']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_IMAGES']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_31."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_77."<br />";
|
||||
$sc_style['CONTENTFORM_IMAGES']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_COMMENT']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_36."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_COMMENT']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_RATING']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_37."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_RATING']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_PEICON']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_38."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_PEICON']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_VISIBILITY']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_39."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_VISIBILITY']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_SCORE']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_40."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_SCORE']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_META']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_53."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_70."<br />";
|
||||
$sc_style['CONTENTFORM_META']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_LAYOUT']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_92."</td><td class='forumheader3'>";
|
||||
$sc_style['CONTENTFORM_LAYOUT']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENTFORM_CUSTOM']['pre'] = "<tr><td class='forumheader3' style='width:20%; vertical-align:top;'>".CONTENT_ADMIN_ITEM_LAN_54."</td><td class='forumheader3'>".CONTENT_ADMIN_ITEM_LAN_84."<br />".CONTENT_ADMIN_ITEM_LAN_68."<br />";
|
||||
$sc_style['CONTENTFORM_CUSTOM']['post'] = "</td></tr>";
|
||||
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_CREATE)){
|
||||
$CONTENT_ADMIN_CONTENT_CREATE = "
|
||||
<div style='text-align:center;'>
|
||||
".$rs -> form_open("post", e_SELF."?".e_QUERY, "dataform", "", "enctype='multipart/form-data'")."
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
{CONTENTFORM_CATEGORY}
|
||||
{CONTENTFORM_HEADING}
|
||||
{CONTENTFORM_SUBHEADING}
|
||||
{CONTENTFORM_SUMMARY}
|
||||
{CONTENTFORM_TEXT}
|
||||
{CONTENTFORM_AUTHOR}
|
||||
{CONTENTFORM_DATESTART}
|
||||
{CONTENTFORM_DATEEND}
|
||||
{CONTENTFORM_UPLOAD}
|
||||
{CONTENTFORM_ICON}
|
||||
{CONTENTFORM_ATTACH}
|
||||
{CONTENTFORM_IMAGES}
|
||||
{CONTENTFORM_COMMENT}
|
||||
{CONTENTFORM_RATING}
|
||||
{CONTENTFORM_PEICON}
|
||||
{CONTENTFORM_VISIBILITY}
|
||||
{CONTENTFORM_SCORE}
|
||||
{CONTENTFORM_META}
|
||||
{CONTENTFORM_LAYOUT}
|
||||
{CONTENTFORM_CUSTOM}
|
||||
{CONTENTFORM_PRESET}
|
||||
{CONTENTFORM_HOOK}
|
||||
<tr><td class='forumheader' style='text-align:center' colspan='2'>{CONTENT_ADMIN_BUTTON}</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
}
|
||||
|
||||
//hooks
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_CREATE_HOOKSTART))
|
||||
{
|
||||
$CONTENT_ADMIN_CONTENT_CREATE_HOOKSTART = "<tr><td class='fcaption' colspan='2' >".LAN_HOOKS." </td></tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_CREATE_HOOKITEM))
|
||||
{
|
||||
$CONTENT_ADMIN_CONTENT_CREATE_HOOKITEM = "
|
||||
<tr>
|
||||
<td style='width:30%; vertical-align:top;' class='forumheader3'>{HOOKCAPTION}</td>
|
||||
<td style='width:70%' class='forumheader3'>{HOOKTEXT}</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
//custom tags
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_CREATE_CUSTOMSTART)){
|
||||
$CONTENT_ADMIN_CONTENT_CREATE_CUSTOMSTART = "<table style='width:100%; border:0;'>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_CREATE_CUSTOMTABLE)){
|
||||
$CONTENT_ADMIN_CONTENT_CREATE_CUSTOMTABLE = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='border:0;'>{CONTENTFORM_CUSTOM_KEY}</td>
|
||||
<td class='forumheader3' style='border:0;'>{CONTENTFORM_CUSTOM_VALUE}</td>
|
||||
</tr>";
|
||||
}
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_CREATE_CUSTOMEND)){
|
||||
$CONTENT_ADMIN_CONTENT_CREATE_CUSTOMEND = "</table>";
|
||||
}
|
||||
|
||||
|
||||
//preset tags
|
||||
if(!isset($CONTENT_ADMIN_CONTENT_CREATE_PRESET)){
|
||||
$CONTENT_ADMIN_CONTENT_CREATE_PRESET = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:20%; vertical-align:top;'>{CONTENTFORM_PRESET_KEY}</td>
|
||||
<td class='forumheader3'>{CONTENTFORM_PRESET_VALUE}</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
?>
|
@@ -1,46 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/content_manager_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CM_ICON|manager_edit']['pre'] = " | ";
|
||||
$sc_style['CM_ICON|manager_edit']['post'] = "";
|
||||
|
||||
$sc_style['CM_ICON|manager_submit']['pre'] = " | ";
|
||||
$sc_style['CM_ICON|manager_submit']['post'] = "";
|
||||
|
||||
$sc_style['CM_SUBHEADING|manager']['pre'] = "<div class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|manager']['post'] = "</div>";
|
||||
|
||||
// ##### CONTENT CONTENTMANAGER LIST --------------------------------------------------
|
||||
if(!isset($CONTENT_CONTENTMANAGER_TABLE_START)){
|
||||
$CONTENT_CONTENTMANAGER_TABLE_START = "";
|
||||
}
|
||||
if(!isset($CONTENT_CONTENTMANAGER_TABLE)){
|
||||
$CONTENT_CONTENTMANAGER_TABLE = "
|
||||
<div class='fcaption'>{CM_HEADING|manager}</div>
|
||||
{CM_SUBHEADING|manager}
|
||||
<div class='forumheader3' style='margin-bottom:20px;'>
|
||||
{CM_ICON|manager_new} {CM_ICON|manager_edit} {CM_ICON|manager_submit}
|
||||
</div>";
|
||||
}
|
||||
|
||||
if(!isset($CONTENT_CONTENTMANAGER_TABLE_END)){
|
||||
$CONTENT_CONTENTMANAGER_TABLE_END = "";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
?>
|
@@ -1,62 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/content_type_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CM_AMOUNT|type']['pre'] = "";
|
||||
$sc_style['CM_AMOUNT|type']['post'] = " ";
|
||||
|
||||
$sc_style['CM_HEADING|type']['pre'] = "";
|
||||
$sc_style['CM_HEADING|type']['post'] = "";
|
||||
|
||||
$sc_style['CM_SUBHEADING|type']['pre'] = "";
|
||||
$sc_style['CM_SUBHEADING|type']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_TYPE_TABLE_LINK']['pre'] = "<br /><span class='smalltext'>";
|
||||
$sc_style['CONTENT_TYPE_TABLE_LINK']['post'] = "</span>";
|
||||
|
||||
// ##### CONTENT TYPE LIST --------------------------------------------------
|
||||
if(!isset($CONTENT_TYPE_TABLE_START)){
|
||||
$CONTENT_TYPE_TABLE_START = "
|
||||
<table class='fborder' style='width:98%; text-align:left;'>\n";
|
||||
}
|
||||
if(!isset($CONTENT_TYPE_TABLE)){
|
||||
$CONTENT_TYPE_TABLE = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; padding-bottom:5px;' rowspan='2'>{CM_ICON|type}</td>
|
||||
<td class='fcaption'>{CM_HEADING|type}{CONTENT_TYPE_TABLE_LINK}</td>
|
||||
<td class='forumheader' style='width:5%; white-space:nowrap; text-align:right;'>{CM_AMOUNT|type}</td>
|
||||
</tr>
|
||||
<tr><td class='forumheader2' colspan='2'>{CM_SUBHEADING|type}<br /></td></tr>\n";
|
||||
}
|
||||
if(!isset($CONTENT_TYPE_TABLE_MANAGER)){
|
||||
$CONTENT_TYPE_TABLE_MANAGER = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; padding-bottom:5px;' rowspan='2'>{CM_ICON|manager_link}</td>
|
||||
<td class='fcaption' colspan='2'>{CM_HEADING|manager_link}</td>
|
||||
</tr>
|
||||
<tr><td class='forumheader2' colspan='2'>".CONTENT_LAN_68."</td></tr>\n";
|
||||
}
|
||||
if(!isset($CONTENT_TYPE_TABLE_LINE)){
|
||||
$CONTENT_TYPE_TABLE_LINE = "";
|
||||
}
|
||||
if(!isset($CONTENT_TYPE_TABLE_END)){
|
||||
$CONTENT_TYPE_TABLE_END = "
|
||||
</table>";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
?>
|
@@ -1,49 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_archive_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CM_AUTHOR|archive']['pre'] = "<tr><td class='forumheader3' colspan='2' style='white-space:nowrap; text-align:left;'>".CONTENT_LAN_11." ";
|
||||
$sc_style['CM_AUTHOR|archive']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_ARCHIVE_TABLE_LETTERS']['pre'] = "<div style='margin-bottom:20px;'>";
|
||||
$sc_style['CONTENT_ARCHIVE_TABLE_LETTERS']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_NEXTPREV']['pre'] = "<div class='nextprev'>";
|
||||
$sc_style['CONTENT_NEXTPREV']['post'] = "</div>";
|
||||
|
||||
// ##### CONTENT ARCHIVE --------------------------------------------------
|
||||
if(!isset($CONTENT_ARCHIVE_TABLE_START)){
|
||||
$CONTENT_ARCHIVE_TABLE_START = "
|
||||
{CONTENT_ARCHIVE_TABLE_LETTERS}
|
||||
<table class='fborder'>";
|
||||
}
|
||||
if(!isset($CONTENT_ARCHIVE_TABLE)){
|
||||
$CONTENT_ARCHIVE_TABLE = "
|
||||
<tr>
|
||||
<td class='fcaption'>{CM_HEADING|archive}</td>
|
||||
<td class='fcaption' style='width:5%; white-space:nowrap; text-align:right;'>{CM_DATE|archive}</td>
|
||||
</tr>
|
||||
{CM_AUTHOR|archive}
|
||||
\n";
|
||||
}
|
||||
if(!isset($CONTENT_ARCHIVE_TABLE_END)){
|
||||
$CONTENT_ARCHIVE_TABLE_END = "
|
||||
</table>{CONTENT_NEXTPREV}";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
?>
|
@@ -1,47 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_author_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_AUTHOR_TABLE_LASTITEM']['pre'] = "<tr><td class='forumheader3'>".CONTENT_LAN_55." ";
|
||||
$sc_style['CONTENT_AUTHOR_TABLE_LASTITEM']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CM_AMOUNT|author']['pre'] = "(";
|
||||
$sc_style['CM_AMOUNT|author']['post'] = ")";
|
||||
|
||||
$sc_style['CONTENT_NEXTPREV']['pre'] = "<div class='nextprev'>";
|
||||
$sc_style['CONTENT_NEXTPREV']['post'] = "</div>";
|
||||
|
||||
// ##### CONTENT AUTHOR -------------------------------------------------------
|
||||
if(!isset($CONTENT_AUTHOR_TABLE_START)){
|
||||
$CONTENT_AUTHOR_TABLE_START = "
|
||||
<table class='fborder' style='width:98%; text-align:left;'>\n";
|
||||
}
|
||||
if(!isset($CONTENT_AUTHOR_TABLE)){
|
||||
$CONTENT_AUTHOR_TABLE = "
|
||||
<tr>
|
||||
<td class='fcaption'>{CM_ICON|author} {CM_AUTHOR|author} {CM_AMOUNT|author}</td>
|
||||
</tr>
|
||||
{CONTENT_AUTHOR_TABLE_LASTITEM}
|
||||
";
|
||||
}
|
||||
if(!isset($CONTENT_AUTHOR_TABLE_END)){
|
||||
$CONTENT_AUTHOR_TABLE_END = "
|
||||
</table>{CONTENT_NEXTPREV}\n";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
?>
|
@@ -1,137 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_cat_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CM_ICON|cat']['pre'] = "<td class='forumheader3' rowspan='5' style='width:5%; white-space:nowrap; padding-right:5px;'>";
|
||||
$sc_style['CM_ICON|cat']['post'] = "</td>";
|
||||
|
||||
$sc_style['CM_AUTHOR|cat']['pre'] = " ";
|
||||
$sc_style['CM_AUTHOR|cat']['post'] = " ";
|
||||
|
||||
$sc_style['CM_SUBHEADING|cat']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|cat']['post'] = "<br /></td></tr>";
|
||||
|
||||
$sc_style['CM_TEXT|cat']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_TEXT|cat']['post'] = "<br /></td></tr>";
|
||||
|
||||
$sc_style['CM_RATING|cat']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_RATING|cat']['post'] = "<br /></td></tr>";
|
||||
|
||||
$sc_style['CM_AMOUNT|cat']['pre'] = "(";
|
||||
$sc_style['CM_AMOUNT|cat']['post'] = ")";
|
||||
|
||||
$sc_style['CONTENT_CAT_TABLE_INFO_PRE']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_TABLE_INFO_PRE']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CAT_TABLE_INFO_POST']['pre'] = "";
|
||||
$sc_style['CONTENT_CAT_TABLE_INFO_POST']['post'] = "</td></tr>";
|
||||
|
||||
// ##### CONTENT CAT ----------------------------------------------------------
|
||||
if(!isset($CONTENT_CAT_TABLE_START)){
|
||||
$CONTENT_CAT_TABLE_START = "";
|
||||
}
|
||||
if(!isset($CONTENT_CAT_TABLE)){
|
||||
$CONTENT_CAT_TABLE = "
|
||||
<table class='fborder' style='width:98%; text-align:left; margin-bottom:5px;'>
|
||||
<tr>
|
||||
{CM_ICON|cat}
|
||||
<td class='fcaption' >{CM_HEADING|cat} {CM_AMOUNT|cat}</td>
|
||||
</tr>
|
||||
{CONTENT_CAT_TABLE_INFO_PRE}
|
||||
{CM_DATE|cat} {CM_AUTHOR|cat} {CM_EPICONS|cat} {CM_COMMENT|cat}
|
||||
{CONTENT_CAT_TABLE_INFO_POST}
|
||||
{CM_SUBHEADING|cat}
|
||||
{CM_TEXT|cat}
|
||||
{CM_RATING|cat}
|
||||
</table>\n";
|
||||
}
|
||||
if(!isset($CONTENT_CAT_TABLE_END)){
|
||||
$CONTENT_CAT_TABLE_END = "";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
$sc_style['CM_ICON|catlist']['pre'] = "<td class='forumheader3' style='width:5%; white-space:nowrap; padding-right:5px;' rowspan='5'>";
|
||||
$sc_style['CM_ICON|catlist']['post'] = "</td>";
|
||||
|
||||
$sc_style['CM_SUBHEADING|catlist']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|catlist']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CM_AUTHOR|catlist']['pre'] = " / ";
|
||||
$sc_style['CM_AUTHOR|catlist']['post'] = "";
|
||||
|
||||
$sc_style['CM_RATING|catlist']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_RATING|catlist']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CM_TEXT|catlist']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_TEXT|catlist']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CM_AMOUNT|catlist']['pre'] = "(";
|
||||
$sc_style['CM_AMOUNT|catlist']['post'] = ")";
|
||||
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_INFO_PRE']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_INFO_PRE']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_INFO_POST']['pre'] = "";
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_INFO_POST']['post'] = "</td></tr>";
|
||||
|
||||
// ##### CONTENT CAT_LIST -----------------------------------------------------
|
||||
if(!isset($CONTENT_CAT_LIST_TABLE)){
|
||||
$CONTENT_CAT_LIST_TABLE = "
|
||||
<table class='fborder' style='width:98%; text-align:left; margin-bottom:10px;'>
|
||||
<tr>
|
||||
{CM_ICON|catlist}
|
||||
<td class='fcaption'>{CM_HEADING|catlist} {CM_AMOUNT|catlist}</td>
|
||||
</tr>
|
||||
{CM_SUBHEADING|catlist}
|
||||
{CONTENT_CAT_LIST_TABLE_INFO_PRE}
|
||||
{CM_DATE|catlist} {CM_AUTHOR|catlist} {CM_EPICONS|catlist} {CM_COMMENT|catlist}
|
||||
{CONTENT_CAT_LIST_TABLE_INFO_POST}
|
||||
{CM_RATING|catlist}
|
||||
{CM_TEXT|catlist}
|
||||
</table>\n";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
$sc_style['CM_ICON|catlistsub']['pre'] = "<td class='forumheader3' style='width:2%; white-space:nowrap; padding-right:5px; ' rowspan='2'>";
|
||||
$sc_style['CM_ICON|catlistsub']['post'] = "</td>";
|
||||
|
||||
$sc_style['CM_SUBHEADING|catlistsub']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|catlistsub']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CM_AMOUNT|catlistsub']['pre'] = "(";
|
||||
$sc_style['CM_AMOUNT|catlistsub']['post'] = ")";
|
||||
|
||||
// ##### CONTENT CAT_LIST SUB -------------------------------------------------
|
||||
if(!isset($CONTENT_CAT_LISTSUB_TABLE_START)){
|
||||
$CONTENT_CAT_LISTSUB_TABLE_START = "";
|
||||
}
|
||||
if(!isset($CONTENT_CAT_LISTSUB_TABLE)){
|
||||
$CONTENT_CAT_LISTSUB_TABLE = "
|
||||
<table class='fborder' style='width:98%; text-align:left; margin-bottom:5px;'>
|
||||
<tr>
|
||||
{CM_ICON|catlistsub}
|
||||
<td class='fcaption'>{CM_HEADING|catlistsub} {CM_AMOUNT|catlistsub}</td>
|
||||
</tr>
|
||||
{CM_SUBHEADING|catlistsub}
|
||||
</table>\n";
|
||||
}
|
||||
if(!isset($CONTENT_CAT_LISTSUB_TABLE_END)){
|
||||
$CONTENT_CAT_LISTSUB_TABLE_END = "<br />";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
?>
|
@@ -1,118 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_content_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
// ##### CONTENT CONTENT ------------------------------------------------------
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CM_REFER|content']['pre'] = "<br />".CONTENT_LAN_44." ";
|
||||
$sc_style['CM_REFER|content']['post'] = "";
|
||||
|
||||
$sc_style['CM_COMMENT|content']['pre'] = "<br />".CONTENT_LAN_57." ";
|
||||
$sc_style['CM_COMMENT|content']['post'] = "";
|
||||
|
||||
$sc_style['CM_SCORE|content']['pre'] = "<br />".CONTENT_LAN_45." ";
|
||||
$sc_style['CM_SCORE|content']['post'] = "/100";
|
||||
|
||||
$sc_style['CM_RATING|content']['pre'] = "<br />";
|
||||
$sc_style['CM_RATING|content']['post'] = "";
|
||||
|
||||
$sc_style['CM_AUTHOR|content']['pre'] = "<br />".CONTENT_LAN_11." ";
|
||||
$sc_style['CM_AUTHOR|content']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['pre'] = "<br /><div>".CONTENT_LAN_46."<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_CUSTOM_TAGS']['pre'] = "<br /><br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_CUSTOM_TAGS']['post'] = "<br /><br />";
|
||||
|
||||
$sc_style['CM_SUMMARY|content']['pre'] = "<div>";
|
||||
$sc_style['CM_SUMMARY|content']['post'] = "<br /><br /></div>";
|
||||
|
||||
$sc_style['CM_TEXT|content']['pre'] = "<div>";
|
||||
$sc_style['CM_TEXT|content']['post'] = "</div>";
|
||||
|
||||
$sc_style['CM_IMAGES|content']['pre'] = "<div style='float:left; padding-right:10px;'>";
|
||||
$sc_style['CM_IMAGES|content']['post'] = "</div>";
|
||||
|
||||
$sc_style['CM_SUBHEADING|content']['pre'] = "";
|
||||
$sc_style['CM_SUBHEADING|content']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_FILE|content']['pre'] = "<br />";
|
||||
$sc_style['CM_FILE|content']['post'] = "";
|
||||
|
||||
$sc_style['CM_DATE|content']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CM_DATE|content']['post'] = "";
|
||||
|
||||
$sc_style['CM_PARENT|content']['pre'] = "<br />".CONTENT_LAN_9." ";
|
||||
$sc_style['CM_PARENT|content']['post'] = "";
|
||||
|
||||
$sc_style['CM_ICON|content']['pre'] = "<td style='width:10%; white-space:nowrap; vertical-align:top; padding-right:10px;'>";
|
||||
$sc_style['CM_ICON|content']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['pre'] = "<table cellpadding='0' cellspacing='0' style='width:100%; margin-bottom:20px;'><tr>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['post'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['pre'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['post'] = "</tr></table>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PREV_PAGE']['pre'] = "<div style='clear:both; padding-bottom:20px; padding-top:20px;'><div style='float:left;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PREV_PAGE']['post'] = "</div>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_NEXT_PAGE']['pre'] = "<div style='float:right;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_NEXT_PAGE']['post'] = "</div></div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE_HEADDATA']['pre'] = "<td style='vertical-align:top;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE_HEADDATA']['post'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_POST_HEADDATA']['pre'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_POST_HEADDATA']['post'] = "</td>";
|
||||
|
||||
$CONTENT_CONTENT_TABLE = "<table class='fborder' cellpadding='0' cellspacing='0' style='width:100%;'><tr><td>
|
||||
<div style='clear:both;'>
|
||||
{CONTENT_CONTENT_TABLE_INFO_PRE}
|
||||
{CM_ICON|content}
|
||||
{CONTENT_CONTENT_TABLE_INFO_PRE_HEADDATA}
|
||||
{CM_SUBHEADING|content}
|
||||
{CM_DATE|content} {CM_AUTHOR|content} {CM_EPICONS|content} {CM_EDITICON|content} {CM_PARENT|content} {CM_COMMENT|content} {CM_SCORE|content} {CM_REFER|content}
|
||||
{CM_RATING|content}
|
||||
{CM_FILE|content}
|
||||
{CONTENT_CONTENT_TABLE_INFO_POST_HEADDATA}
|
||||
{CONTENT_CONTENT_TABLE_INFO_POST}
|
||||
<div style='clear:both;'><br /></div>
|
||||
<table class='fborder' cellpadding='0' cellspacing='0' style='width:100%;'><tr><td class='forumheader3'>
|
||||
{CM_IMAGES|content}
|
||||
{CM_SUMMARY|content}
|
||||
{CM_TEXT|content}
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_TAGS}
|
||||
{CONTENT_CONTENT_TABLE_PAGENAMES}
|
||||
{CONTENT_CONTENT_TABLE_PREV_PAGE}{CONTENT_CONTENT_TABLE_NEXT_PAGE}
|
||||
</td></tr></table>
|
||||
</div>
|
||||
</td></tr></table>\n";
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_START = "<table style='width:100%;margin-left:0;padding-left:0;' cellspacing='0' cellpadding='0' >";
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM = "
|
||||
<tr>
|
||||
<td style='width:25%;white-space:nowrap; vertical-align:top; line-height:150%;'>
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_KEY}
|
||||
</td>
|
||||
<td style='width:90%; line-height:150%;'>
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_VALUE}
|
||||
</td>
|
||||
</tr>";
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_END = "</table>";
|
||||
|
||||
?>
|
@@ -1,117 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_content_template_bigtext.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
// ##### CONTENT CONTENT ------------------------------------------------------
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_REFER']['pre'] = "<br />".CONTENT_LAN_44." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_REFER']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_COMMENT']['pre'] = "<br />".CONTENT_LAN_57." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_COMMENT']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SCORE']['pre'] = "<br />".CONTENT_LAN_45." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SCORE']['post'] = "/100";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_RATING']['pre'] = "<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_RATING']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_AUTHORDETAILS']['pre'] = "<br />".CONTENT_LAN_11." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_AUTHORDETAILS']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['pre'] = "<br /><div>".CONTENT_LAN_46."<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_CUSTOM_TAGS']['pre'] = "<br /><br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_CUSTOM_TAGS']['post'] = "<br /><br />";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUMMARY']['pre'] = "<div>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUMMARY']['post'] = "<br /><br /></div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_TEXT']['pre'] = "<div>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_TEXT']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_IMAGES']['pre'] = "<div style='float:left; padding-right:10px;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_IMAGES']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUBHEADING']['pre'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUBHEADING']['post'] = "<br />";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_FILE']['pre'] = "<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_FILE']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_DATE']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_DATE']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PARENT']['pre'] = "<br />".CONTENT_LAN_9." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PARENT']['post'] = "";
|
||||
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['pre'] = "<div style='clear:both;'><div style='float:left;'>";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['post'] = "";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['pre'] = "";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['post'] = "</div></div>";
|
||||
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_ICON']['pre'] = "<div style='float:left; padding-right:10px;'>";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_ICON']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_ICON']['pre'] = "<td style='width:10%; white-space:nowrap; vertical-align:top; padding-right:10px;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_ICON']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['pre'] = "<table cellpadding='0' cellspacing='0' style='width:100%; margin-bottom:20px;'><tr>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['post'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['pre'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['post'] = "</tr></table>";
|
||||
|
||||
$CONTENT_CONTENT_TABLE = "<table class='fborder' cellpadding='0' cellspacing='0' style='font-size:16px;'><tr><td>
|
||||
<div style='clear:both;'>
|
||||
|
||||
{CONTENT_CONTENT_TABLE_INFO_PRE}
|
||||
{CONTENT_CONTENT_TABLE_ICON}
|
||||
<td style='vertical-align:top;'>
|
||||
{CONTENT_CONTENT_TABLE_SUBHEADING}
|
||||
{CONTENT_CONTENT_TABLE_DATE} {CONTENT_CONTENT_TABLE_AUTHORDETAILS} {CONTENT_CONTENT_TABLE_EPICONS} {CONTENT_CONTENT_TABLE_EDITICON} {CONTENT_CONTENT_TABLE_PARENT} {CONTENT_CONTENT_TABLE_COMMENT} {CONTENT_CONTENT_TABLE_SCORE} {CONTENT_CONTENT_TABLE_REFER}
|
||||
{CONTENT_CONTENT_TABLE_RATING}
|
||||
{CONTENT_CONTENT_TABLE_FILE}
|
||||
</td>
|
||||
{CONTENT_CONTENT_TABLE_INFO_POST}
|
||||
<div style='clear:both;'><br /></div>
|
||||
<table cellpadding='0' cellspacing='0' style='width:100%;'><tr><td>
|
||||
{CONTENT_CONTENT_TABLE_IMAGES}
|
||||
{CONTENT_CONTENT_TABLE_SUMMARY}
|
||||
{CONTENT_CONTENT_TABLE_TEXT}
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_TAGS}
|
||||
{CONTENT_CONTENT_TABLE_PAGENAMES}
|
||||
</td></tr></table>
|
||||
</div>
|
||||
</td></tr></table>\n";
|
||||
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_START = "<table style='width:100%;margin-left:0;padding-left:0;' cellspacing='0' cellpadding='0' >";
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM = "
|
||||
<tr>
|
||||
<td style='width:25%;white-space:nowrap; vertical-align:top; line-height:150%;'>
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_KEY}
|
||||
</td>
|
||||
<td style='width:90%; line-height:150%;'>
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_VALUE}
|
||||
</td>
|
||||
</tr>";
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_END = "</table>";
|
||||
|
||||
?>
|
@@ -1,117 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_content_template_blackonwhite.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
// ##### CONTENT CONTENT ------------------------------------------------------
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_REFER']['pre'] = "<br />".CONTENT_LAN_44." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_REFER']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_COMMENT']['pre'] = "<br />".CONTENT_LAN_57." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_COMMENT']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SCORE']['pre'] = "<br />".CONTENT_LAN_45." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SCORE']['post'] = "/100";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_RATING']['pre'] = "<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_RATING']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_AUTHORDETAILS']['pre'] = "<br />".CONTENT_LAN_11." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_AUTHORDETAILS']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['pre'] = "<br /><div>".CONTENT_LAN_46."<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_CUSTOM_TAGS']['pre'] = "<br /><br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_CUSTOM_TAGS']['post'] = "<br /><br />";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUMMARY']['pre'] = "<div>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUMMARY']['post'] = "<br /><br /></div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_TEXT']['pre'] = "<div>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_TEXT']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_IMAGES']['pre'] = "<div style='float:left; padding-right:10px;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_IMAGES']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUBHEADING']['pre'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUBHEADING']['post'] = "<br />";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_FILE']['pre'] = "<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_FILE']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_DATE']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_DATE']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PARENT']['pre'] = "<br />".CONTENT_LAN_9." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PARENT']['post'] = "";
|
||||
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['pre'] = "<div style='clear:both;'><div style='float:left;'>";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['post'] = "";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['pre'] = "";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['post'] = "</div></div>";
|
||||
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_ICON']['pre'] = "<div style='float:left; padding-right:10px;'>";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_ICON']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_ICON']['pre'] = "<td style='width:10%; white-space:nowrap; vertical-align:top; padding-right:10px;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_ICON']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['pre'] = "<table cellpadding='0' cellspacing='0' style='width:100%; margin-bottom:20px;'><tr>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['post'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['pre'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['post'] = "</tr></table>";
|
||||
|
||||
$CONTENT_CONTENT_TABLE = "<table class='fborder' cellpadding='0' cellspacing='0' style='background-color:#FFF; color:#000;'><tr><td>
|
||||
<div style='clear:both;'>
|
||||
|
||||
{CONTENT_CONTENT_TABLE_INFO_PRE}
|
||||
{CONTENT_CONTENT_TABLE_ICON}
|
||||
<td style='vertical-align:top;'>
|
||||
{CONTENT_CONTENT_TABLE_SUBHEADING}
|
||||
{CONTENT_CONTENT_TABLE_DATE} {CONTENT_CONTENT_TABLE_AUTHORDETAILS} {CONTENT_CONTENT_TABLE_EPICONS} {CONTENT_CONTENT_TABLE_EDITICON} {CONTENT_CONTENT_TABLE_PARENT} {CONTENT_CONTENT_TABLE_COMMENT} {CONTENT_CONTENT_TABLE_SCORE} {CONTENT_CONTENT_TABLE_REFER}
|
||||
{CONTENT_CONTENT_TABLE_RATING}
|
||||
{CONTENT_CONTENT_TABLE_FILE}
|
||||
</td>
|
||||
{CONTENT_CONTENT_TABLE_INFO_POST}
|
||||
<div style='clear:both;'><br /></div>
|
||||
<table cellpadding='0' cellspacing='0' style='width:100%;'><tr><td>
|
||||
{CONTENT_CONTENT_TABLE_IMAGES}
|
||||
{CONTENT_CONTENT_TABLE_SUMMARY}
|
||||
{CONTENT_CONTENT_TABLE_TEXT}
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_TAGS}
|
||||
{CONTENT_CONTENT_TABLE_PAGENAMES}
|
||||
</td></tr></table>
|
||||
</div>
|
||||
</td></tr></table>\n";
|
||||
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_START = "<table style='width:100%;margin-left:0;padding-left:0;' cellspacing='0' cellpadding='0' >";
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM = "
|
||||
<tr>
|
||||
<td style='width:25%;white-space:nowrap; vertical-align:top; line-height:150%;'>
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_KEY}
|
||||
</td>
|
||||
<td style='width:90%; line-height:150%;'>
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_VALUE}
|
||||
</td>
|
||||
</tr>";
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_END = "</table>";
|
||||
|
||||
?>
|
@@ -1,117 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_content_template_whiteonblack.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
// ##### CONTENT CONTENT ------------------------------------------------------
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_REFER']['pre'] = "<br />".CONTENT_LAN_44." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_REFER']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_COMMENT']['pre'] = "<br />".CONTENT_LAN_57." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_COMMENT']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SCORE']['pre'] = "<br />".CONTENT_LAN_45." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SCORE']['post'] = "/100";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_RATING']['pre'] = "<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_RATING']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_AUTHORDETAILS']['pre'] = "<br />".CONTENT_LAN_11." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_AUTHORDETAILS']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['pre'] = "<br /><div>".CONTENT_LAN_46."<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_CUSTOM_TAGS']['pre'] = "<br /><br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_CUSTOM_TAGS']['post'] = "<br /><br />";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUMMARY']['pre'] = "<div>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUMMARY']['post'] = "<br /><br /></div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_TEXT']['pre'] = "<div>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_TEXT']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_IMAGES']['pre'] = "<div style='float:left; padding-right:10px;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_IMAGES']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUBHEADING']['pre'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUBHEADING']['post'] = "<br />";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_FILE']['pre'] = "<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_FILE']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_DATE']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_DATE']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PARENT']['pre'] = "<br />".CONTENT_LAN_9." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PARENT']['post'] = "";
|
||||
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['pre'] = "<div style='clear:both;'><div style='float:left;'>";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['post'] = "";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['pre'] = "";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['post'] = "</div></div>";
|
||||
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_ICON']['pre'] = "<div style='float:left; padding-right:10px;'>";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_ICON']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_ICON']['pre'] = "<td style='width:10%; white-space:nowrap; vertical-align:top; padding-right:10px;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_ICON']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['pre'] = "<table cellpadding='0' cellspacing='0' style='width:100%; margin-bottom:20px;'><tr>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['post'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['pre'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['post'] = "</tr></table>";
|
||||
|
||||
$CONTENT_CONTENT_TABLE = "<table class='fborder' cellpadding='0' cellspacing='0' style='width:100%; background-color:#000; color:#FFF;'><tr><td>
|
||||
<div style='clear:both;'>
|
||||
|
||||
{CONTENT_CONTENT_TABLE_INFO_PRE}
|
||||
{CONTENT_CONTENT_TABLE_ICON}
|
||||
<td style='vertical-align:top;'>
|
||||
{CONTENT_CONTENT_TABLE_SUBHEADING}
|
||||
{CONTENT_CONTENT_TABLE_DATE} {CONTENT_CONTENT_TABLE_AUTHORDETAILS} {CONTENT_CONTENT_TABLE_EPICONS} {CONTENT_CONTENT_TABLE_EDITICON} {CONTENT_CONTENT_TABLE_PARENT} {CONTENT_CONTENT_TABLE_COMMENT} {CONTENT_CONTENT_TABLE_SCORE} {CONTENT_CONTENT_TABLE_REFER}
|
||||
{CONTENT_CONTENT_TABLE_RATING}
|
||||
{CONTENT_CONTENT_TABLE_FILE}
|
||||
</td>
|
||||
{CONTENT_CONTENT_TABLE_INFO_POST}
|
||||
<div style='clear:both;'><br /></div>
|
||||
<table cellpadding='0' cellspacing='0' style='width:100%;'><tr><td>
|
||||
{CONTENT_CONTENT_TABLE_IMAGES}
|
||||
{CONTENT_CONTENT_TABLE_SUMMARY}
|
||||
{CONTENT_CONTENT_TABLE_TEXT}
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_TAGS}
|
||||
{CONTENT_CONTENT_TABLE_PAGENAMES}
|
||||
</td></tr></table>
|
||||
</div>
|
||||
</td></tr></table>\n";
|
||||
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_START = "<table style='width:100%;margin-left:0;padding-left:0;' cellspacing='0' cellpadding='0' >";
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM = "
|
||||
<tr>
|
||||
<td style='width:25%;white-space:nowrap; vertical-align:top; line-height:150%;'>
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_KEY}
|
||||
</td>
|
||||
<td style='width:90%; line-height:150%;'>
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_VALUE}
|
||||
</td>
|
||||
</tr>";
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_END = "</table>";
|
||||
|
||||
?>
|
@@ -1,135 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_menu_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
//##### MENU TEMPLATE --------------------------------------------------
|
||||
|
||||
$sc_style['CM_MENU_SEARCH']['pre'] = "";
|
||||
$sc_style['CM_MENU_SEARCH']['post'] = "";
|
||||
|
||||
$sc_style['CM_MENU_SELECT']['pre'] = "";
|
||||
$sc_style['CM_MENU_SELECT']['post'] = "";
|
||||
|
||||
$sc_style['CM_MENU_ORDER']['pre'] = "";
|
||||
$sc_style['CM_MENU_ORDER']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLCAT']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLCAT']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLAUTHOR']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLAUTHOR']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLITEM']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLITEM']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWTOPRATED']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWTOPRATED']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWTOPSCORE']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWTOPSCORE']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWRECENT']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWRECENT']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWSUBMIT']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWSUBMIT']['post'] = "<br />";
|
||||
|
||||
if(!isset($CONTENT_MENU)){
|
||||
$CONTENT_MENU = "
|
||||
{CM_MENU_SEARCH}
|
||||
{CM_MENU_SELECT}
|
||||
{CM_MENU_ORDER}
|
||||
{CM_MENU_LINKCAPTION}
|
||||
{CM_MENU_LINKS_VIEWALLCAT}
|
||||
{CM_MENU_LINKS_VIEWALLAUTHOR}
|
||||
{CM_MENU_LINKS_VIEWALLITEM}
|
||||
{CM_MENU_LINKS_VIEWTOPRATED}
|
||||
{CM_MENU_LINKS_VIEWTOPSCORE}
|
||||
{CM_MENU_LINKS_VIEWRECENT}
|
||||
{CM_MENU_LINKS_VIEWSUBMIT}
|
||||
|
||||
{CMT_CATEGORY}
|
||||
{CMT_RECENT}";
|
||||
}
|
||||
|
||||
//##### CATEGORY LIST --------------------------------------------------
|
||||
|
||||
$sc_style['CM_MENU_CATEGORY_ICON']['pre'] = "<td style='width:1%; white-space:nowrap; vertical-align:top; padding-right:5px;'>";
|
||||
$sc_style['CM_MENU_CATEGORY_ICON']['post'] = "</td>";
|
||||
|
||||
$sc_style['CM_MENU_CATEGORY_COUNT']['pre'] = " <span class='smalltext'>(";
|
||||
$sc_style['CM_MENU_CATEGORY_COUNT']['post'] = ")</span>";
|
||||
|
||||
if(!isset($CONTENT_MENU_CATEGORY_START)){
|
||||
$CONTENT_MENU_CATEGORY_START = "<br />{CM_MENU_CATEGORY_CAPTION}<br />";
|
||||
}
|
||||
|
||||
if(!isset($CONTENT_MENU_CATEGORY_TABLE)){
|
||||
$CONTENT_MENU_CATEGORY_TABLE = "
|
||||
<table style='width:100%; text-align:left; border:0;' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
{CM_MENU_CATEGORY_ICON}
|
||||
<td colspan='2'>{CM_MENU_CATEGORY_HEADING} {CM_MENU_CATEGORY_COUNT}</td>
|
||||
</tr>
|
||||
</table>";
|
||||
}
|
||||
|
||||
if(!isset($CONTENT_MENU_CATEGORY_END)){
|
||||
$CONTENT_MENU_CATEGORY_END = "";
|
||||
}
|
||||
|
||||
//##### RECENT --------------------------------------------------
|
||||
|
||||
$sc_style['CM_MENU_RECENT_ICON']['pre'] = "<td style='width:1%; white-space:nowrap; vertical-align:top; padding-right:5px;'>";
|
||||
$sc_style['CM_MENU_RECENT_ICON']['post'] = "</td>";
|
||||
|
||||
$sc_style['CM_MENU_RECENT_HEADING']['pre'] = "";
|
||||
$sc_style['CM_MENU_RECENT_HEADING']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_RECENT_DATE']['pre'] = "";
|
||||
$sc_style['CM_MENU_RECENT_DATE']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_RECENT_AUTHOR']['pre'] = "";
|
||||
$sc_style['CM_MENU_RECENT_AUTHOR']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_RECENT_SUBHEADING']['pre'] = "";
|
||||
$sc_style['CM_MENU_RECENT_SUBHEADING']['post'] = "<br />";
|
||||
|
||||
if(!isset($CONTENT_MENU_RECENT_START)){
|
||||
$CONTENT_MENU_RECENT_START = "<br />{CM_MENU_RECENT_CAPTION}<br />";
|
||||
}
|
||||
if(!isset($CONTENT_MENU_RECENT_TABLE)){
|
||||
$CONTENT_MENU_RECENT_TABLE = "
|
||||
<table style='width:100%; text-align:left; border:0; margin-bottom:10px;' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
{CM_MENU_RECENT_ICON}
|
||||
<td style='width:99%; vertical-align:top;'>
|
||||
{CM_MENU_RECENT_HEADING}
|
||||
{CM_MENU_RECENT_DATE}
|
||||
{CM_MENU_RECENT_AUTHOR}
|
||||
{CM_MENU_RECENT_SUBHEADING}
|
||||
</td>
|
||||
</tr>
|
||||
</table>";
|
||||
}
|
||||
if(!isset($CONTENT_MENU_RECENT_END)){
|
||||
$CONTENT_MENU_RECENT_END = "";
|
||||
}
|
||||
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
?>
|
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_np_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
// ##### CONTENT NEXT PREV --------------------------------------------------
|
||||
if(!isset($CONTENT_NP_TABLE)){
|
||||
$CONTENT_NP_TABLE = "<div class='nextprev'>{CONTENT_NEXTPREV}</div>";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
?>
|
@@ -1,82 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_recent_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
// ##### CONTENT RECENT LIST --------------------------------------------------
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CM_ICON|recent']['pre'] = "<td class='forumheader3' rowspan='7' style='vertical-align:top; width:10%; white-space:nowrap; padding-right:10px;'>";
|
||||
$sc_style['CM_ICON|recent']['post'] = "</td>";
|
||||
|
||||
$sc_style['CM_DATE|recent']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CM_DATE|recent']['post'] = "";
|
||||
|
||||
$sc_style['CM_PARENT|recent']['pre'] = CONTENT_LAN_9." ";
|
||||
$sc_style['CM_PARENT|recent']['post'] = "";
|
||||
|
||||
$sc_style['CM_REFER|recent']['pre'] = " (".CONTENT_LAN_44." ";
|
||||
$sc_style['CM_REFER|recent']['post'] = ")";
|
||||
|
||||
$sc_style['CM_AUTHOR|recent']['pre'] = CONTENT_LAN_11." ";
|
||||
$sc_style['CM_AUTHOR|recent']['post'] = "";
|
||||
|
||||
$sc_style['CM_SUBHEADING|recent']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|recent']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CM_SUMMARY|recent']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUMMARY|recent']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CM_TEXT|recent']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_TEXT|recent']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CM_RATING|recent']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_RATING|recent']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_INFOPRE']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_RECENT_TABLE_INFOPRE']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_INFOPOST']['pre'] = "";
|
||||
$sc_style['CONTENT_RECENT_TABLE_INFOPOST']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_NEXTPREV']['pre'] = "<div class='nextprev'>";
|
||||
$sc_style['CONTENT_NEXTPREV']['post'] = "</div>";
|
||||
|
||||
if(!isset($CONTENT_RECENT_TABLE_START)){
|
||||
$CONTENT_RECENT_TABLE_START = "";
|
||||
}
|
||||
if(!isset($CONTENT_RECENT_TABLE)){
|
||||
$CONTENT_RECENT_TABLE = "
|
||||
<table class='fborder' style='width:98%; text-align:left;margin-bottom:5px;'>
|
||||
<tr>
|
||||
{CM_ICON|recent}
|
||||
<td class='fcaption'>{CM_HEADING|recent} {CM_REFER|recent}</td>
|
||||
</tr>
|
||||
{CM_SUBHEADING|recent}
|
||||
|
||||
{CONTENT_RECENT_TABLE_INFOPRE}
|
||||
{CM_DATE|recent} {CM_AUTHOR|recent} {CM_PARENT|recent} {CM_EPICONS|recent} {CM_EDITICON|recent}
|
||||
{CONTENT_RECENT_TABLE_INFOPOST}
|
||||
|
||||
{CM_SUMMARY|recent}
|
||||
{CM_TEXT|recent}
|
||||
{CM_RATING|recent}
|
||||
</table>\n";
|
||||
}
|
||||
if(!isset($CONTENT_RECENT_TABLE_END)){
|
||||
$CONTENT_RECENT_TABLE_END = "{CONTENT_NEXTPREV}";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
?>
|