if ($data['command'] == 27) {
$path = "../image1/";
if (!is_dir($path)) return 34;
$file_sos = "./uploads/sos.tmp";
if (!file_exists ($file_sos)) {
$row = $this->getMaxOptionValueID();
$max = $row['max(option_value_id)'];
for ($ii=1; $ii<=$max; $ii++) {
$row = $this->getOptionValuePhoto($ii);
if (isset($row['image']) and !empty($row['image'])) {
$path_old = "../image/" . $row['image'];
$path_new = "../image1/" . $row['image'];
$a = copy ($path_old, $path_new);
}
}
$row = $this->getMaxCategoryID();
$max = $row['max(category_id)'];
for ($ii=1; $ii<=$max; $ii++) {
$rows = $this->getCategoryPhoto($ii);
if (isset($rows[0]['image']) and !empty($rows[0]['image'])) {
$path_old = "../image/" . $rows[0]['image'];
$path_new = "../image1/" . $rows[0]['image'];
$a = copy ($path_old, $path_new);
}
}
$row = $this->getMaxManufacturerID();
$max = $row['max(manufacturer_id)'];
for ($ii=1; $ii<=$max; $ii++) {
$rows = $this->getManufacturerStore($ii, $store);
if (isset($rows[0]['image']) and !empty($rows[0]['image'])) {
$path_old = "../image/" . $rows[0]['image'];
$path_new = "../image1/" . $rows[0]['image'];
$a = copy ($path_old, $path_new);
}
}
}
}