pedding = 2; // Bar Pedding $prb->brd_color = "#404040 #dfdfdf #dfdfdf #404040"; // Bar Border Color $prb->setFrame(); // set ProgressBar Frame $prb->frame['left'] = 400; // Frame position from left $prb->frame['top'] = 220; // Frame position from top $prb->addLabel('text','txt1','Please wait ...'); // add Text as Label 'txt1' and value 'Please wait' $prb->addLabel('percent','pct1'); // add Percent as Label 'pct1' $prb->addButton('btn1','Restart',$_SERVER['PHP_SELF'].'?restart=1'); // add Button as Label 'btn1' and action '?restart=1' global $HTTP_POST_FILES; if($_GET['actie'] == 'up' AND $_GET['refresh'] != true){ UpdatePossision("".$_GET['move_id']."",'UP',"tbl_producten_cat"); } elseif($_GET['actie'] == 'down' AND $_GET['refresh'] != true){ UpdatePossision("".$_GET['move_id']."",'DOWN',"tbl_producten_cat"); } $cat_id = GetCatId(); $type = $cat_id['type']; $getid = $cat_id['getid']; echo "
"; $_SESSION['delete'] = false; } function DeletePicture($id){ Global $crypt; $sql = 'SELECT `tbl_producten_cat`.id, `tbl_producten_data`.`data`, `tbl_producten_filters_values`.value FROM `tbl_producten_data` INNER JOIN `tbl_producten_cat` ON (`tbl_producten_data`.tbl_cat_id = `tbl_producten_cat`.id) INNER JOIN `tbl_producten_filters_values` ON (`tbl_producten_data`.filters_values_id = `tbl_producten_filters_values`.id) INNER JOIN `tbl_producten_filters_types` ON (`tbl_producten_filters_values`.types_id = `tbl_producten_filters_types`.id) WHERE `tbl_producten_filters_types`.value = \'afbeelding\' AND `tbl_producten_cat`.id = \''.$id.'\' AND `tbl_producten_cat`.users_id = \''.$crypt->decrypt($_SESSION['user_id']).'\''; $result = mysql_query($sql); $total = @mysql_num_rows($result); if($total != ''){ while ($row = mysql_fetch_array($result)) { $path = "".UserFilesPath."/".$_SESSION['username']."/Uploads/".$row['data'].".jpg"; $path2 = "".UserFilesPath."/".$_SESSION['username']."/tmp/".$row['data']."_thumb.jpg"; if (@file_exists($path)) { @unlink($path); } if (@file_exists($path2)) { @unlink($path2); } } } } ?>