Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- admin.php.orig 2012-07-03 09:38:04.865063239 +0200
- +++ admin.php 2012-07-03 09:40:05.897094419 +0200
- @@ -45,8 +45,6 @@
- SELECT
- path AS oldpath,
- date_available,
- - has_high,
- - tn_ext,
- id
- FROM '.IMAGES_TABLE.'
- WHERE path NOT LIKE \'./upload/%\'
- @@ -55,10 +53,12 @@
- while ($row = pwg_db_fetch_assoc($result))
- {
- $file_for_md5sum = $row['oldpath'];
- + /*
- if ('true' == $row['has_high'])
- {
- $file_for_md5sum = dirname($row['oldpath']).'/pwg_high/'.basename($row['oldpath']);
- }
- + */
- $md5sum = md5_file($file_for_md5sum);
- list($year, $month, $day, $hour, $minute, $second) = preg_split('/[^\d]+/', $row['date_available']);
- @@ -68,7 +68,7 @@
- {
- umask(0000);
- $recursive = true;
- - if (!@mkdir($upload_dir, 0777, $recursive))
- + if (!@mkdir($upload_dir, 0755, $recursive))
- {
- echo 'error during "'.$upload_dir.'" directory creation';
- exit();
- @@ -91,6 +91,7 @@
- rename($row['oldpath'], $newpath);
- # high definition
- + /*
- if ('true' == $row['has_high'])
- {
- $high_dir = $upload_dir.'/pwg_high';
- @@ -111,8 +112,10 @@
- $high_dir.'/'.$newfilename
- );
- }
- + */
- # thumbnail
- + /*
- $tn_dir = $upload_dir.'/thumbnail';
- if (!is_dir($tn_dir))
- @@ -135,6 +138,7 @@
- $tn_dir.'/'.$conf['prefix_thumbnail'].$newfilename
- );
- + */
- // break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement