Passed
Push — master ( c66316...25c5f3 )
by Saepul
04:30
created
js/datatables/unit_testing/controller.php 3 patches
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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"
8 8
 	"http://www.w3.org/TR/html4/strict.dtd">
9 9
 <html>
@@ -44,47 +44,47 @@  discard block
 block discarded – undo
44 44
 		<script type="text/javascript" charset="utf-8">
45 45
 			var gaoTest = [
46 46
 			<?php
47
-				function fnReadDir( &$aReturn, $path )
48
-				{
49
-					$rDir = opendir( $path );
50
-        	while ( ($file = readdir($rDir)) !== false )
51
-					{
52
-						if ( $file == "." || $file == ".." || $file == ".DS_Store" )
53
-						{
54
-							continue;
55
-						}
56
-						else if ( is_dir( $path.'/'.$file ) )
57
-						{
58
-							fnReadDir( $aReturn, $path.'/'.$file );
59
-						}
60
-						else
61
-						{
62
-							array_push( $aReturn, $path.'/'.$file );
63
-						}
64
-					}
65
-					closedir($rDir);
66
-				}
47
+                function fnReadDir( &$aReturn, $path )
48
+                {
49
+                    $rDir = opendir( $path );
50
+            while ( ($file = readdir($rDir)) !== false )
51
+                    {
52
+                        if ( $file == "." || $file == ".." || $file == ".DS_Store" )
53
+                        {
54
+                            continue;
55
+                        }
56
+                        else if ( is_dir( $path.'/'.$file ) )
57
+                        {
58
+                            fnReadDir( $aReturn, $path.'/'.$file );
59
+                        }
60
+                        else
61
+                        {
62
+                            array_push( $aReturn, $path.'/'.$file );
63
+                        }
64
+                    }
65
+                    closedir($rDir);
66
+                }
67 67
 				
68
-				/* Get the tests dynamically from the 'tests' directory, and their templates */
69
-				$aFiles = array();
70
-				fnReadDir( $aFiles, "tests" );
68
+                /* Get the tests dynamically from the 'tests' directory, and their templates */
69
+                $aFiles = array();
70
+                fnReadDir( $aFiles, "tests" );
71 71
 				
72
-				for ( $i=0 ; $i<count($aFiles) ; $i++ )
73
-				{
74
-					$sTemplate;
75
-					$fp = fopen( $aFiles[$i], "r" );
76
-					fscanf( $fp, "// DATA_TEMPLATE: %s", $sTemplate );
77
-					fclose( $fp );
72
+                for ( $i=0 ; $i<count($aFiles) ; $i++ )
73
+                {
74
+                    $sTemplate;
75
+                    $fp = fopen( $aFiles[$i], "r" );
76
+                    fscanf( $fp, "// DATA_TEMPLATE: %s", $sTemplate );
77
+                    fclose( $fp );
78 78
 					
79
-					$aPath = explode('/', $aFiles[$i]);
79
+                    $aPath = explode('/', $aFiles[$i]);
80 80
 					
81
-					echo '{ '.
82
-						'"sTemplate": "'.$sTemplate.'", '.
83
-						'"sTest": "'.$aFiles[$i].'", '.
84
-						'"sGroup": "'.$aPath[1].'"},'."\n";
85
-				}
81
+                    echo '{ '.
82
+                        '"sTemplate": "'.$sTemplate.'", '.
83
+                        '"sTest": "'.$aFiles[$i].'", '.
84
+                        '"sGroup": "'.$aPath[1].'"},'."\n";
85
+                }
86 86
 				
87
-			?>
87
+            ?>
88 88
 			null ];
89 89
 			gaoTest.pop(); /* No interest in the null */
90 90
 		</script>
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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"
8 8
 	"http://www.w3.org/TR/html4/strict.dtd">
9 9
 <html>
@@ -44,22 +44,22 @@  discard block
 block discarded – undo
44 44
 		<script type="text/javascript" charset="utf-8">
45 45
 			var gaoTest = [
46 46
 			<?php
47
-				function fnReadDir( &$aReturn, $path )
47
+				function fnReadDir(&$aReturn, $path)
48 48
 				{
49
-					$rDir = opendir( $path );
50
-        	while ( ($file = readdir($rDir)) !== false )
49
+					$rDir = opendir($path);
50
+        	while (($file = readdir($rDir))!==false)
51 51
 					{
52
-						if ( $file == "." || $file == ".." || $file == ".DS_Store" )
52
+						if ($file=="." || $file==".." || $file==".DS_Store")
53 53
 						{
54 54
 							continue;
55 55
 						}
56
-						else if ( is_dir( $path.'/'.$file ) )
56
+						else if (is_dir($path.'/'.$file))
57 57
 						{
58
-							fnReadDir( $aReturn, $path.'/'.$file );
58
+							fnReadDir($aReturn, $path.'/'.$file);
59 59
 						}
60 60
 						else
61 61
 						{
62
-							array_push( $aReturn, $path.'/'.$file );
62
+							array_push($aReturn, $path.'/'.$file);
63 63
 						}
64 64
 					}
65 65
 					closedir($rDir);
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
 				
68 68
 				/* Get the tests dynamically from the 'tests' directory, and their templates */
69 69
 				$aFiles = array();
70
-				fnReadDir( $aFiles, "tests" );
70
+				fnReadDir($aFiles, "tests");
71 71
 				
72
-				for ( $i=0 ; $i<count($aFiles) ; $i++ )
72
+				for ($i = 0; $i<count($aFiles); $i++)
73 73
 				{
74 74
 					$sTemplate;
75
-					$fp = fopen( $aFiles[$i], "r" );
76
-					fscanf( $fp, "// DATA_TEMPLATE: %s", $sTemplate );
77
-					fclose( $fp );
75
+					$fp = fopen($aFiles[$i], "r");
76
+					fscanf($fp, "// DATA_TEMPLATE: %s", $sTemplate);
77
+					fclose($fp);
78 78
 					
79 79
 					$aPath = explode('/', $aFiles[$i]);
80 80
 					
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,12 +52,10 @@
 block discarded – undo
52 52
 						if ( $file == "." || $file == ".." || $file == ".DS_Store" )
53 53
 						{
54 54
 							continue;
55
-						}
56
-						else if ( is_dir( $path.'/'.$file ) )
55
+						} else if ( is_dir( $path.'/'.$file ) )
57 56
 						{
58 57
 							fnReadDir( $aReturn, $path.'/'.$file );
59
-						}
60
-						else
58
+						} else
61 59
 						{
62 60
 							array_push( $aReturn, $path.'/'.$file );
63 61
 						}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/-complex_header.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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">
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/js_data.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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">
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/dymanic_table.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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>
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
 			} );
25 25
 		</script>
26 26
 		<?php
27
-			$aScripts = explode( ":", $_GET['scripts'] );
28
-			for ( $i=0 ; $i<count($aScripts) ; $i++ )
29
-			{
30
-				echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
31
-			}
32
-		?>
27
+            $aScripts = explode( ":", $_GET['scripts'] );
28
+            for ( $i=0 ; $i<count($aScripts) ; $i++ )
29
+            {
30
+                echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
31
+            }
32
+        ?>
33 33
 	</head>
34 34
 	<body id="dt_example">
35 35
 		<div id="container">
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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>
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 			} );
25 25
 		</script>
26 26
 		<?php
27
-			$aScripts = explode( ":", $_GET['scripts'] );
28
-			for ( $i=0 ; $i<count($aScripts) ; $i++ )
27
+			$aScripts = explode(":", $_GET['scripts']);
28
+			for ($i = 0; $i<count($aScripts); $i++)
29 29
 			{
30 30
 				echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
31 31
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/6776.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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">
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
js/datatables/unit_testing/performance/large.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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>';
Please login to merge, or discard this patch.
content.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,23 +3,23 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,19 +3,19 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
cek_login.php 2 patches
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 ?>
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'];  
Please login to merge, or discard this patch.
logout.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.