]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/delete_orphan_files.php
was renamed for security reasons
[quix0rs-gnu-social.git] / scripts / delete_orphan_files.php
index 2c49c10a508d468f5e859df0a437bf789d5b63d7..861e958fb544d7e90ddb89692465d3d76e0ff3b6 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');
@@ -38,7 +39,7 @@ they are not linked to notices (yet anyway).
 
 END_OF_HELP;
 
-require_once INSTALLDIR.'/scripts/commandline.inc';
+require_once INSTALLDIR.'/scripts/commandline.inc.php';
 
 print "Finding File entries that are not related to a Notice (or the notice has been deleted)...";
 $file = new File();