-
Notifications
You must be signed in to change notification settings - Fork 84
/
srv.php
51 lines (38 loc) · 1.61 KB
/
srv.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
51
<?php
/*
==========================================================================
ADEL CODEIGNITER 4 CRUD GENERATOR
==========================================================================
برمجة وتطوير: عادل قصي
البريد الإلكتروني: adelbak2014@gmail.com
الموقع الرسمي: www.e-net.xyz
الصفحة الرسمية للمبرمج: https://www.facebook.com/adel.qusay.9
==========================================================================
*/
require 'config.php';
if (@$_SERVER['REQUEST_METHOD'] !== 'POST') die('0');
/*------------------------------------------------
getTablesByDatabase
--------------------------------------------------*/
if (isset($_POST['act']) && $_POST['act'] === 'getTablesByDatabase') {
$engine->getTablesByDatabase($_POST);
}
/*------------------------------------------------
getColumnsByTable
--------------------------------------------------*/
if (isset($_POST['act']) && $_POST['act'] === 'getColumnsByTable') {
$engine->getColumnsByTable($_POST);
}
/*------------------------------------------------
getPrimaryColumnsByTable
--------------------------------------------------*/
if (isset($_POST['act']) && $_POST['act'] === 'getPrimaryColumnsByTable') {
$engine->getPrimaryColumnsByTable($_POST);
}
/*------------------------------------------------
generate
--------------------------------------------------*/
if (isset($_POST['act']) && $_POST['act'] === 'generate') {
$engine->generate($_POST);
}
?>