@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | - header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | - header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | - header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | - header( 'Pragma: no-cache' ); |
|
2 | + header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | + header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | + header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | + header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | + header( 'Pragma: no-cache' ); |
|
7 | 7 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -19,12 +19,12 @@ discard block |
||
19 | 19 | <script type="text/javascript" src="../../js/jquery.dataTables.js"></script> |
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | - $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | - for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
24 | - { |
|
25 | - echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
|
26 | - } |
|
27 | - ?> |
|
22 | + $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | + for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
24 | + { |
|
25 | + echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
|
26 | + } |
|
27 | + ?> |
|
28 | 28 | </head> |
29 | 29 | <body id="dt_example"> |
30 | 30 | <div id="container"> |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | - header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | - header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | - header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | - header( 'Pragma: no-cache' ); |
|
2 | + header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); |
|
3 | + header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); |
|
4 | + header('Cache-Control: no-store, no-cache, must-revalidate'); |
|
5 | + header('Cache-Control: post-check=0, pre-check=0', false); |
|
6 | + header('Pragma: no-cache'); |
|
7 | 7 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | <script type="text/javascript" src="../../js/jquery.dataTables.js"></script> |
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | - $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | - for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
22 | + $aScripts = explode(":", $_GET['scripts']); |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) |
|
24 | 24 | { |
25 | 25 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
26 | 26 | } |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | - header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | - header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | - header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | - header( 'Pragma: no-cache' ); |
|
2 | + header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | + header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | + header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | + header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | + header( 'Pragma: no-cache' ); |
|
7 | 7 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -19,12 +19,12 @@ discard block |
||
19 | 19 | <script type="text/javascript" src="../../js/jquery.dataTables.js"></script> |
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | - $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | - for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
24 | - { |
|
25 | - echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
|
26 | - } |
|
27 | - ?> |
|
22 | + $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | + for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
24 | + { |
|
25 | + echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
|
26 | + } |
|
27 | + ?> |
|
28 | 28 | </head> |
29 | 29 | <body id="dt_example"> |
30 | 30 | <div id="container"> |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | - header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | - header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | - header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | - header( 'Pragma: no-cache' ); |
|
2 | + header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); |
|
3 | + header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); |
|
4 | + header('Cache-Control: no-store, no-cache, must-revalidate'); |
|
5 | + header('Cache-Control: post-check=0, pre-check=0', false); |
|
6 | + header('Pragma: no-cache'); |
|
7 | 7 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | <script type="text/javascript" src="../../js/jquery.dataTables.js"></script> |
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | - $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | - for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
22 | + $aScripts = explode(":", $_GET['scripts']); |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) |
|
24 | 24 | { |
25 | 25 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
26 | 26 | } |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | - header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | - header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | - header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | - header( 'Pragma: no-cache' ); |
|
2 | + header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | + header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | + header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | + header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | + header( 'Pragma: no-cache' ); |
|
7 | 7 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -19,12 +19,12 @@ discard block |
||
19 | 19 | <script type="text/javascript" src="../../js/jquery.dataTables.js"></script> |
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | - $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | - for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
24 | - { |
|
25 | - echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
|
26 | - } |
|
27 | - ?> |
|
22 | + $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | + for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
24 | + { |
|
25 | + echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
|
26 | + } |
|
27 | + ?> |
|
28 | 28 | </head> |
29 | 29 | <body id="dt_example"> |
30 | 30 | <div id="container"> |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | - header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | - header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | - header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | - header( 'Pragma: no-cache' ); |
|
2 | + header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); |
|
3 | + header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); |
|
4 | + header('Cache-Control: no-store, no-cache, must-revalidate'); |
|
5 | + header('Cache-Control: post-check=0, pre-check=0', false); |
|
6 | + header('Pragma: no-cache'); |
|
7 | 7 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | <script type="text/javascript" src="../../js/jquery.dataTables.js"></script> |
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | - $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | - for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
22 | + $aScripts = explode(":", $_GET['scripts']); |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) |
|
24 | 24 | { |
25 | 25 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
26 | 26 | } |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | - header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | - header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | - header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | - header( 'Pragma: no-cache' ); |
|
2 | + header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | + header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | + header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | + header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | + header( 'Pragma: no-cache' ); |
|
7 | 7 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -19,12 +19,12 @@ discard block |
||
19 | 19 | <script type="text/javascript" src="../../js/jquery.dataTables.js"></script> |
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | - $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | - for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
24 | - { |
|
25 | - echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
|
26 | - } |
|
27 | - ?> |
|
22 | + $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | + for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
24 | + { |
|
25 | + echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
|
26 | + } |
|
27 | + ?> |
|
28 | 28 | </head> |
29 | 29 | <body id="dt_example"> |
30 | 30 | <div id="container"> |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | - header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | - header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | - header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | - header( 'Pragma: no-cache' ); |
|
2 | + header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); |
|
3 | + header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); |
|
4 | + header('Cache-Control: no-store, no-cache, must-revalidate'); |
|
5 | + header('Cache-Control: post-check=0, pre-check=0', false); |
|
6 | + header('Pragma: no-cache'); |
|
7 | 7 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | <script type="text/javascript" src="../../js/jquery.dataTables.js"></script> |
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | - $aScripts = explode( ":", $_GET['scripts'] ); |
|
23 | - for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
22 | + $aScripts = explode(":", $_GET['scripts']); |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) |
|
24 | 24 | { |
25 | 25 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
26 | 26 | } |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | - header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | - header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | - header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | - header( 'Pragma: no-cache' ); |
|
2 | + header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | + header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | + header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | + header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | + header( 'Pragma: no-cache' ); |
|
7 | 7 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -81,12 +81,12 @@ discard block |
||
81 | 81 | ]; |
82 | 82 | </script> |
83 | 83 | <?php |
84 | - $aScripts = explode( ":", $_GET['scripts'] ); |
|
85 | - for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
86 | - { |
|
87 | - echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
|
88 | - } |
|
89 | - ?> |
|
84 | + $aScripts = explode( ":", $_GET['scripts'] ); |
|
85 | + for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
86 | + { |
|
87 | + echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
|
88 | + } |
|
89 | + ?> |
|
90 | 90 | </head> |
91 | 91 | <body id="dt_example"> |
92 | 92 | <div id="container"> |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | - header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |
|
3 | - header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); |
|
4 | - header( 'Cache-Control: no-store, no-cache, must-revalidate' ); |
|
5 | - header( 'Cache-Control: post-check=0, pre-check=0', false ); |
|
6 | - header( 'Pragma: no-cache' ); |
|
2 | + header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); |
|
3 | + header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); |
|
4 | + header('Cache-Control: no-store, no-cache, must-revalidate'); |
|
5 | + header('Cache-Control: post-check=0, pre-check=0', false); |
|
6 | + header('Pragma: no-cache'); |
|
7 | 7 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -81,8 +81,8 @@ discard block |
||
81 | 81 | ]; |
82 | 82 | </script> |
83 | 83 | <?php |
84 | - $aScripts = explode( ":", $_GET['scripts'] ); |
|
85 | - for ( $i=0 ; $i<count($aScripts) ; $i++ ) |
|
84 | + $aScripts = explode(":", $_GET['scripts']); |
|
85 | + for ($i = 0; $i<count($aScripts); $i++) |
|
86 | 86 | { |
87 | 87 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
88 | 88 | } |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | - /* MySQL connection */ |
|
3 | - include( $_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php" ); /* ;-) */ |
|
2 | + /* MySQL connection */ |
|
3 | + include( $_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php" ); /* ;-) */ |
|
4 | 4 | |
5 | - $gaSql['link'] = mysql_pconnect( $gaSql['server'], $gaSql['user'], $gaSql['password'] ) or |
|
6 | - die( 'Could not open connection to server' ); |
|
5 | + $gaSql['link'] = mysql_pconnect( $gaSql['server'], $gaSql['user'], $gaSql['password'] ) or |
|
6 | + die( 'Could not open connection to server' ); |
|
7 | 7 | |
8 | - mysql_select_db( $gaSql['db'], $gaSql['link'] ) or |
|
9 | - die( 'Could not select database '. $gaSql['db'] ); |
|
8 | + mysql_select_db( $gaSql['db'], $gaSql['link'] ) or |
|
9 | + die( 'Could not select database '. $gaSql['db'] ); |
|
10 | 10 | |
11 | 11 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
12 | 12 | <html> |
@@ -77,26 +77,26 @@ discard block |
||
77 | 77 | </thead> |
78 | 78 | <tbody> |
79 | 79 | <?php |
80 | - $sQuery = " |
|
80 | + $sQuery = " |
|
81 | 81 | SELECT * |
82 | 82 | FROM testData |
83 | 83 | LIMIT 2000 |
84 | 84 | "; |
85 | - $rResult = mysql_query( $sQuery, $gaSql['link'] ) or die(mysql_error()); |
|
86 | - while ( $aRow = mysql_fetch_array( $rResult ) ) |
|
87 | - { |
|
88 | - echo '<tr>'; |
|
89 | - echo '<td><a href="1">'.$aRow['id'].'</a></td>'; |
|
90 | - echo '<td>'.$aRow['name'].'</td>'; |
|
91 | - echo '<td>'.$aRow['phone'].'</td>'; |
|
92 | - echo '<td>'.$aRow['email'].'</td>'; |
|
93 | - echo '<td>'.$aRow['city'].'</td>'; |
|
94 | - echo '<td>'.$aRow['zip'].'</td>'; |
|
95 | - echo '<td>'.$aRow['state'].'</td>'; |
|
96 | - echo '<td>'.$aRow['country'].'</td>'; |
|
97 | - echo '<td>'.$aRow['zip2'].'</td>'; |
|
98 | - echo '</tr>'; |
|
99 | - } |
|
85 | + $rResult = mysql_query( $sQuery, $gaSql['link'] ) or die(mysql_error()); |
|
86 | + while ( $aRow = mysql_fetch_array( $rResult ) ) |
|
87 | + { |
|
88 | + echo '<tr>'; |
|
89 | + echo '<td><a href="1">'.$aRow['id'].'</a></td>'; |
|
90 | + echo '<td>'.$aRow['name'].'</td>'; |
|
91 | + echo '<td>'.$aRow['phone'].'</td>'; |
|
92 | + echo '<td>'.$aRow['email'].'</td>'; |
|
93 | + echo '<td>'.$aRow['city'].'</td>'; |
|
94 | + echo '<td>'.$aRow['zip'].'</td>'; |
|
95 | + echo '<td>'.$aRow['state'].'</td>'; |
|
96 | + echo '<td>'.$aRow['country'].'</td>'; |
|
97 | + echo '<td>'.$aRow['zip2'].'</td>'; |
|
98 | + echo '</tr>'; |
|
99 | + } |
|
100 | 100 | ?> |
101 | 101 | </tbody> |
102 | 102 | </table> |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /* MySQL connection */ |
3 | - include( $_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php" ); /* ;-) */ |
|
3 | + include($_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php"); /* ;-) */ |
|
4 | 4 | |
5 | - $gaSql['link'] = mysql_pconnect( $gaSql['server'], $gaSql['user'], $gaSql['password'] ) or |
|
6 | - die( 'Could not open connection to server' ); |
|
5 | + $gaSql['link'] = mysql_pconnect($gaSql['server'], $gaSql['user'], $gaSql['password']) or |
|
6 | + die('Could not open connection to server'); |
|
7 | 7 | |
8 | - mysql_select_db( $gaSql['db'], $gaSql['link'] ) or |
|
9 | - die( 'Could not select database '. $gaSql['db'] ); |
|
8 | + mysql_select_db($gaSql['db'], $gaSql['link']) or |
|
9 | + die('Could not select database '.$gaSql['db']); |
|
10 | 10 | |
11 | 11 | ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
12 | 12 | <html> |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | FROM testData |
83 | 83 | LIMIT 2000 |
84 | 84 | "; |
85 | - $rResult = mysql_query( $sQuery, $gaSql['link'] ) or die(mysql_error()); |
|
86 | - while ( $aRow = mysql_fetch_array( $rResult ) ) |
|
85 | + $rResult = mysql_query($sQuery, $gaSql['link']) or die(mysql_error()); |
|
86 | + while ($aRow = mysql_fetch_array($rResult)) |
|
87 | 87 | { |
88 | 88 | echo '<tr>'; |
89 | 89 | echo '<td><a href="1">'.$aRow['id'].'</a></td>'; |
@@ -3,23 +3,23 @@ |
||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | - $tampil=mysql_query("SELECT * FROM modul where link !='' ORDER BY urutan"); |
|
6 | + $tampil=mysql_query("SELECT * FROM modul where link !='' ORDER BY urutan"); |
|
7 | 7 | |
8 | 8 | |
9 | - while ($r=mysql_fetch_array($tampil)){ |
|
10 | - $p = strlen($r['link']); |
|
11 | - $mod = substr($r['link'],8,$p); |
|
9 | + while ($r=mysql_fetch_array($tampil)){ |
|
10 | + $p = strlen($r['link']); |
|
11 | + $mod = substr($r['link'],8,$p); |
|
12 | 12 | |
13 | 13 | // echo"$mod<br>"; |
14 | 14 | // echo"$_GET[module]<br>"; |
15 | 15 | // echo"modul/mod_$mod.php<br>"; |
16 | 16 | // |
17 | 17 | |
18 | - if ($_GET['module']==$mod){ |
|
19 | - //include "modul/mod_$mod.php"; |
|
20 | - include "modul/mod_$mod/$mod.php"; |
|
21 | - } |
|
22 | - } |
|
18 | + if ($_GET['module']==$mod){ |
|
19 | + //include "modul/mod_$mod.php"; |
|
20 | + include "modul/mod_$mod/$mod.php"; |
|
21 | + } |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | 25 |
@@ -3,19 +3,19 @@ |
||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | - $tampil=mysql_query("SELECT * FROM modul where link !='' ORDER BY urutan"); |
|
6 | + $tampil = mysql_query("SELECT * FROM modul where link !='' ORDER BY urutan"); |
|
7 | 7 | |
8 | 8 | |
9 | - while ($r=mysql_fetch_array($tampil)){ |
|
9 | + while ($r = mysql_fetch_array($tampil)) { |
|
10 | 10 | $p = strlen($r['link']); |
11 | - $mod = substr($r['link'],8,$p); |
|
11 | + $mod = substr($r['link'], 8, $p); |
|
12 | 12 | |
13 | 13 | // echo"$mod<br>"; |
14 | 14 | // echo"$_GET[module]<br>"; |
15 | 15 | // echo"modul/mod_$mod.php<br>"; |
16 | 16 | // |
17 | 17 | |
18 | - if ($_GET['module']==$mod){ |
|
18 | + if ($_GET['module']==$mod) { |
|
19 | 19 | //include "modul/mod_$mod.php"; |
20 | 20 | include "modul/mod_$mod/$mod.php"; |
21 | 21 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | include "config/koneksi.php"; |
3 | 3 | function anti_injection($data){ |
4 | - $filter = mysql_real_escape_string(stripslashes(strip_tags(htmlspecialchars($data,ENT_QUOTES)))); |
|
5 | - return $filter; |
|
4 | + $filter = mysql_real_escape_string(stripslashes(strip_tags(htmlspecialchars($data,ENT_QUOTES)))); |
|
5 | + return $filter; |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | //$pass=md5($_POST[password]); |
@@ -21,8 +21,8 @@ discard block |
||
21 | 21 | |
22 | 22 | // Apabila userid dan password ditemukan |
23 | 23 | if ($find > 0){ |
24 | - session_start(); |
|
25 | - //session_register("userid"); |
|
24 | + session_start(); |
|
25 | + //session_register("userid"); |
|
26 | 26 | // session_register("username"); |
27 | 27 | // session_register("pass"); |
28 | 28 | // session_register("role"); |
@@ -31,54 +31,54 @@ discard block |
||
31 | 31 | // session_register("uclient"); |
32 | 32 | |
33 | 33 | |
34 | - $_SESSION['userid'] = $r['id_user']; |
|
35 | - $_SESSION['username'] = $r['username']; |
|
36 | - $_SESSION['iusername'] = $r['username']; |
|
37 | - $_SESSION['password'] = $r['password']; |
|
38 | - $_SESSION['groups'] = $r['id_groups']; |
|
39 | - $_SESSION['tipe_sales'] = $r['id_tipe_sales']; |
|
40 | - $_SESSION['outlet'] = $r['id_outlet']; |
|
41 | - $_SESSION['role'] = $r['role']; |
|
42 | - $_SESSION['pict'] = $r['pict']; |
|
43 | - $_SESSION['r_input'] = $r['r_input']; |
|
44 | - $_SESSION['r_edit'] = $r['r_edit']; |
|
45 | - $_SESSION['r_delete'] = $r['r_delete']; |
|
46 | - $_SESSION['r_admin'] = $r['r_admin']; |
|
47 | - |
|
48 | - |
|
49 | - $gsql=mysql_query("SELECT main_page FROM groups WHERE id_groups ='$r[id_groups]'"); |
|
50 | - $g=mysql_fetch_array($gsql); |
|
51 | - |
|
52 | - if ($g['main_page']) { |
|
34 | + $_SESSION['userid'] = $r['id_user']; |
|
35 | + $_SESSION['username'] = $r['username']; |
|
36 | + $_SESSION['iusername'] = $r['username']; |
|
37 | + $_SESSION['password'] = $r['password']; |
|
38 | + $_SESSION['groups'] = $r['id_groups']; |
|
39 | + $_SESSION['tipe_sales'] = $r['id_tipe_sales']; |
|
40 | + $_SESSION['outlet'] = $r['id_outlet']; |
|
41 | + $_SESSION['role'] = $r['role']; |
|
42 | + $_SESSION['pict'] = $r['pict']; |
|
43 | + $_SESSION['r_input'] = $r['r_input']; |
|
44 | + $_SESSION['r_edit'] = $r['r_edit']; |
|
45 | + $_SESSION['r_delete'] = $r['r_delete']; |
|
46 | + $_SESSION['r_admin'] = $r['r_admin']; |
|
47 | + |
|
48 | + |
|
49 | + $gsql=mysql_query("SELECT main_page FROM groups WHERE id_groups ='$r[id_groups]'"); |
|
50 | + $g=mysql_fetch_array($gsql); |
|
51 | + |
|
52 | + if ($g['main_page']) { |
|
53 | 53 | $lmodule = $g['main_page']; |
54 | - } else { |
|
55 | - $lmodule = '?module='.$module; |
|
56 | - } |
|
54 | + } else { |
|
55 | + $lmodule = '?module='.$module; |
|
56 | + } |
|
57 | 57 | |
58 | 58 | |
59 | - $sql=mysql_query("SELECT * FROM modul WHERE link ='$lmodule'"); |
|
59 | + $sql=mysql_query("SELECT * FROM modul WHERE link ='$lmodule'"); |
|
60 | 60 | |
61 | - $r=mysql_fetch_array($sql); |
|
61 | + $r=mysql_fetch_array($sql); |
|
62 | 62 | |
63 | - if ($r['id_modul']) { |
|
63 | + if ($r['id_modul']) { |
|
64 | 64 | $imodule = $r['link']; |
65 | 65 | $id_module = $r['id_modul']; |
66 | 66 | $kode = $r['kode']; |
67 | 67 | |
68 | - } else { |
|
68 | + } else { |
|
69 | 69 | $imodule = '?home'; |
70 | 70 | $id_module = '54'; |
71 | 71 | $kode = ''; |
72 | - } |
|
72 | + } |
|
73 | 73 | |
74 | 74 | |
75 | 75 | |
76 | - header('location:main.php'.$imodule.'&id_module='.$id_module.'&kode='.$kode.''); |
|
76 | + header('location:main.php'.$imodule.'&id_module='.$id_module.'&kode='.$kode.''); |
|
77 | 77 | |
78 | 78 | } else { |
79 | 79 | |
80 | 80 | |
81 | - echo "<script>window.alert('User Id atau password tidak cocok.'); window.location=('index.php?userid=$userid&module=$module')</script>"; |
|
81 | + echo "<script>window.alert('User Id atau password tidak cocok.'); window.location=('index.php?userid=$userid&module=$module')</script>"; |
|
82 | 82 | |
83 | 83 | |
84 | 84 | ?> |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | include "config/koneksi.php"; |
3 | -function anti_injection($data){ |
|
4 | - $filter = mysql_real_escape_string(stripslashes(strip_tags(htmlspecialchars($data,ENT_QUOTES)))); |
|
3 | +function anti_injection($data) { |
|
4 | + $filter = mysql_real_escape_string(stripslashes(strip_tags(htmlspecialchars($data, ENT_QUOTES)))); |
|
5 | 5 | return $filter; |
6 | 6 | } |
7 | 7 | |
@@ -11,16 +11,16 @@ discard block |
||
11 | 11 | $pass = anti_injection($_POST[password]); |
12 | 12 | $module = anti_injection($_POST[module]); |
13 | 13 | |
14 | -$login=mysql_query("SELECT a.*,b.id_tipe_sales |
|
14 | +$login = mysql_query("SELECT a.*,b.id_tipe_sales |
|
15 | 15 | FROM user a LEFT JOIN groups b |
16 | 16 | on a.id_groups = b.id_groups |
17 | 17 | WHERE a.id_user='$userid' AND a.password='$pass' and a.aktif='Y'"); |
18 | 18 | |
19 | -$find=mysql_num_rows($login); |
|
20 | -$r=mysql_fetch_array($login); |
|
19 | +$find = mysql_num_rows($login); |
|
20 | +$r = mysql_fetch_array($login); |
|
21 | 21 | |
22 | 22 | // Apabila userid dan password ditemukan |
23 | -if ($find > 0){ |
|
23 | +if ($find>0) { |
|
24 | 24 | session_start(); |
25 | 25 | //session_register("userid"); |
26 | 26 | // session_register("username"); |
@@ -33,12 +33,12 @@ discard block |
||
33 | 33 | |
34 | 34 | $_SESSION['userid'] = $r['id_user']; |
35 | 35 | $_SESSION['username'] = $r['username']; |
36 | - $_SESSION['iusername'] = $r['username']; |
|
36 | + $_SESSION['iusername'] = $r['username']; |
|
37 | 37 | $_SESSION['password'] = $r['password']; |
38 | 38 | $_SESSION['groups'] = $r['id_groups']; |
39 | 39 | $_SESSION['tipe_sales'] = $r['id_tipe_sales']; |
40 | - $_SESSION['outlet'] = $r['id_outlet']; |
|
41 | - $_SESSION['role'] = $r['role']; |
|
40 | + $_SESSION['outlet'] = $r['id_outlet']; |
|
41 | + $_SESSION['role'] = $r['role']; |
|
42 | 42 | $_SESSION['pict'] = $r['pict']; |
43 | 43 | $_SESSION['r_input'] = $r['r_input']; |
44 | 44 | $_SESSION['r_edit'] = $r['r_edit']; |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | $_SESSION['r_admin'] = $r['r_admin']; |
47 | 47 | |
48 | 48 | |
49 | - $gsql=mysql_query("SELECT main_page FROM groups WHERE id_groups ='$r[id_groups]'"); |
|
50 | - $g=mysql_fetch_array($gsql); |
|
49 | + $gsql = mysql_query("SELECT main_page FROM groups WHERE id_groups ='$r[id_groups]'"); |
|
50 | + $g = mysql_fetch_array($gsql); |
|
51 | 51 | |
52 | 52 | if ($g['main_page']) { |
53 | 53 | $lmodule = $g['main_page']; |
@@ -56,9 +56,9 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | |
59 | - $sql=mysql_query("SELECT * FROM modul WHERE link ='$lmodule'"); |
|
59 | + $sql = mysql_query("SELECT * FROM modul WHERE link ='$lmodule'"); |
|
60 | 60 | |
61 | - $r=mysql_fetch_array($sql); |
|
61 | + $r = mysql_fetch_array($sql); |
|
62 | 62 | |
63 | 63 | if ($r['id_modul']) { |
64 | 64 | $imodule = $r['link']; |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | - session_start(); |
|
3 | + session_start(); |
|
4 | 4 | |
5 | - session_destroy(); |
|
5 | + session_destroy(); |
|
6 | 6 | |
7 | - $userid = $_GET['userid']; |
|
8 | - $module = $_GET['module']; |
|
7 | + $userid = $_GET['userid']; |
|
8 | + $module = $_GET['module']; |
|
9 | 9 | |
10 | - header('location:index.php?userid='.$userid.'&module='.$module.''); |
|
10 | + header('location:index.php?userid='.$userid.'&module='.$module.''); |
|
11 | 11 | |
12 | 12 | |
13 | 13 |