$my_upload->upload_dir = "../../../videos/"; // "files" is the folder for the uploaded files (you have to create this folder) $my_upload->extensions = array(".jpeg", ".gif", ".bmp",".jpg",".png");// specify the allowed extensions here // $my_upload->extensions = "de"; // use this to switch the messages into an other language (translate first!!!) $my_upload->max_length_filename = 50; // change this value to fit your field length in your database (standard 100) $my_upload->rename_file = true; $my_upload->the_temp_file = $_FILES['image']['tmp_name']; $my_upload->the_file = $_FILES['image']['name']; $my_upload->http_error = $_FILES['image']['error']; $my_upload->replace = 'y'; //$my_upload->replace = (isset($_POST['replace'])) ? $_POST['replace'] : "n"; // because only a checked checkboxes is true //$my_upload->do_filename_check = (isset($_POST['check'])) ? $_POST['check'] : "n"; // use this boolean to check for a valid filename $new_name = 'Videos'.GetSID(7); //$new_name = (isset($_POST['name'])) ? $_POST['name'] : ""; if ($my_upload->upload($new_name)) { // new name is an additional filename information, use this to rename the uploaded file $full_path = $my_upload->upload_dir.$my_upload->file_copy; $info = $my_upload->get_uploaded_file_info($full_path); // ... or do something like insert the filename to the database } } else { $full_path = ""; } $_POST = sanitize($_POST); $photos = $_POST; settype($photos,'object'); VideoGallery::updateVideoGallery($photos,$full_path); $success = "Videos Successfully Saved!";
if ($_FILES['image']['name'] != '') { $my_upload->upload_dir = "../../../products_image/"; // "files" is the folder for the uploaded files (you have to create this folder) $my_upload->extensions = array(".jpeg", ".gif", ".bmp", ".jpg", ".png"); // specify the allowed extensions here // $my_upload->extensions = "de"; // use this to switch the messages into an other language (translate first!!!) $my_upload->max_length_filename = 50; // change this value to fit your field length in your database (standard 100) $my_upload->rename_file = true; $my_upload->the_temp_file = $_FILES['image']['tmp_name']; $my_upload->the_file = $_FILES['image']['name']; $my_upload->http_error = $_FILES['image']['error']; $my_upload->replace = 'y'; //$my_upload->replace = (isset($_POST['replace'])) ? $_POST['replace'] : "n"; // because only a checked checkboxes is true //$my_upload->do_filename_check = (isset($_POST['check'])) ? $_POST['check'] : "n"; // use this boolean to check for a valid filename $new_name = 'Products' . GetSID(7); //$new_name = (isset($_POST['name'])) ? $_POST['name'] : ""; if ($my_upload->upload($new_name)) { // new name is an additional filename information, use this to rename the uploaded file $full_path_name = $my_upload->upload_dir . $my_upload->file_copy; $info = $my_upload->get_uploaded_file_info($full_path_name); $full_path = $my_upload->file_copy; // ... or do something like insert the filename to the database } } else { $full_path = ""; } if (isset($_POST['isAvailable'])) { $isAvailable = 1; } else { $isAvailable = 0;
$my_upload->upload_dir = "../../../photos/"; // "files" is the folder for the uploaded files (you have to create this folder) $my_upload->extensions = array(".jpeg", ".gif", ".bmp",".jpg",".png");// specify the allowed extensions here // $my_upload->extensions = "de"; // use this to switch the messages into an other language (translate first!!!) $my_upload->max_length_filename = 50; // change this value to fit your field length in your database (standard 100) $my_upload->rename_file = true; $my_upload->the_temp_file = $_FILES['image']['tmp_name']; $my_upload->the_file = $_FILES['image']['name']; $my_upload->http_error = $_FILES['image']['error']; $my_upload->replace = 'y'; //$my_upload->replace = (isset($_POST['replace'])) ? $_POST['replace'] : "n"; // because only a checked checkboxes is true //$my_upload->do_filename_check = (isset($_POST['check'])) ? $_POST['check'] : "n"; // use this boolean to check for a valid filename $new_name = 'Photos'.GetSID(7); //$new_name = (isset($_POST['name'])) ? $_POST['name'] : ""; if ($my_upload->upload($new_name)) { // new name is an additional filename information, use this to rename the uploaded file $full_path = $my_upload->upload_dir.$my_upload->file_copy; $info = $my_upload->get_uploaded_file_info($full_path); // ... or do something like insert the filename to the database } } else { $full_path = ""; } $_POST = sanitize($_POST); $photos = $_POST; settype($photos,'object'); PhotoGallery::updatePhotoGallery($photos,$full_path); $success = "Photo Successfully Saved!";
<tr> <td width="15" height="41"> </td> <td width="148"> </td> </tr> <tr> <td height="78"> </td> <td rowspan="2"> <img src="icn_cart.gif"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000066"><strong>Your Cart</strong></font><br><br> <?php if (isset($_SESSION['ip'])) { session_start(); $ip = $_SESSION['ip']; $client_id = $_SESSION['client_id']; } else { $ip = getenv("REMOTE_ADDR"); $client_id = GetSID(24); session_start(); $_SESSION['ip'] = $ip; $_SESSION['client_id'] = $client_id; } $query9 = "SELECT * FROM temp_order WHERE ip='{$ip}' and client_id='{$client_id}'"; $result9 = mysql_query($query9) or die(mysql_error()); $content = mysql_num_rows($result9); $grandtotal = 0; while ($row9 = mysql_fetch_array($result9)) { $product_id = $row9['product_id']; $quantity = $row9['Quantity']; $query10 = "SELECT * FROM products WHERE Id='{$product_id}'"; $result10 = mysql_query($query10) or die(mysql_error()); $row10 = mysql_fetch_array($result10); $category_id = $row10['category_id'];