Fixed styling, added comments
This commit is contained in:
parent
8e61765a70
commit
2e35865811
1 changed files with 19 additions and 8 deletions
|
@ -8,7 +8,7 @@
|
|||
* @author[s]: Arslan Hassan, Fawaz Tahir, Fahad Abbass, Awais Tariq, Saqib Razzaq
|
||||
* @copyright: (c) 2008 - 2016 ClipBucket / PHPBucket
|
||||
* @notice: Please maintain this section
|
||||
* @modified: March 4th, 2016 ClipBucket 2.8.1
|
||||
* @modified: { January 6th, 2016 } { ClipBucket 2.8.2 } { fixed styling, cleaned notices, added function documentation } { Saqib Razzaq }
|
||||
*/
|
||||
|
||||
define("SHOW_COUNTRY_FLAG",TRUE);
|
||||
|
@ -5609,6 +5609,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Assigns smarty values to an array
|
||||
* @param : { array } { $vals } { an associative array to assign vals }
|
||||
*/
|
||||
|
||||
function array_val_assign($vals) {
|
||||
if (is_array($vals)) {
|
||||
$total_vars = count($vals);
|
||||
|
@ -5675,6 +5680,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows admin to upload logo via admin area
|
||||
*/
|
||||
|
||||
function upload_logo() {
|
||||
global $Cbucket;
|
||||
$active_template = $Cbucket->configs['template_dir'];
|
||||
|
@ -5730,8 +5739,9 @@
|
|||
}//end AutoLinkUrls
|
||||
|
||||
|
||||
/*
|
||||
/**
|
||||
* Generates a random characters (strings only) string
|
||||
* @param : { integer } { $length } { length of random string to generate }
|
||||
*/
|
||||
|
||||
function charsRandomStr($length = 5) {
|
||||
|
@ -5793,17 +5803,18 @@
|
|||
curl_setopt($ch, CURLOPT_NOBODY, true);
|
||||
curl_exec($ch);
|
||||
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
|
||||
if($code == 200) {
|
||||
$status = true;
|
||||
} else {
|
||||
$status = false;
|
||||
}
|
||||
|
||||
curl_close($ch);
|
||||
return $status;
|
||||
} catch(Exception $e) {
|
||||
echo 'Caught exception: ', $e->getMessage(), "\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue