Skip to content
Permalink
Browse files

Try to cleanup horrible indentation code

  • Loading branch information...
pH-7 committed Jul 25, 2018
1 parent 9f79350 commit c6a48ada225f15615af38bf82d9a71c3fc3361fb
@@ -2,21 +2,6 @@
class ContentController extends BaseController
{
/*
|--------------------------------------------------------------------------
| Default Home Controller
|--------------------------------------------------------------------------
|
| You may wish to use controllers instead of, or in addition to, Closure
| based routes. That's great! Here is an example controller method to
| get you started. To route to this controller, just add the route:
|
| Route::get('/', 'HomeController@showWelcome');
|
*/
public $restful = true;
public $layout = 'layouts.adminnew';
@@ -582,7 +567,6 @@ public function addlanguage($id)
}
public function editmem($id)
{
@@ -1014,21 +998,16 @@ public function pageedit($id)
$view = View::make('content.pageedit')->with('pageedit', Pages::find($id));
$this->layout->with('logo', Logo::find(1));
$this->layout->content = $view;
} else {
//return Redirect::route('notaccess');
//return Redirect::route('notaccess');
App::abort(404);
}
}
public function updatecontent()
{
//$id=Input::get($id);
@@ -1052,9 +1031,4 @@ public function updatecontent()
}
}
?>
@@ -2,21 +2,6 @@
class EventController extends BaseController
{
/*
|--------------------------------------------------------------------------
| Default Home Controller
|--------------------------------------------------------------------------
|
| You may wish to use controllers instead of, or in addition to, Closure
| based routes. That's great! Here is an example controller method to
| get you started. To route to this controller, just add the route:
|
| Route::get('/', 'HomeController@showWelcome');
|
*/
public $restful = true;
public $layout = 'layouts.admin';
@@ -235,9 +220,4 @@ public function updatemedia()
}
}
}
?>
@@ -2,20 +2,6 @@
class FrontController extends BaseController
{
/*
|--------------------------------------------------------------------------
| Default Home Controller
|--------------------------------------------------------------------------
|
| You may wish to use controllers instead of, or in addition to, Closure
| based routes. That's great! Here is an example controller method to
| get you started. To route to this controller, just add the route:
|
| Route::get('/', 'HomeController@showWelcome');
|
*/
public $restful = true;
public $layout = 'layouts.theme';
public $layouts = 'layouts.login';
@@ -612,9 +598,4 @@ public function rating()
}
}
}
?>
@@ -3,8 +3,6 @@
class FrontfbController extends BaseController
{
public $restful = true;
//public $layout='layouts.fb';
public $layout = 'layouts.fbhome';
@@ -468,9 +466,4 @@ public function logoutsfb()
return Redirect::route('home');
}
}
?>
@@ -3,8 +3,6 @@
class FrontprofileController extends BaseController
{
public $restful = true;
//public $layout='layouts.fb';
public $layout = 'layouts.fbprofile';
@@ -2410,7 +2408,7 @@ public function notiread($id)
if ($value == 1) {
$entry = array(
'read' => Null);
'read' => null);
$idss = 'null';
@@ -3098,7 +3096,7 @@ public function mediasave()
//imagedestroy($rotate);
} else if ($types == "image/png") {
} elseif ($types == "image/png") {
$uploadedfile = $_FILES['image']['tmp_name'];
$src = imagecreatefrompng($uploadedfile);
@@ -3141,7 +3139,7 @@ public function mediasave()
//imagedestroy($rotate);
} else if ($types == "image/gif") {
} elseif ($types == "image/gif") {
$src = imagecreatefromgif($uploadedfile);
//$rotate = imagerotate($src, $degrees, 0);
@@ -4554,7 +4552,7 @@ public function advsearch()
->where('sex', $gender)
->get();
} else if ($bodytype != 'null' && $height == 'null' && $haircolor == 'null') {
} elseif ($bodytype != 'null' && $height == 'null' && $haircolor == 'null') {
$results = DB::table('users')
@@ -4565,7 +4563,7 @@ public function advsearch()
->get();
} else if ($bodytype == 'null' && $height != 'null' && $haircolor == 'null') {
} elseif ($bodytype == 'null' && $height != 'null' && $haircolor == 'null') {
$results = DB::table('users')
->where('name', 'LIKE', '%' . $term . '%')
@@ -4575,7 +4573,7 @@ public function advsearch()
->get();
} else if ($bodytype == 'null' && $height == 'null' && $haircolor != 'null') {
} elseif ($bodytype == 'null' && $height == 'null' && $haircolor != 'null') {
$results = DB::table('users')
->where('name', 'LIKE', '%' . $term . '%')
@@ -4585,7 +4583,7 @@ public function advsearch()
->get();
} else if ($bodytype != 'null' && $height != 'null' && $haircolor == 'null') {
} elseif ($bodytype != 'null' && $height != 'null' && $haircolor == 'null') {
$results = DB::table('users')
->where('name', 'LIKE', '%' . $term . '%')
@@ -4596,7 +4594,7 @@ public function advsearch()
->get();
} else if ($bodytype == 'null' && $height != 'null' && $haircolor != 'null') {
} elseif ($bodytype == 'null' && $height != 'null' && $haircolor != 'null') {
$results = DB::table('users')
->where('name', 'LIKE', '%' . $term . '%')
@@ -4607,7 +4605,7 @@ public function advsearch()
->get();
} else if ($bodytype != 'null' && $height == 'null' && $haircolor != 'null') {
} elseif ($bodytype != 'null' && $height == 'null' && $haircolor != 'null') {
$results = DB::table('users')
->where('name', 'LIKE', '%' . $term . '%')
@@ -4642,7 +4640,7 @@ public function advsearch()
->where('city', 'LIKE', '%' . $location . '%')
->get();
} else if ($bodytype != 'null' && $height == 'null' && $haircolor == 'null') {
} elseif ($bodytype != 'null' && $height == 'null' && $haircolor == 'null') {
$results = DB::table('users')
@@ -4652,7 +4650,7 @@ public function advsearch()
->get();
} else if ($bodytype == 'null' && $height != 'null' && $haircolor == 'null') {
} elseif ($bodytype == 'null' && $height != 'null' && $haircolor == 'null') {
$results = DB::table('users')
->where('name', 'LIKE', '%' . $term . '%')
@@ -4661,7 +4659,7 @@ public function advsearch()
->get();
} else if ($bodytype == 'null' && $height == 'null' && $haircolor != 'null') {
} elseif ($bodytype == 'null' && $height == 'null' && $haircolor != 'null') {
$results = DB::table('users')
->where('name', 'LIKE', '%' . $term . '%')
@@ -4670,7 +4668,7 @@ public function advsearch()
->get();
} else if ($bodytype != 'null' && $height != 'null' && $haircolor == 'null') {
} elseif ($bodytype != 'null' && $height != 'null' && $haircolor == 'null') {
$results = DB::table('users')
->where('name', 'LIKE', '%' . $term . '%')
@@ -4680,7 +4678,7 @@ public function advsearch()
->get();
} else if ($bodytype == 'null' && $height != 'null' && $haircolor != 'null') {
} elseif ($bodytype == 'null' && $height != 'null' && $haircolor != 'null') {
$results = DB::table('users')
->where('name', 'LIKE', '%' . $term . '%')
@@ -4690,7 +4688,7 @@ public function advsearch()
->get();
} else if ($bodytype != 'null' && $height == 'null' && $haircolor != 'null') {
} elseif ($bodytype != 'null' && $height == 'null' && $haircolor != 'null') {
$results = DB::table('users')
->where('name', 'LIKE', '%' . $term . '%')
@@ -7193,9 +7191,4 @@ public function nextload()
}
}
?>
@@ -2,20 +2,6 @@
class FrontuserController extends BaseController
{
/*
|--------------------------------------------------------------------------
| Default Home Controller
|--------------------------------------------------------------------------
|
| You may wish to use controllers instead of, or in addition to, Closure
| based routes. That's great! Here is an example controller method to
| get you started. To route to this controller, just add the route:
|
| Route::get('/', 'HomeController@showWelcome');
|
*/
public $restful = true;
public $layout = 'layouts.login';
@@ -230,12 +216,5 @@ public function checkout()
$this->layout->content = $view;
}
}
}
?>
@@ -2,23 +2,8 @@
class HomeController extends BaseController
{
/*
|--------------------------------------------------------------------------
| Default Home Controller
|--------------------------------------------------------------------------
|
| You may wish to use controllers instead of, or in addition to, Closure
| based routes. That's great! Here is an example controller method to
| get you started. To route to this controller, just add the route:
|
| Route::get('/', 'HomeController@showWelcome');
|
*/
public function showWelcome()
{
return View::make('index');
}
}
Oops, something went wrong.

0 comments on commit c6a48ad

Please sign in to comment.
You can’t perform that action at this time.