]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/remove_duplicate_file_urls.php
.inc files are mostly readable from the internet, e.g. http://example.org/some/file...
[quix0rs-gnu-social.git] / scripts / remove_duplicate_file_urls.php
index a4a7cd795b9afa9b487eeaa77c022666ee9d6341..ff11df217436d7c54b156679041d20e45a597cb9 100755 (executable)
@@ -18,7 +18,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
+define('INSTALLDIR', dirname(__DIR__));
+define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
 
 $shortoptions = 'y';
 $longoptions = array('yes');
@@ -31,7 +32,7 @@ Remove duplicate URL entries in the file and file_redirection tables because the
 
 END_OF_HELP;
 
-require_once INSTALLDIR.'/scripts/commandline.inc';
+require_once INSTALLDIR.'/scripts/commandline.inc.php';
 
 if (!have_option('y', 'yes')) {
     print "About to remove duplicate URL entries in file and file_redirection tables. Are you sure? [y/N] ";