mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-16 21:18:00 +00:00
fixed paths
This commit is contained in:
@@ -31,7 +31,7 @@ else $sim = false;
|
|||||||
//gather local data
|
//gather local data
|
||||||
echo "[i] Looping through local files\n";
|
echo "[i] Looping through local files\n";
|
||||||
|
|
||||||
$dir = ROOT.DS.'upload'.DS;
|
$dir = ROOT.DS.'data'.DS;
|
||||||
$dh = opendir($dir);
|
$dh = opendir($dir);
|
||||||
$localfiles = array();
|
$localfiles = array();
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ $uploadsize = 0;
|
|||||||
|
|
||||||
|
|
||||||
//gather local data
|
//gather local data
|
||||||
$dir = ROOT.DS.'upload'.DS;
|
$dir = ROOT.DS.'data'.DS;
|
||||||
$dh = opendir($dir);
|
$dh = opendir($dir);
|
||||||
$localfiles = array();
|
$localfiles = array();
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ if(in_array('sim',$argv))
|
|||||||
}
|
}
|
||||||
else $sim = false;
|
else $sim = false;
|
||||||
|
|
||||||
$dir = ROOT.DS.'upload'.DS;
|
$dir = ROOT.DS.'data'.DS;
|
||||||
$dh = opendir($dir);
|
$dh = opendir($dir);
|
||||||
$localfiles = array();
|
$localfiles = array();
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ $sumsize = 0;
|
|||||||
echo "[i] Looking for files to clean up\n";
|
echo "[i] Looking for files to clean up\n";
|
||||||
foreach($localfiles as $hash)
|
foreach($localfiles as $hash)
|
||||||
{
|
{
|
||||||
$dir = ROOT.DS.'upload'.DS.$hash.DS;
|
$dir = ROOT.DS.'data'.DS.$hash.DS;
|
||||||
$dh = opendir($dir);
|
$dh = opendir($dir);
|
||||||
|
|
||||||
while (false !== ($filename = readdir($dh))) {
|
while (false !== ($filename = readdir($dh))) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ define('ROOT', dirname(__FILE__).DS.'..');
|
|||||||
|
|
||||||
echo "[i] Starting recreation of hashes.csv\n";
|
echo "[i] Starting recreation of hashes.csv\n";
|
||||||
|
|
||||||
$dir = ROOT.DS.'upload'.DS;
|
$dir = ROOT.DS.'data'.DS;
|
||||||
$dh = opendir($dir);
|
$dh = opendir($dir);
|
||||||
|
|
||||||
$fp = fopen($dir.'hashes.csv','w');
|
$fp = fopen($dir.'hashes.csv','w');
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ include_once(ROOT.DS.'inc/core.php');
|
|||||||
|
|
||||||
$pm = new PictshareModel();
|
$pm = new PictshareModel();
|
||||||
|
|
||||||
$dir = ROOT.DS.'upload'.DS;
|
$dir = ROOT.DS.'data'.DS;
|
||||||
$dh = opendir($dir);
|
$dh = opendir($dir);
|
||||||
$localfiles = array();
|
$localfiles = array();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user