| Current Path : /var/www/html/llcfapp/api/base/ |
| Current File : /var/www/html/llcfapp/api/base/Config.php |
<?php
class Config{
public static function getDbCredentials(){
$credentialsLocal = array(
"serverAddress" => 'localhost',
"username" => 'root',
"password" => '',
"dbname" => 'llcfapp'
);
$credentialsProduction = array(
"serverAddress" => '142.93.153.53',
"username" => 'dev',
"password" => 'javgarvqwaxqircd',
"dbname" => 'llcfapp'
);
$credentials = $credentialsProduction;
return $credentials;
}
public static function getConfig($param){
$config = [
"spearGridRedirect" => "spear_grid.php",
"spearRedirect" => "spear.php",
"spearStudentRedirect" => "spstudent.php",
"spearStudentGridRedirect" => "spstudent_grid.php",
"attendanceGridRedirect" => "attendance_grid.php",
"attendanceRedirect" => "attendance.php",
"loginRedirect" => "login.php",
"homeRedirect" => "index.php",
"familyRedirect" => "family.php",
"familyGridRedirect" => "family_grid.php",
"familyServiceGridRedirect" => "family_service_grid.php",
"studentRedirect" => "student.php",
"studentGridRedirect" => "student_grid.php",
"studentServiceGridRedirect" => "student_service_grid.php",
"familyServiceGridRedirect" => "family_service_grid.php",
"donorGridRedirect" => "donor_grid.php",
"donorRedirect" => "donor.php",
"healthRedirect" => "health.php",
"healthGridRedirect" => "health_grid.php",
"studentVtcRedirect" => "studentvtc.php",
"studentVtcGridRedirect" => "studentvtc_grid.php",
"allahWalaRedirect" => "#",
"licenseRedirect" => "license.php",
"indexRedirect" => "/",
"llcfweb" => "https://llcf.org.pk/",
];
return $config[$param];
}
public static function getTable($param){
$table = [
"attendance" => "attendance",
"family" => "family",
"donor" => "donor",
"student" => "student",
"student_service" => "student_service",
"family_service" => "family_service",
"user" => "user",
"health" => "health",
"spear" => "spear",
"spear_student" => "spstudent",
];
return $table[$param];
}
public static function getValidApiKeys(){
$keys = array(
'3fb542058bffb60d31cf14db5dcd144c',
'c0660685ba6826b826528c7ebc898abd',
'a466d335298c5ba6f77246a6b94d4766'
);
return $keys;
}
public static function getConsumerNamesAgainstApiKeys(){
$consumers = ['3fb542058bffb60d31cf14db5dcd144c' => 'llcfapp'];
return $consumers;
}
}
?>