clipbucket/upload/includes/functions_helper.php
Fawaz e788a0a157 Updated : Broken functions.php into functions_OBJECT.php
Updated : videos.class, photos.classes, lang.classes, my_queries.class, pm.class, user.class
2013-10-08 12:24:07 +00:00

46 lines
No EOL
995 B
PHP

<?php
/**
* Created by JetBrains PhpStorm.
* User: Fawaz
* Date: 8/28/13
* Time: 12:17 PM
* To change this template use File | Settings | File Templates.
*/
function get_website_configurations() {
$query = "SELECT name, value FROM ".tbl( 'config' );
$results = select( $query );
$data = array();
if ( $results ) {
foreach( $results as $config ) {
$data[ $config[ 'name' ] ] = $config[ 'value' ];
}
}
return $data;
}
/**
* Function used to get config value
* of ClipBucket
*/
function config($input)
{
global $Cbucket;
return $Cbucket->configs[$input];
}
function get_config($input){ return config($input); }
/**
* Function used to get player logo
*/
function website_logo()
{
$logo_file = config('player_logo_file');
if(file_exists(BASEDIR.'/images/'.$logo_file) && $logo_file)
return BASEURL.'/images/'.$logo_file;
return BASEURL.'/images/logo.png';
}