Ejemplo n.º 1
0
 public function postCreate()
 {
     User::onlyHas('user-create');
     $user = new User();
     $user->username = Input::get('username');
     $user->email = Input::get('email');
     $user->password = Hash::make(Input::get('password'));
     $user->save();
     Log::info('Create user: '******'username'));
     return Illuminate\Support\Facades\Redirect::to('user/view/' . $user->id);
 }
Ejemplo n.º 2
0
 public function results()
 {
     $keywords = Input::get('words');
     $this->data['words'] = strip_tags($keywords);
     $this->data['results'] = Post::search($keywords);
     if (count($this->data['results']) === 1) {
         return Illuminate\Support\Facades\Redirect::to(WebAPL\Language::url('topost/' . $this->data['results'][0]->id));
     }
     WebAPL\Template::setPageTitle("Search: {$this->data['words']}", true);
     PageController::loadGeneralResources();
     $this->layout->content = View::make('sections.search.results', $this->data);
 }
Ejemplo n.º 3
0
 public function getRemove()
 {
     File::deleteDirectory($_SERVER['DOCUMENT_ROOT'] . "/install");
     return Illuminate\Support\Facades\Redirect::to('/');
 }
Ejemplo n.º 4
0
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, you can read the copy of GNU General Public License in
 * English here: <http://www.gnu.org/licenses/>.
 * 
 * For more details about CMS WebAPL 1.0 please contact Enterprise Business
 * Solutions SRL, Republic of Moldova, MD 2001, Ion Inculet 33 Street or send an
 * email to office@ebs.md 
 * 
 **/
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/install/uninstalled')) {
    return Route::get('/', function () {
        return Illuminate\Support\Facades\Redirect::to('../');
    });
}
Event::fire('APL.modules.load');
Route::get('page', 'HomeController@showPage');
Route::get('death', 'HomeController@getEmpty');
Route::controller('auth', 'AuthController');
Route::controller('module', 'ModuleController');
Route::post('uploader/start', 'UploaderController@start');
Route::post('uploader/add', 'UploaderController@add');
Route::post('uploader/filelist', 'UploaderController@filelist');
Route::post('uploader/delete', 'UploaderController@delete');
Route::post('uploader/editname', 'UploaderController@editname');
Route::get('filemanager', 'UploaderController@filemanager');
Route::controller('home', 'HomeController');
Route::controller('page', 'PageController');