forked from wolfgang-wiedermann/php_mobile_accounting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
35 lines (29 loc) · 785 Bytes
/
test.php
File metadata and controls
35 lines (29 loc) · 785 Bytes
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
<?php
include_once("lib/Database.php");
# Datenbankkonfig testen:
$pdo = getPdoConnection();
#print("ERROR?: " . mysqli_error($db));
$stmt = $pdo->prepare("select * from information_schema.tables");
$stmt->execute();
#print("ERROR?: " . mysqli_error($db));
$_REQUEST = array();
$_SERVER = array();
# Basis
$_SERVER['REMOTE_USER'] = 'test';
# Test 1
$_REQUEST['controller'] = 'konto';
$_REQUEST['action'] = 'list';
# Test 2
#$_REQUEST['controller'] = 'buchung';
#$_REQUEST['action'] = 'listbykonto';
#$_REQUEST['konto'] = '2800';
# Test 3
#$_REQUEST['controller'] = 'ergebnis';
#$_REQUEST['action'] = 'guv';
#$_REQUEST['outputtype'] = 'csv';
# Test 4
#$_REQUEST['controller'] = 'office';
#$_REQUEST['action'] = 'journal';
#$_REQUEST['format'] = 'json';
include("./index.php");
?>