Permalink
Browse files

New folder structure #24

  • Loading branch information...
arvidj committed Oct 31, 2015
1 parent 3398b48 commit 7cc9c33f6812025e93b39206f39a018c2a258ebf
@@ -5,7 +5,3 @@ RewriteRule ^api/v1/upvote/Q([A-Za-z0-9-]+)$ vote.php?type=upvote&id=Q$1
RewriteRule ^api/v1/downvote/Q([A-Za-z0-9-]+)$ vote.php?type=downvote&id=Q$1
RewriteRule ^api/v1/report/Q([A-Za-z0-9-]+)$ vote.php?type=report&id=Q$1
RewriteRule ^random rand.php
-RedirectMatch 404 \/.git
-RedirectMatch 404 \/server.js
-RedirectMatch 404 \/var
-RedirectMatch 404 \/db
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
File renamed without changes.
@@ -1,5 +1,5 @@
<?php
-include "var/pswd.php";
+include "../pswd.php";
//ini_set('display_errors', 1);
if( !isset($_GET['hash']) ) {
$hash = "QmYqA8GiZ4MCeyJkERReLwGRnjSdQBx5SzjvMgiNwQZfx6";
@@ -16,7 +16,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-include "var/pswd.php";
+include "../pswd.php";
$host = $_SERVER['HTTP_HOST'];
$hash = "Qma25ZSNbp9AdjrPczjzKYm7zUAdcu9jQZJXbsPiifW79M";
@@ -18,13 +18,13 @@
*/
error_reporting(0);
-include "var/pswd.php";
+include "../pswd.php";
$errorHash = "QmW3FgNGeD46kHEryFUw1ftEUqRw254WkKxYeKaouz7DJA";
$host = $_SERVER['HTTP_HOST'];
$tmp_name = $_FILES['img']['tmp_name'];
-$uploads_dir = 'upload';
+$uploads_dir = '../upload';
$name = date("hms");
$originalFile = getcwd().DIRECTORY_SEPARATOR . $uploads_dir . "/" . $name;
move_uploaded_file($tmp_name, $originalFile);
@@ -16,7 +16,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-include "var/pswd.php";
+include "../pswd.php";
if ( !isset($_GET['id']) or !isset($_GET['type']) ) {
exit("wrong params");
} else {
File renamed without changes.

0 comments on commit 7cc9c33

Please sign in to comment.