瀏覽代碼

Add the database connection.

markjcrane 10 年之前
父節點
當前提交
63ba66f96f
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      resources/classes/destinations.php

+ 5 - 3
resources/classes/destinations.php

@@ -30,6 +30,9 @@ class destinations {
 	 */
 	 */
 	public function get_array() {
 	public function get_array() {
 
 
+		//set the global variables
+			global($db);
+
 		//get the array from the app_config.php files
 		//get the array from the app_config.php files
 			$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
 			$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
 			$x = 0;
 			$x = 0;
@@ -208,9 +211,8 @@ class destinations {
 		//return the formatted destinations
 		//return the formatted destinations
 			return $response;
 			return $response;
 	}
 	}
-	//$obj = new destinations;
-	//echo $obj->select('dialplan', 'example', 'value');
-
 }
 }
+//$obj = new destinations;
+//echo $obj->select('dialplan', 'example', 'value');
 
 
 ?>
 ?>