mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Notice removal
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/admin.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/admin.php,v $
|
||||||
| $Revision: 1.22 $
|
| $Revision: 1.23 $
|
||||||
| $Date: 2009-11-07 02:16:52 $
|
| $Date: 2009-11-08 12:08:23 $
|
||||||
| $Author: e107coders $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -217,7 +217,9 @@ function render_links($link, $title, $description, $perms, $icon = FALSE, $mode
|
|||||||
function render_clean()
|
function render_clean()
|
||||||
{
|
{
|
||||||
global $td;
|
global $td;
|
||||||
while ($td <= ADLINK_COLS) {
|
$text = "";
|
||||||
|
while ($td <= ADLINK_COLS)
|
||||||
|
{
|
||||||
$text .= "<td class='td' style='width:20%;'></td>";
|
$text .= "<td class='td' style='width:20%;'></td>";
|
||||||
$td++;
|
$td++;
|
||||||
}
|
}
|
||||||
|
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/comment.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/comment.php,v $
|
||||||
| $Revision: 1.14 $
|
| $Revision: 1.15 $
|
||||||
| $Date: 2009-11-07 11:20:26 $
|
| $Date: 2009-11-08 12:08:23 $
|
||||||
| $Author: e107coders $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -79,7 +79,7 @@ class comments_admin_ui extends e_admin_ui
|
|||||||
//TODO - finish 'user' type, set 'data' to all editable fields, set 'noedit' for all non-editable fields
|
//TODO - finish 'user' type, set 'data' to all editable fields, set 'noedit' for all non-editable fields
|
||||||
protected $fields = array(
|
protected $fields = array(
|
||||||
'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'),
|
'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'),
|
||||||
'comment_id' => array('title'=> ID, 'type' => 'int', 'width' =>'5%', 'forced'=> TRUE),
|
'comment_id' => array('title'=> LAN_ID, 'type' => 'int', 'width' =>'5%', 'forced'=> TRUE),
|
||||||
'comment_item_id' => array('title'=> "item id", 'type' => 'text', 'width' => '5%'),
|
'comment_item_id' => array('title'=> "item id", 'type' => 'text', 'width' => '5%'),
|
||||||
'comment_subject' => array('title'=> "subject", 'type' => 'text', 'width' => 'auto', 'thclass' => 'left first'), // Display name
|
'comment_subject' => array('title'=> "subject", 'type' => 'text', 'width' => 'auto', 'thclass' => 'left first'), // Display name
|
||||||
'comment_comment' => array('title'=> "comment", 'type' => 'textarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=50&bb=1'), // Display name
|
'comment_comment' => array('title'=> "comment", 'type' => 'textarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=50&bb=1'), // Display name
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||||
* $Id: admin_shortcodes_class.php,v 1.30 2009-11-08 09:14:28 e107coders Exp $
|
* $Id: admin_shortcodes_class.php,v 1.31 2009-11-08 12:08:30 e107coders Exp $
|
||||||
*
|
*
|
||||||
* Admin shortcode batch - class
|
* Admin shortcode batch - class
|
||||||
*/
|
*/
|
||||||
@@ -116,7 +116,7 @@ class admin_shortcodes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$icon = $e_icon_array[$e_sub_cat];
|
$icon = varset($e_icon_array[$e_sub_cat]);
|
||||||
}
|
}
|
||||||
return $icon;
|
return $icon;
|
||||||
}
|
}
|
||||||
@@ -1072,6 +1072,8 @@ class admin_shortcodes
|
|||||||
$handle=opendir(e_DOCS.'English/');
|
$handle=opendir(e_DOCS.'English/');
|
||||||
}
|
}
|
||||||
$i=1;
|
$i=1;
|
||||||
|
if(varset($handle))
|
||||||
|
{
|
||||||
while ($file = readdir($handle))
|
while ($file = readdir($handle))
|
||||||
{
|
{
|
||||||
if ($file != '.' && $file != '..' && $file != 'CVS')
|
if ($file != '.' && $file != '..' && $file != 'CVS')
|
||||||
@@ -1080,6 +1082,7 @@ class admin_shortcodes
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
$text .= '</div>';
|
$text .= '</div>';
|
||||||
|
|
||||||
|
@@ -1,41 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
|
|
||||||
// Multi indice array sort by sweetland@whoadammit.com
|
// Better Array-sort by key function by acecream (22-Apr-2003 11:02) http://php.net/manual/en/function.asort.php
|
||||||
if (!function_exists('asortbyindex')) {
|
if (!function_exists('asortbyindex'))
|
||||||
function asortbyindex($sortarray, $index) {
|
{
|
||||||
$lastindex = count ($sortarray) - 1;
|
function asortbyindex($array, $key)
|
||||||
for ($subindex = 0; $subindex < $lastindex; $subindex++) {
|
{
|
||||||
$lastiteration = $lastindex - $subindex;
|
foreach ($array as $i => $k)
|
||||||
for ($iteration = 0; $iteration < $lastiteration; $iteration++) {
|
{
|
||||||
$nextchar = 0;
|
$sort_values[$i] = $array[$i][$key];
|
||||||
if (comesafter ($sortarray[$iteration][$index], $sortarray[$iteration + 1][$index])) {
|
|
||||||
$temp = $sortarray[$iteration];
|
|
||||||
$sortarray[$iteration] = $sortarray[$iteration + 1];
|
|
||||||
$sortarray[$iteration + 1] = $temp;
|
|
||||||
}
|
}
|
||||||
|
asort ($sort_values);
|
||||||
|
reset ($sort_values);
|
||||||
|
while (list ($arr_key, $arr_val) = each ($sort_values))
|
||||||
|
{
|
||||||
|
$sorted_arr[] = $array[$arr_key];
|
||||||
}
|
}
|
||||||
}
|
return $sorted_arr;
|
||||||
return ($sortarray);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!function_exists('comesafter')) {
|
|
||||||
function comesafter($s1, $s2) {
|
|
||||||
$order = 1;
|
|
||||||
if (strlen ($s1) > strlen ($s2)) {
|
|
||||||
$temp = $s1;
|
|
||||||
$s1 = $s2;
|
|
||||||
$s2 = $temp;
|
|
||||||
$order = 0;
|
|
||||||
}
|
|
||||||
for ($index = 0; $index < strlen ($s1); $index++) {
|
|
||||||
if ($s1[$index] > $s2[$index]) return ($order);
|
|
||||||
if ($s1[$index] < $s2[$index]) return (1 - $order);
|
|
||||||
}
|
|
||||||
return ($order);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!function_exists('multiarray_sort')) {
|
if (!function_exists('multiarray_sort')) {
|
||||||
function multiarray_sort(&$array, $key, $order = 'asc', $natsort = true, $case = true)
|
function multiarray_sort(&$array, $key, $order = 'asc', $natsort = true, $case = true)
|
||||||
@@ -2646,9 +2632,10 @@ class e_admin_form_ui extends e_form
|
|||||||
{
|
{
|
||||||
$err = "";
|
$err = "";
|
||||||
$fields = array_keys($this->getController()->getFields());
|
$fields = array_keys($this->getController()->getFields());
|
||||||
|
|
||||||
foreach($fields as $val)
|
foreach($fields as $val)
|
||||||
{
|
{
|
||||||
if(method_exists(e_form,$val)) // check even if type is not method. - just in case of an upgrade later by 3rd-party.
|
if(method_exists('e_form',$val)) // check even if type is not method. - just in case of an upgrade later by 3rd-party.
|
||||||
{
|
{
|
||||||
$err .= "<h2>ERROR: The field name (".$val.") is not allowed.</h2>";
|
$err .= "<h2>ERROR: The field name (".$val.") is not allowed.</h2>";
|
||||||
$err .= "Please rename the key (".$val.") to something else in your fields array and database table.<br /><br />";
|
$err .= "Please rename the key (".$val.") to something else in your fields array and database table.<br /><br />";
|
||||||
@@ -2910,7 +2897,7 @@ class e_admin_form_ui extends e_form
|
|||||||
|
|
||||||
if(count($option) > 0)
|
if(count($option) > 0)
|
||||||
{
|
{
|
||||||
$text .= "\t".$this->optgroup_open($optdiz[$type].defset($val['title'], $val['title']), $disabled)."\n";
|
$text .= "\t".$this->optgroup_open($optdiz[$type].defset($val['title'], $val['title']), varset($disabled))."\n";
|
||||||
foreach($option as $okey=>$oval)
|
foreach($option as $okey=>$oval)
|
||||||
{
|
{
|
||||||
$text .= $this->option($oval, $okey, $selected == $okey)."\n";
|
$text .= $this->option($oval, $okey, $selected == $okey)."\n";
|
||||||
|
@@ -9,9 +9,9 @@
|
|||||||
* Form Handler
|
* Form Handler
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
|
||||||
* $Revision: 1.70 $
|
* $Revision: 1.71 $
|
||||||
* $Date: 2009-11-06 18:37:23 $
|
* $Date: 2009-11-08 12:08:24 $
|
||||||
* $Author: secretr $
|
* $Author: e107coders $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -854,16 +854,16 @@ class e_form
|
|||||||
{
|
{
|
||||||
if($val == "[FIELD]")
|
if($val == "[FIELD]")
|
||||||
{
|
{
|
||||||
$field = $tmp[$key];
|
$field = varset($tmp[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($val == "[ASC]")
|
if($val == "[ASC]")
|
||||||
{
|
{
|
||||||
$ascdesc = $tmp[$key];
|
$ascdesc = varset($tmp[$key]);
|
||||||
}
|
}
|
||||||
if($val == "[FROM]")
|
if($val == "[FROM]")
|
||||||
{
|
{
|
||||||
$fromval = $tmp[$key];
|
$fromval = varset($tmp[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -932,7 +932,7 @@ class e_form
|
|||||||
{
|
{
|
||||||
|
|
||||||
//Not found
|
//Not found
|
||||||
if((!$data['forced'] && !in_array($field, $currentlist)) || $data['nolist'])
|
if((!varset($data['forced']) && !in_array($field, $currentlist)) || varset($data['nolist']))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -949,7 +949,7 @@ class e_form
|
|||||||
|
|
||||||
$tdclass = vartrue($data['class']);
|
$tdclass = vartrue($data['class']);
|
||||||
if($field == 'checkboxes') $tdclass = $tdclass ? $tdclass.' autocheck e-pointer' : 'autocheck e-pointer';
|
if($field == 'checkboxes') $tdclass = $tdclass ? $tdclass.' autocheck e-pointer' : 'autocheck e-pointer';
|
||||||
$value = $this->renderValue($field, $fieldvalues[$field], $data, $fieldvalues[$pid]);
|
$value = $this->renderValue($field, varset($fieldvalues[$field]), $data, varset($fieldvalues[$pid]));
|
||||||
|
|
||||||
if($tdclass)
|
if($tdclass)
|
||||||
{
|
{
|
||||||
@@ -1300,9 +1300,9 @@ class e_form
|
|||||||
$url = (isset($options['url']) ? $tp->replaceConstants($options['url'], 'abs') : e_SELF);
|
$url = (isset($options['url']) ? $tp->replaceConstants($options['url'], 'abs') : e_SELF);
|
||||||
$formurl = $url.($query ? '?'.$query : '');
|
$formurl = $url.($query ? '?'.$query : '');
|
||||||
$fields = $options['fields'];
|
$fields = $options['fields'];
|
||||||
$current_fields = $options['fieldpref'];
|
$current_fields = varset($options['fieldpref']) ? $options['fieldpref'] : array_keys($options['fields']);
|
||||||
|
|
||||||
$text .= "
|
$text = "
|
||||||
".vartrue($options['form_pre'])."
|
".vartrue($options['form_pre'])."
|
||||||
<form method='post' action='{$formurl}' id='{$elid}-list-form'>
|
<form method='post' action='{$formurl}' id='{$elid}-list-form'>
|
||||||
".vartrue($options['fieldset_pre'])."
|
".vartrue($options['fieldset_pre'])."
|
||||||
@@ -1311,7 +1311,7 @@ class e_form
|
|||||||
".vartrue($options['table_pre'])."
|
".vartrue($options['table_pre'])."
|
||||||
<table cellpadding='0' cellspacing='0' class='adminlist' id='{$elid}-list-table'>
|
<table cellpadding='0' cellspacing='0' class='adminlist' id='{$elid}-list-table'>
|
||||||
".$this->colGroup($fields, $current_fields)."
|
".$this->colGroup($fields, $current_fields)."
|
||||||
".$this->thead($fields, $current_fields, $options['head_query'], $options['query'])."
|
".$this->thead($fields, $current_fields, varset($options['head_query']), varset($options['query']))."
|
||||||
<tbody>
|
<tbody>
|
||||||
";
|
";
|
||||||
|
|
||||||
|
@@ -9,9 +9,9 @@
|
|||||||
* mySQL Handler
|
* mySQL Handler
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/mysql_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/mysql_class.php,v $
|
||||||
* $Revision: 1.60 $
|
* $Revision: 1.61 $
|
||||||
* $Date: 2009-10-29 21:28:09 $
|
* $Date: 2009-11-08 12:08:24 $
|
||||||
* $Author: e107steved $
|
* $Author: e107coders $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(defined('MYSQL_LIGHT'))
|
if(defined('MYSQL_LIGHT'))
|
||||||
@@ -49,8 +49,8 @@ $db_ConnectionID = NULL; // Stores ID for the first DB connection used - which s
|
|||||||
*
|
*
|
||||||
* @package e107
|
* @package e107
|
||||||
* @category e107_handlers
|
* @category e107_handlers
|
||||||
* @version $Revision: 1.60 $
|
* @version $Revision: 1.61 $
|
||||||
* @author $Author: e107steved $
|
* @author $Author: e107coders $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class e_db_mysql {
|
class e_db_mysql {
|
||||||
@@ -70,7 +70,7 @@ class e_db_mysql {
|
|||||||
var $mySQLlanguage;
|
var $mySQLlanguage;
|
||||||
var $mySQLinfo;
|
var $mySQLinfo;
|
||||||
var $tabset;
|
var $tabset;
|
||||||
var $mySQLtablelist = array(); // list of all Db tables.
|
var $mySQLtableList = array(); // list of all Db tables.
|
||||||
|
|
||||||
var $mySQLtableListLanguage = array(); // Db table list for the currently selected language
|
var $mySQLtableListLanguage = array(); // Db table list for the currently selected language
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||||
* $Id: lan_admin.php,v 1.35 2009-11-08 09:14:39 e107coders Exp $
|
* $Id: lan_admin.php,v 1.36 2009-11-08 12:08:35 e107coders Exp $
|
||||||
*
|
*
|
||||||
* Admin Language File
|
* Admin Language File
|
||||||
*/
|
*/
|
||||||
@@ -309,4 +309,6 @@ define("LAN_NO_RECORDS", "No Records Found");
|
|||||||
define("LAN_STATUS", "Status");
|
define("LAN_STATUS", "Status");
|
||||||
define("LAN_URL", "URL");
|
define("LAN_URL", "URL");
|
||||||
define("LAN_USER", "User");
|
define("LAN_USER", "User");
|
||||||
|
define("LAN_ID", "ID");
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user