exportDB(); break; case 'importdb': importDB($option); break; case 'importdbprocess': importDBProcess(); break; case 'listoffiles': listOfFiles($option); break; case 'viewlog': showLogFile(); break; case 'delfiles': delFiles($fid); break; default: showMolecules($option); break; } /** * Creates a new or edits and existing user record * @param int The id of the record, 0 if a new entry * @param string The current GET/POST option */ function editMolecule($edit) { $cid = JRequest::getVar('cid', array(0), '', 'array'); $option = JRequest::getCmd('option'); JArrayHelper::toInteger($cid, array(0));
//header("Location:bulkupload.php?stat=Y"); } } // end if thumb check // End if } // end foreach } else { $message .= "Can not Extaract Folder , Error in Uploding.<br>"; } // Delete Images from Folder if (is_dir($dirpaths) and file_exists($dirpaths)) { delDir($dirpaths); } if (is_dir($image_file_path) and file_exists($image_file_path)) { delFiles($image_file_path); } // end delete } else { $message .= "Image folder doesnot exists , Error in Uploding.<br>"; } } // end if message check } // end if zip upload chek } // end if button check include "../includes/htmltop.php"; ?> <script language="JavaScript" type="text/JavaScript">
echo "db"; } break; case "new_chave": $res = trajCatalogoDBops::setChaves($palavra); if (!$res) { echo "error"; } break; case "edit_chave": $res = trajCatalogoDBops::editChave(array("palavra" => $palavra), array("id" => $chaveID)); if (!$res) { echo "error"; } break; case "del_chave": $res = trajCatalogoDBops::delChave(array("id" => $chaveID)); if (!$res) { echo "error"; } break; case "del_files": $res = delFiles($fileName); if (!$res) { echo "error"; } break; default: break; } }