| @@ -1,7 +1,7 @@ discard block | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | - header ( 'Content-type: text/plain'); | |
| 4 | - echo " | |
| 3 | + header ( 'Content-type: text/plain'); | |
| 4 | + echo " | |
| 5 | 5 | Now see here, you will see the output of the param most | 
| 6 | 6 | interesting to PHP. \$_POST. | 
| 7 | 7 | |
| @@ -13,4 +13,4 @@ discard block | ||
| 13 | 13 | |
| 14 | 14 | print_r(\$_POST); | 
| 15 | 15 | "; | 
| 16 | - print_r($_POST); | |
| 17 | 16 | \ No newline at end of file | 
| 17 | + print_r($_POST); | |
| 18 | 18 | \ No newline at end of file | 
| @@ -155,9 +155,9 @@ | ||
| 155 | 155 | <table align="center" border="0" cellpadding="0" cellspacing="0"> | 
| 156 | 156 | <tr><td> | 
| 157 | 157 | <? | 
| 158 | -   if(isset($_REQUEST['issubmit'])){
 | |
| 159 | - echo "<strong>form is sumbitted</strong>"; | |
| 160 | - } | |
| 158 | +    if(isset($_REQUEST['issubmit'])){
 | |
| 159 | + echo "<strong>form is sumbitted</strong>"; | |
| 160 | + } | |
| 161 | 161 | |
| 162 | 162 | ?> | 
| 163 | 163 | |
| @@ -1,26 +1,26 @@ discard block | ||
| 1 | 1 | <? | 
| 2 | - $action = $_REQUEST["action"]; | |
| 3 | -  switch($action){
 | |
| 4 | - case "1": | |
| 2 | + $action = $_REQUEST["action"]; | |
| 3 | +    switch($action){
 | |
| 4 | + case "1": | |
| 5 | 5 | getContent(); | 
| 6 | 6 | break; | 
| 7 | - default: | |
| 7 | + default: | |
| 8 | 8 | break; | 
| 9 | - } | |
| 9 | + } | |
| 10 | 10 | |
| 11 | - function getContent(){
 | |
| 12 | - //sleep(1); | |
| 13 | - $step_number = $_REQUEST["step_number"]; | |
| 14 | - $html = '<h2 class="StepTitle">Step '.$step_number.' Content</h2>'; | |
| 15 | -   if($step_number == 1){
 | |
| 16 | - $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, | |
| 11 | +    function getContent(){
 | |
| 12 | + //sleep(1); | |
| 13 | + $step_number = $_REQUEST["step_number"]; | |
| 14 | + $html = '<h2 class="StepTitle">Step '.$step_number.' Content</h2>'; | |
| 15 | +    if($step_number == 1){
 | |
| 16 | + $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, | |
| 17 | 17 | sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | 
| 18 | 18 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | 
| 19 | 19 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | 
| 20 | 20 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | 
| 21 | 21 | </p>'; | 
| 22 | -   }elseif($step_number == 2){
 | |
| 23 | - $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, | |
| 22 | +    }elseif($step_number == 2){
 | |
| 23 | + $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, | |
| 24 | 24 | sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | 
| 25 | 25 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | 
| 26 | 26 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | 
| @@ -32,8 +32,8 @@ discard block | ||
| 32 | 32 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | 
| 33 | 33 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | 
| 34 | 34 | </p>'; | 
| 35 | -   }elseif($step_number == 3){
 | |
| 36 | - $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, | |
| 35 | +    }elseif($step_number == 3){
 | |
| 36 | + $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, | |
| 37 | 37 | sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | 
| 38 | 38 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | 
| 39 | 39 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | 
| @@ -51,15 +51,15 @@ discard block | ||
| 51 | 51 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | 
| 52 | 52 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | 
| 53 | 53 | </p>'; | 
| 54 | -   }else{
 | |
| 55 | - $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, | |
| 54 | +    }else{
 | |
| 55 | + $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, | |
| 56 | 56 | sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | 
| 57 | 57 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | 
| 58 | 58 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | 
| 59 | 59 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | 
| 60 | 60 | </p>'; | 
| 61 | - } | |
| 62 | - echo $html; | |
| 63 | - } | |
| 61 | + } | |
| 62 | + echo $html; | |
| 63 | + } | |
| 64 | 64 | |
| 65 | 65 | ?> | 
| 66 | 66 | \ No newline at end of file | 
| @@ -22,49 +22,49 @@ | ||
| 22 | 22 | /** | 
| 23 | 23 | * | 
| 24 | 24 | * | 
| 25 | - * @var ArticleMapper | |
| 25 | + * @var ArticleMapper | |
| 26 | 26 | */ | 
| 27 | 27 | private $articleMapper; | 
| 28 | 28 | |
| 29 | 29 | /** | 
| 30 | 30 | * | 
| 31 | 31 | * | 
| 32 | - * @var ArticleVideosMapper | |
| 32 | + * @var ArticleVideosMapper | |
| 33 | 33 | */ | 
| 34 | 34 | private $articleVideosMapper; | 
| 35 | 35 | |
| 36 | 36 | /** | 
| 37 | 37 | * | 
| 38 | 38 | * | 
| 39 | - * @var ArticleFilter | |
| 39 | + * @var ArticleFilter | |
| 40 | 40 | */ | 
| 41 | 41 | private $articleFilter; | 
| 42 | 42 | |
| 43 | 43 | /** | 
| 44 | 44 | * | 
| 45 | 45 | * | 
| 46 | - * @var VideoFilter | |
| 46 | + * @var VideoFilter | |
| 47 | 47 | */ | 
| 48 | 48 | private $videosFilter; | 
| 49 | 49 | |
| 50 | 50 | /** | 
| 51 | 51 | * | 
| 52 | 52 | * | 
| 53 | - * @var CategoryMapper | |
| 53 | + * @var CategoryMapper | |
| 54 | 54 | */ | 
| 55 | 55 | private $categoryMapper; | 
| 56 | 56 | |
| 57 | 57 | /** | 
| 58 | 58 | * | 
| 59 | 59 | * | 
| 60 | - * @var Upload | |
| 60 | + * @var Upload | |
| 61 | 61 | */ | 
| 62 | 62 | private $upload; | 
| 63 | 63 | |
| 64 | 64 | /** | 
| 65 | 65 | * | 
| 66 | 66 | * | 
| 67 | - * @var AdminUsersMapper | |
| 67 | + * @var AdminUsersMapper | |
| 68 | 68 | */ | 
| 69 | 69 | private $adminUsersMapper; | 
| 70 | 70 | |
| @@ -23,49 +23,49 @@ | ||
| 23 | 23 | /** | 
| 24 | 24 | * | 
| 25 | 25 | * | 
| 26 | - * @var ArticleMapper | |
| 26 | + * @var ArticleMapper | |
| 27 | 27 | */ | 
| 28 | 28 | private $articleMapper; | 
| 29 | 29 | |
| 30 | 30 | /** | 
| 31 | 31 | * | 
| 32 | 32 | * | 
| 33 | - * @var ArticlePostsMapper | |
| 33 | + * @var ArticlePostsMapper | |
| 34 | 34 | */ | 
| 35 | 35 | private $articlePostsMapper; | 
| 36 | 36 | |
| 37 | 37 | /** | 
| 38 | 38 | * | 
| 39 | 39 | * | 
| 40 | - * @var ArticleFilter | |
| 40 | + * @var ArticleFilter | |
| 41 | 41 | */ | 
| 42 | 42 | private $articleFilter; | 
| 43 | 43 | |
| 44 | 44 | /** | 
| 45 | 45 | * | 
| 46 | 46 | * | 
| 47 | - * @var PostFilter | |
| 47 | + * @var PostFilter | |
| 48 | 48 | */ | 
| 49 | 49 | private $postFilter; | 
| 50 | 50 | |
| 51 | 51 | /** | 
| 52 | 52 | * | 
| 53 | 53 | * | 
| 54 | - * @var CategoryMapper | |
| 54 | + * @var CategoryMapper | |
| 55 | 55 | */ | 
| 56 | 56 | private $categoryMapper; | 
| 57 | 57 | |
| 58 | 58 | /** | 
| 59 | 59 | * | 
| 60 | 60 | * | 
| 61 | - * @var Upload | |
| 61 | + * @var Upload | |
| 62 | 62 | */ | 
| 63 | 63 | private $upload; | 
| 64 | 64 | |
| 65 | 65 | /** | 
| 66 | 66 | * | 
| 67 | 67 | * | 
| 68 | - * @var AdminUsersMapper | |
| 68 | + * @var AdminUsersMapper | |
| 69 | 69 | */ | 
| 70 | 70 | private $adminUsersMapper; | 
| 71 | 71 | |
| @@ -149,7 +149,7 @@ discard block | ||
| 149 | 149 | /** | 
| 150 | 150 | * | 
| 151 | 151 | * | 
| 152 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 152 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 153 | 153 | */ | 
| 154 | 154 | $returnedResponse = $eventController($request, $response); | 
| 155 | 155 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -194,7 +194,7 @@ discard block | ||
| 194 | 194 | /** | 
| 195 | 195 | * | 
| 196 | 196 | * | 
| 197 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 197 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 198 | 198 | */ | 
| 199 | 199 | $returnedResponse = $eventController($request, $response); | 
| 200 | 200 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -242,7 +242,7 @@ discard block | ||
| 242 | 242 | /** | 
| 243 | 243 | * | 
| 244 | 244 | * | 
| 245 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 245 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 246 | 246 | */ | 
| 247 | 247 | $returnedResponse = $eventController($request, $response); | 
| 248 | 248 | static::assertSame(200, $returnedResponse->getStatusCode()); | 
| @@ -330,7 +330,7 @@ discard block | ||
| 330 | 330 | /** | 
| 331 | 331 | * | 
| 332 | 332 | * | 
| 333 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 333 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 334 | 334 | */ | 
| 335 | 335 | $returnedResponse = $eventController($request, $response); | 
| 336 | 336 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -149,7 +149,7 @@ discard block | ||
| 149 | 149 | /** | 
| 150 | 150 | * | 
| 151 | 151 | * | 
| 152 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 152 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 153 | 153 | */ | 
| 154 | 154 | $returnedResponse = $postController($request, $response); | 
| 155 | 155 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -194,7 +194,7 @@ discard block | ||
| 194 | 194 | /** | 
| 195 | 195 | * | 
| 196 | 196 | * | 
| 197 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 197 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 198 | 198 | */ | 
| 199 | 199 | $returnedResponse = $postController($request, $response); | 
| 200 | 200 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -242,7 +242,7 @@ discard block | ||
| 242 | 242 | /** | 
| 243 | 243 | * | 
| 244 | 244 | * | 
| 245 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 245 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 246 | 246 | */ | 
| 247 | 247 | $returnedResponse = $postController($request, $response); | 
| 248 | 248 | static::assertSame(200, $returnedResponse->getStatusCode()); | 
| @@ -330,7 +330,7 @@ discard block | ||
| 330 | 330 | /** | 
| 331 | 331 | * | 
| 332 | 332 | * | 
| 333 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 333 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 334 | 334 | */ | 
| 335 | 335 | $returnedResponse = $postController($request, $response); | 
| 336 | 336 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -149,7 +149,7 @@ discard block | ||
| 149 | 149 | /** | 
| 150 | 150 | * | 
| 151 | 151 | * | 
| 152 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 152 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 153 | 153 | */ | 
| 154 | 154 | $returnedResponse = $videoController($request, $response); | 
| 155 | 155 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -194,7 +194,7 @@ discard block | ||
| 194 | 194 | /** | 
| 195 | 195 | * | 
| 196 | 196 | * | 
| 197 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 197 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 198 | 198 | */ | 
| 199 | 199 | $returnedResponse = $videoController($request, $response); | 
| 200 | 200 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -242,7 +242,7 @@ discard block | ||
| 242 | 242 | /** | 
| 243 | 243 | * | 
| 244 | 244 | * | 
| 245 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 245 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 246 | 246 | */ | 
| 247 | 247 | $returnedResponse = $videoController($request, $response); | 
| 248 | 248 | static::assertSame(200, $returnedResponse->getStatusCode()); | 
| @@ -330,7 +330,7 @@ discard block | ||
| 330 | 330 | /** | 
| 331 | 331 | * | 
| 332 | 332 | * | 
| 333 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 333 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 334 | 334 | */ | 
| 335 | 335 | $returnedResponse = $videoController($request, $response); | 
| 336 | 336 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -147,7 +147,7 @@ discard block | ||
| 147 | 147 | /** | 
| 148 | 148 | * | 
| 149 | 149 | * | 
| 150 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 150 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 151 | 151 | */ | 
| 152 | 152 | $returnedResponse = $userController($request, $response); | 
| 153 | 153 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -186,7 +186,7 @@ discard block | ||
| 186 | 186 | /** | 
| 187 | 187 | * | 
| 188 | 188 | * | 
| 189 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 189 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 190 | 190 | */ | 
| 191 | 191 | $returnedResponse = $userController($request, $response); | 
| 192 | 192 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -228,7 +228,7 @@ discard block | ||
| 228 | 228 | /** | 
| 229 | 229 | * | 
| 230 | 230 | * | 
| 231 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 231 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 232 | 232 | */ | 
| 233 | 233 | $returnedResponse = $userController($request, $response); | 
| 234 | 234 | static::assertSame(200, $returnedResponse->getStatusCode()); | 
| @@ -303,7 +303,7 @@ discard block | ||
| 303 | 303 | /** | 
| 304 | 304 | * | 
| 305 | 305 | * | 
| 306 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 306 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 307 | 307 | */ | 
| 308 | 308 | $returnedResponse = $userController($request, $response); | 
| 309 | 309 | static::assertSame(302, $returnedResponse->getStatusCode()); | 
| @@ -345,7 +345,7 @@ discard block | ||
| 345 | 345 | /** | 
| 346 | 346 | * | 
| 347 | 347 | * | 
| 348 | - * @var \Zend\Diactoros\Response $returnedResponse | |
| 348 | + * @var \Zend\Diactoros\Response $returnedResponse | |
| 349 | 349 | */ | 
| 350 | 350 | $returnedResponse = $userController($request, $response); | 
| 351 | 351 | static::assertSame(302, $returnedResponse->getStatusCode()); |