Added almost all features except language, ads, seo, pages
This commit is contained in:
@@ -26,6 +26,32 @@ class AppController extends Controller
|
||||
public function app() {
|
||||
return redirect()->route('home');
|
||||
}
|
||||
public function switch($email) {
|
||||
ZEmail::setEmail($email);
|
||||
if (json_decode(config('app.settings.configuration_settings'))->disable_mailbox_slug) {
|
||||
return redirect()->route('home');
|
||||
}
|
||||
return redirect()->route('mailbox');
|
||||
}
|
||||
|
||||
public function delete($email = null) {
|
||||
if ($email) {
|
||||
$emails = ZEmail::getEmails();
|
||||
ZEmail::removeEmail($email);
|
||||
return redirect()->route('mailbox');
|
||||
} else {
|
||||
return redirect()->route('home');
|
||||
}
|
||||
}
|
||||
|
||||
public function locale($locale) {
|
||||
if (in_array($locale, config('app.locales'))) {
|
||||
session(['locale' => $locale]);
|
||||
return redirect()->back();
|
||||
}
|
||||
abort(400);
|
||||
}
|
||||
|
||||
|
||||
private function getStringBetween($string, $start, $end) {
|
||||
$string = ' ' . $string;
|
||||
|
||||
Reference in New Issue
Block a user