-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
50 lines (37 loc) · 1.19 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
##### Hata Denetimi #####
error_reporting(0);
//error_reporting(E_ALL);
##### Zaman Dilimi #####
date_default_timezone_set('Europe/Istanbul');
##### Sabitler #####
define('KONTROL', true);
define('SITE_PATH', dirname(__FILE__));
define('SITE_URL', 'http://127.0.0.1/namazvakitleri'); // SITE URL
require 'function.php';
$islem=@$_GET['islem'];
$ulke_id=@(int)$_GET['ulke_id'];
$sehir_id=@(int)$_GET['sehir_id'];
$ilce_id=@(int)$_GET['ilce_id'];
$periyot=@$_GET['periyot'];
switch($islem){
case 'getSehirList':
header("Content-type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
echo getSehirListFunc($ulke_id);
break;
case 'getIlceList':
header("Content-type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
echo getIlceListFunc($sehir_id);
break;
case 'getNamazVakitleri':
header("Content-type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
echo getNamazVakitleri($ulke_id,$sehir_id,$ilce_id,$periyot);
break;
default:
header("Access-Control-Allow-Origin: *");
anasayfa();
break;
}