maak van
Code: Selecteer alles
$sql = 'INSERT INTO ' . EASYMOD_TABLE . " ( mod_file, mod_title, mod_version, mod_author_handle, mod_author_email, mod_author_url, mod_author_name, mod_description, mod_process_date, mod_phpBB_version, mod_processed_themes, mod_processed_langs, mod_files_edited)
VALUES ( '" . substr($install_path, 7) if (intval($HTTP_POST_VARS['mod_id']) > 0
{
$sql = "DELETE FROM " . EASYMOD_TABLE ."
WHERE mod_id = " . intval($HTTP_POST_VARS['mod_id']);
$lang['EM_err_em_info'] = $lang['EM_err_em_unins'];
} . $install_file . "', '$mod_title', '$mod_version', '$mod_author_handle', '$mod_author_email', '$mod_author_url', '$mod_author_name', '$mod_description', " . time() . ", '" . $phpbb_version . "', '" . $themes . "', '" . $languages . "', $files)";
dit:
Code: Selecteer alles
$sql = 'INSERT INTO ' . EASYMOD_TABLE . " ( mod_file, mod_title, mod_version, mod_author_handle, mod_author_email, mod_author_url, mod_author_name, mod_description, mod_process_date, mod_phpBB_version, mod_processed_themes, mod_processed_langs, mod_files_edited)
VALUES ( '" . substr($install_path, 7) . $install_file . "', '$mod_title', '$mod_version', '$mod_author_handle', '$mod_author_email', '$mod_author_url', '$mod_author_name', '$mod_description', " . time() . ", '" . $phpbb_version . "', '" . $themes . "', '" . $languages . "', $files)";
if ( intval($HTTP_POST_VARS['mod_id']) > 0 )
{
$sql = "DELETE FROM " . EASYMOD_TABLE ."
WHERE mod_id = " . intval($HTTP_POST_VARS['mod_id']);
$lang['EM_err_em_info'] = $lang['EM_err_em_unins'];
}