Commit db7c8069 by Scott

Move AJAX controllers into subdirectory

parent 210357f2
...@@ -60,23 +60,23 @@ ...@@ -60,23 +60,23 @@
// Perform the appropriate Ajax operation // Perform the appropriate Ajax operation
$routing=array( $routing=array(
'notice' => 'qa-ajax-notice.php', 'notice' => 'notice.php',
'favorite' => 'qa-ajax-favorite.php', 'favorite' => 'favorite.php',
'vote' => 'qa-ajax-vote.php', 'vote' => 'vote.php',
'recalc' => 'qa-ajax-recalc.php', 'recalc' => 'recalc.php',
'mailing' => 'qa-ajax-mailing.php', 'mailing' => 'mailing.php',
'version' => 'qa-ajax-version.php', 'version' => 'version.php',
'category' => 'qa-ajax-category.php', 'category' => 'category.php',
'asktitle' => 'qa-ajax-asktitle.php', 'asktitle' => 'asktitle.php',
'answer' => 'qa-ajax-answer.php', 'answer' => 'answer.php',
'comment' => 'qa-ajax-comment.php', 'comment' => 'comment.php',
'click_a' => 'qa-ajax-click-answer.php', 'click_a' => 'click-answer.php',
'click_c' => 'qa-ajax-click-comment.php', 'click_c' => 'click-comment.php',
'click_admin' => 'qa-ajax-click-admin.php', 'click_admin' => 'click-admin.php',
'show_cs' => 'qa-ajax-show-comments.php', 'show_cs' => 'show-comments.php',
'wallpost' => 'qa-ajax-wallpost.php', 'wallpost' => 'wallpost.php',
'click_wall' => 'qa-ajax-click-wall.php', 'click_wall' => 'click-wall.php',
'click_pm' => 'qa-ajax-click-pm.php', 'click_pm' => 'click-pm.php',
); );
$operation=qa_post_text('qa_operation'); $operation=qa_post_text('qa_operation');
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
if (isset($routing[$operation])) { if (isset($routing[$operation])) {
qa_db_connect('qa_ajax_db_fail_handler'); qa_db_connect('qa_ajax_db_fail_handler');
require QA_INCLUDE_DIR.$routing[$operation]; require QA_INCLUDE_DIR.'ajax/'.$routing[$operation];
qa_db_disconnect(); qa_db_disconnect();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment