aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/config.inc.php5
-rw-r--r--include/functions.inc.php38
2 files changed, 0 insertions, 43 deletions
diff --git a/include/config.inc.php b/include/config.inc.php
index edf3fb539..c9c23b0e5 100644
--- a/include/config.inc.php
+++ b/include/config.inc.php
@@ -81,11 +81,6 @@ $conf['top_number'] = 15;
// anti-flood_time : number of seconds between 2 comments : 0 to disable
$conf['anti-flood_time'] = 60;
-// max_LOV_categories : maximum number of categories to display in a list of
-// value. Over this limit, a textfield is displayed, asking for a category
-// identifier
-$conf['max_LOV_categories'] = 50;
-
// show_iptc_mapping : is used for showing IPTC metadata on picture.php
// page. For each key of the array, you need to have the same key in the
// $lang array. For example, if my first key is 'iptc_keywords' (associated
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 07bcb03b7..b3bc71950 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -34,44 +34,6 @@ include_once( PHPWG_ROOT_PATH .'include/functions_html.inc.php' );
//----------------------------------------------------------- generic functions
-/**
- * possible values of an "enum" field
- *
- * get_enums returns an array containing the possible values of a enum field
- * in a table of the database.
- *
- * @param string table in the database
- * @param string field name in this table
- * @uses str_replace
- * @uses explode
- * @uses sizeof
- * @uses substr
- */
-function get_enums( $table, $field )
-{
- // retrieving the properties of the table. Each line represents a field :
- // columns are 'Field', 'Type'
- $result=pwg_query("desc $table");
- while ( $row = mysql_fetch_array( $result ) )
- {
- // we are only interested in the the field given in parameter for the
- // function
- if ( $row['Field']==$field )
- {
- // retrieving possible values of the enum field
- // enum('blue','green','black')
- $option = explode( ',', substr($row['Type'], 5, -1 ) );
- for ( $i = 0; $i < sizeof( $option ); $i++ )
- {
- // deletion of quotation marks
- $option[$i] = str_replace( "'", '',$option[$i] );
- }
- }
- }
- mysql_free_result( $result );
- return $option;
-}
-
// get_boolean transforms a string to a boolean value. If the string is
// "false" (case insensitive), then the boolean value false is returned. In
// any other case, true is returned.