|
@@ -0,0 +1,30 @@
|
|
|
|
|
+<?php
|
|
|
|
|
+
|
|
|
|
|
+/*
|
|
|
|
|
+ *
|
|
|
|
|
+ * Application Name: PHP Custom Content Uploader
|
|
|
|
|
+ * Module Name: config.php
|
|
|
|
|
+ *
|
|
|
|
|
+ * Copyright (c) 2020 DBMXPCA Technologies. All rights reserved.
|
|
|
|
|
+ * https://www.dbmxpca.com/
|
|
|
|
|
+ *
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// Description: Allowed MIME types.
|
|
|
|
|
+// Default: array('image/png', 'image/jpeg', 'image/gif', 'video/webm');
|
|
|
|
|
+$allowed_mime_types = array('image/png', 'image/jpeg', 'image/gif', 'video/webm');
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// Description: Full path, including name of the user's JSON.
|
|
|
|
|
+// Default: "/u"
|
|
|
|
|
+// Default Example: "https://ugc.dbmxpca.com/u/13940/3198590318.png"
|
|
|
|
|
+define("USERS_JSON", $_SERVER['DOCUMENT_ROOT'] . "/users.json");
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// Description: Path to the user content directory. Must be writeable by the script. Do not include trailing slash.
|
|
|
|
|
+// Default: "/u"
|
|
|
|
|
+// Default Example: "https://ugc.dbmxpca.com/u/13940/3198590318.png"
|
|
|
|
|
+define("USER_CONTENT_DIR", $_SERVER['DOCUMENT_ROOT'] . "/u");
|
|
|
|
|
+
|
|
|
|
|
+
|