Ampache
[ class tree: Ampache ] [ index: Ampache ] [ all elements ]

Procedural File: general.lib.php

Source Location: /lib/general.lib.php



Page Details:









checkdnsrr [line 482]

void checkdnsrr( $host, [ $type = 'MX'])



Parameters

   $host  
   $type  
[ Top ]



extend_session [line 77]

void extend_session( $sid)

extend_session

just updates the expire time of the specified session this is used by the the play script after a song finishes




Parameters

   $sid  
[ Top ]



format_time [line 355]

void format_time( $seconds)

format_time

This formats seconds into minutes:seconds //FIXME This should be removed, no reason for it!




Parameters

   $seconds  
[ Top ]



generate_password [line 188]

void generate_password( $length)

generate_password

This generates a random password, of the specified length




Parameters

   $length  
[ Top ]



getmxrr [line 516]

void getmxrr( $hostname, &$mxhosts, [ &$mxweight = false])



Parameters

   $hostname  
   &$mxhosts  
   &$mxweight  
[ Top ]



get_global_popular [line 131]

void get_global_popular( $type)

get_global_popular

this function gets the current globally popular items from the object_count table, depending on type passed




Parameters

   $type  
[ Top ]



get_languages [line 271]

void get_languages( )

get_languages

This function does a dir of ./locale and pulls the names of the different languages installed, this means that all you have to do is drop one in and it will show up on the context menu. It returns in the form of an array of names




[ Top ]



invert_boolean [line 410]

void invert_boolean( $value)

invert_boolean

This returns the opposite of what you've got




Parameters

   $value  
[ Top ]



make_bool [line 246]

void make_bool( $string)

make_bool

This takes a value and returns what I consider to be the correct boolean value This is used instead of settype alone because settype considers 0 and "false" to be true




Parameters

   $string  
[ Top ]



print_boolean [line 392]

void print_boolean( $value)

print_boolean

This function takes a boolean value and then print out a friendly text message, usefull if you have a 0/1 that you need to turn into a "Off" "On"




Parameters

   $value  
[ Top ]



revert_string [line 232]

void revert_string( $string)

revert_string

This returns a scrubed string to it's most normal state Uhh yea better way to do this please?




Parameters

   $string  
[ Top ]



scrub_in [line 92]

void scrub_in( $str)



Parameters

   $str  
[ Top ]



scrub_out [line 215]

void scrub_out( $str)

scrub_out

This function is used to escape user data that is getting redisplayed onto the page, it htmlentities the mojo




Parameters

   $str  
[ Top ]



session_exists [line 27]

void session_exists( $sid, [ $xml_rpc = 0])

session_exists

checks to make sure they've specified a valid session, can handle xmlrpc




Parameters

   $sid  
   $xml_rpc  
[ Top ]



set_memory_limit [line 110]

void set_memory_limit( $new_limit)



Parameters

   $new_limit  
[ Top ]



translate_pattern_code [line 366]

void translate_pattern_code( $code)

translate_pattern_code

This just contains a key'd array which it checks against to give you the 'tag' name that said pattern code corrasponds to, it returns false if nothing is found




Parameters

   $code  
[ Top ]



unhtmlentities [line 425]

void unhtmlentities( $string)

unhtmlentities

This is required to make thing work.. but holycrap is it ugly




Parameters

   $string  
[ Top ]



win_checkdnsrr [line 466]

void win_checkdnsrr( $host, [ $type = 'MX'])

win_checkdnsrr

This is a windows emulation of the normal PHP functions not sure how I feel about the exec in here, but it's escaped this most likely won't work on a lot of systems




Parameters

   $host  
   $type  
[ Top ]



win_getmxrr [line 492]

void win_getmxrr( $hostname, &$mxhosts, [ &$mxweight = false])

win_getmxrr

This emulates the normal PHP function for getting MX records most likely won't work on systems due to use of exec




Parameters

   $hostname  
   &$mxhosts  
   &$mxweight  
[ Top ]



__autoload [line 440]

void __autoload( $class)

__autoload

This function automatically loads any missing classes as they are called so that we don't have to have a million include statements, and load more then we need




Parameters

   $class  
[ Top ]



Documentation generated on Thu, 12 Feb 2009 07:59:58 +0900 by phpDocumentor 1.4.2