Using camelCase for function names in 'inc/lib_config.php'
PHP function names is case-insensitive so this change isn't intrusive but improve readability of the code.
This commit is contained in:
parent
7a7b2cdd1e
commit
a532719c21
|
@ -4,7 +4,7 @@ class OC_CONFIG{
|
||||||
* show the configform
|
* show the configform
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static function showconfigform(){
|
public static function showConfigForm(){
|
||||||
global $CONFIG_ADMINLOGIN;
|
global $CONFIG_ADMINLOGIN;
|
||||||
global $CONFIG_ADMINPASSWORD;
|
global $CONFIG_ADMINPASSWORD;
|
||||||
global $CONFIG_DATADIRECTORY;
|
global $CONFIG_DATADIRECTORY;
|
||||||
|
@ -18,7 +18,7 @@ class OC_CONFIG{
|
||||||
* show the configform
|
* show the configform
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static function showadminform(){
|
public static function showAdminForm(){
|
||||||
global $CONFIG_ADMINLOGIN;
|
global $CONFIG_ADMINLOGIN;
|
||||||
global $CONFIG_ADMINPASSWORD;
|
global $CONFIG_ADMINPASSWORD;
|
||||||
global $CONFIG_DATADIRECTORY;
|
global $CONFIG_DATADIRECTORY;
|
||||||
|
@ -40,7 +40,7 @@ class OC_CONFIG{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function createuserlisener(){
|
public static function createUserLisener(){
|
||||||
if(OC_USER::isLoggedIn()){
|
if(OC_USER::isLoggedIn()){
|
||||||
if(OC_USER::ingroup($_SESSION['username'],'admin')){
|
if(OC_USER::ingroup($_SESSION['username'],'admin')){
|
||||||
if(isset($_POST['new_username']) and isset($_POST['new_password'])){
|
if(isset($_POST['new_username']) and isset($_POST['new_password'])){
|
||||||
|
@ -58,7 +58,7 @@ class OC_CONFIG{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function creategrouplisener(){
|
public static function createGroupLisener(){
|
||||||
if(OC_USER::isLoggedIn()){
|
if(OC_USER::isLoggedIn()){
|
||||||
if(isset($_POST['creategroup']) and $_POST['creategroup']==1){
|
if(isset($_POST['creategroup']) and $_POST['creategroup']==1){
|
||||||
if(OC_USER::creategroup($_POST['groupname'])){
|
if(OC_USER::creategroup($_POST['groupname'])){
|
||||||
|
@ -83,7 +83,7 @@ class OC_CONFIG{
|
||||||
* lisen for configuration changes
|
* lisen for configuration changes
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static function configlisener(){
|
public static function configLisener(){
|
||||||
if(OC_USER::isLoggedIn()){
|
if(OC_USER::isLoggedIn()){
|
||||||
if(isset($_POST['config']) and $_POST['config']==1){
|
if(isset($_POST['config']) and $_POST['config']==1){
|
||||||
$error='';
|
$error='';
|
||||||
|
@ -115,7 +115,7 @@ class OC_CONFIG{
|
||||||
* lisen for admin configuration changes and write it to the file
|
* lisen for admin configuration changes and write it to the file
|
||||||
*4bd0be1185e76
|
*4bd0be1185e76
|
||||||
*/
|
*/
|
||||||
public static function writeadminlisener(){
|
public static function writeAdminLisener(){
|
||||||
global $CONFIG_INSTALLED;
|
global $CONFIG_INSTALLED;
|
||||||
$allow=false;
|
$allow=false;
|
||||||
if(!$CONFIG_INSTALLED){
|
if(!$CONFIG_INSTALLED){
|
||||||
|
@ -280,7 +280,7 @@ class OC_CONFIG{
|
||||||
* the same effect can be achieved by accessing the SQLite pseudo-column
|
* the same effect can be achieved by accessing the SQLite pseudo-column
|
||||||
* "rowid"
|
* "rowid"
|
||||||
*/
|
*/
|
||||||
private static function filldatabase(){
|
private static function fillDatabase(){
|
||||||
global $SERVERROOT;
|
global $SERVERROOT;
|
||||||
OC_DB::createDBFromStructure($SERVERROOT.'/db_structure.xml');
|
OC_DB::createDBFromStructure($SERVERROOT.'/db_structure.xml');
|
||||||
}
|
}
|
||||||
|
@ -291,7 +291,7 @@ class OC_CONFIG{
|
||||||
* @param string adminPwd
|
* @param string adminPwd
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static function createdatabase($adminUser,$adminPwd){
|
private static function createDatabase($adminUser,$adminPwd){
|
||||||
global $CONFIG_DBHOST;
|
global $CONFIG_DBHOST;
|
||||||
global $CONFIG_DBNAME;
|
global $CONFIG_DBNAME;
|
||||||
global $CONFIG_DBUSER;
|
global $CONFIG_DBUSER;
|
||||||
|
|
Loading…
Reference in New Issue