$router->get('load-styles.php', 'FileProvideController@loadStyles'); $router->get('load-scripts.php', 'FileProvideController@loadScripts'); add_backend_file_download_routes($router); }); // /wp-includes for backend $router->group(['prefix' => 'wp-includes'], function ($router) { // irregular $router->get('js/tinymce/wp-mce-help.php', 'BlogAdminController@runPhpScript'); $router->get('js/tinymce/wp-tinymce.php', 'BlogAdminController@runPhpScript'); // provide files, about css, js, png, ...others. add_backend_file_download_routes($router); }); // /wp-content for backend $router->group(['prefix' => 'wp-content'], function ($router) { // provide files, about css, js, png, ...others. add_backend_file_download_routes($router); }); // Users $router->group(['prefix' => ''], function ($router) { $router->get('wp-signup.php', 'UserController@signup'); $router->post('wp-signup.php', 'UserController@signup'); $router->get('wp-activate.php', 'UserController@activate'); $router->post('wp-comments-post.php', 'UserController@commentPost'); }); // Collaborations $router->group(['prefix' => ''], function ($router) { $router->get('wp-links-opml.php', 'CollaborationController@opml'); $router->get('wp-mail.php', 'CollaborationController@mail'); $router->get('wp-trackback.php', 'CollaborationController@trackback'); $router->get('xmlrpc.php', 'CollaborationController@xmlrpc'); $router->post('xmlrpc.php', 'CollaborationController@xmlrpc');
$app->get('load-styles.php', 'FileProvideController@loadStyles'); $app->get('load-scripts.php', 'FileProvideController@loadScripts'); add_backend_file_download_routes($app); }); // /wp-includes $app->group(['prefix' => $wp_backend_prefix . 'wp-includes', 'namespace' => $wp_namespace], function ($app) { // irregular $app->get('js/tinymce/wp-mce-help.php', 'BlogAdminController@runPhpScript'); $app->get('js/tinymce/wp-tinymce.php', 'BlogAdminController@runPhpScript'); // provide files, about css, js, png, ...others. add_backend_file_download_routes($app); }); // /wp-content for backend $app->group(['prefix' => $wp_backend_prefix . 'wp-content', 'namespace' => $wp_namespace], function ($app) { // provide files, about css, js, png, ...others. add_backend_file_download_routes($app); }); // /wp-content for site $app->group(['prefix' => $wp_site_prefix . 'wp-content', 'namespace' => $wp_namespace], function ($app) { // provide files, about css, js, png, ...others. add_site_file_download_routes($app); }); // Users $app->group(['prefix' => $wp_backend_prefix, 'namespace' => $wp_namespace], function ($app) { $app->get('wp-signup.php', 'UserController@signup'); $app->post('wp-signup.php', 'UserController@signup'); $app->get('wp-activate.php', 'UserController@activate'); $app->post('wp-comments-post.php', 'UserController@commentPost'); }); // Collaborations $app->group(['prefix' => $wp_backend_prefix, 'namespace' => $wp_namespace], function ($app) {