blob: fa3a0e58e58b87c6a23c96f358b10ddfc175f931 (
plain)
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
52
|
hunk ./index.php 2
-/*
+/**
hunk ./index.php 23
-require_once(INSTALLDIR . "/lib/common.php");
+require_once INSTALLDIR . '/lib/common.php';
hunk ./index.php 25
-# get and cache current user
+// get and cache current user
hunk ./index.php 29
-# initialize language env
+// initialize language env
hunk ./index.php 44
- 'recoverpassword', 'api', 'doc', 'register')))
-{
+ 'recoverpassword', 'api', 'doc', 'register'))) {
hunk ./index.php 51
- require_once($actionfile);
- $action_class = ucfirst($action)."Action";
+
+ include_once $actionfile;
+
+ $action_class = ucfirst($action).'Action';
+
hunk ./index.php 57
- if ($config['db']['mirror'] && $action_obj->is_readonly()) {
- if (is_array($config['db']['mirror'])) {
- # "load balancing", ha ha
- $k = array_rand($config['db']['mirror']);
- $mirror = $config['db']['mirror'][$k];
- } else {
- $mirror = $config['db']['mirror'];
- }
- $config['db']['database'] = $mirror;
- }
+
+ if ($config['db']['mirror'] && $action_obj->is_readonly()) {
+ if (is_array($config['db']['mirror'])) {
+ // "load balancing", ha ha
+ $k = array_rand($config['db']['mirror']);
+
+ $mirror = $config['db']['mirror'][$k];
+ } else {
+ $mirror = $config['db']['mirror'];
+ }
+ $config['db']['database'] = $mirror;
+ }
hunk ./index.php 70
- call_user_func(array($action_obj, 'handle'), $_REQUEST);
- }
+ call_user_func(array($action_obj, 'handle'), $_REQUEST);
+ }
|