PDA

View Full Version : Information Pages Unlimited v1.0



michael_s
01-13-2007, 12:51 PM
Well I downloaded the package below installed it - very easy install, especially since it was over a fresh install

Afte loging into the admin I cam accross an error when clicking on the info system link - I got the 'My Store' configuration page and this is how my information manager page looks lke when I click on it.

1
0) {while (list($key, $val)=each($data)) {$no++; } } ; $title="" . ADD_QUEUE_INFORMATION . " #$no"; echo tep_draw_form('',FILENAME_INFORMATION_MANAGER, 'adgrafics_information=AddSure'); include('information_form.php'); break; case "AddSure": function add_information ($data) { global $languages_id; $query ="INSERT INTO " . TABLE_INFORMATION . " VALUES(null, '$data[visible]', '$data[v_order]', '$data[info_title]', '$data[description]','$languages_id', null)"; mysql_db_query(DB_DATABASE, $query) or die ("Information ERROR: ".mysql_error()); } if ($v_order && $info_title && $description) { if ((INT)$v_order) { add_information($HTTP_POST_VARS); $data=browse_information(); $title="" . tep_image(DIR_WS_ICONS . 'confirm_red.gif', CONFIRM_INFORMATION) .SUCCED_INFORMATION . ADD_QUEUE_INFORMATION . " $v_order "; include('information_list.php'); } else {$error="20";} } else {$error="80";} unset($data); break; case "Edit": if ($information_id) { $edit=read_data($information_id); $data=browse_information(); $button=array("Update"); $title="" . EDIT_ID_INFORMATION . " $information_id"; //echo form("$PHP_SELF?adgrafics_information=Update", $hidden); echo tep_draw_form('',FILENAME_INFORMATION_MANAGER, 'adgrafics_information=Update'); echo tep_draw_hidden_field('information_id', "$information_id"); include('information_form.php'); } else {$error="80";} break; case "Update": function update_information () { if ((isset($_POST['info_pages'])) && ($_POST['info_pages'] == 'NULL')) { mysql_db_query(DB_DATABASE, "UPDATE " . TABLE_INFORMATION . " SET info_title='$_POST[info_title]', description='$_POST[description]', visible='$_POST[visible]', v_order='$_POST[v_order]', parent_id=NULL WHERE information_id=$_POST[information_id]") or die ("update_information: ".mysql_error()); } else { mysql_db_query(DB_DATABASE, "UPDATE " . TABLE_INFORMATION . " SET info_title='$_POST[info_title]', description='$_POST[description]', visible='$_POST[visible]', v_order='$_POST[v_order]', parent_id='$_POST[info_pages]' WHERE information_id=$_POST[information_id]") or die ("update_information: ".mysql_error()); } } if ($information_id && $description && $v_order) { if ((INT)$v_order) { update_information(); $data=browse_information(); $title="$confirm " . UPDATE_ID_INFORMATION . " $information_id " . SUCCED_INFORMATION . ""; include('information_list.php'); } else {$error="20"; } } else {$error="80";} break; case 'Visible': function tep_set_information_visible($information_id, $visible) { if ($visible == '1') { return tep_db_query("update " . TABLE_INFORMATION . " set visible = '0' where information_id = '" . $information_id . "'"); } else{ return tep_db_query("update " . TABLE_INFORMATION . " set visible = '1' where information_id = '" . $information_id . "'"); } } tep_set_information_visible($information_id, $visible); $data=browse_information(); if ($visible == '1') { $vivod=DEACTIVATION_ID_INFORMATION; }else{$vivod=ACTIVATION_ID_INFORMATION;} $title="$confirm $vivod $information_id " . SUCCED_INFORMATION . ""; include('information_list.php'); break; case "Delete": if ($information_id) { $delete=read_data($information_id); $data=browse_information(); $title="" . DELETE_CONFITMATION_ID_INFORMATION . " $information_id"; echo " $title
"; echo " " . TITLE_INFORMATION . " $delete[info_title]
"; echo tep_draw_form('',FILENAME_INFORMATION_MANAGER, "adgrafics_information=DelSure&information_id=$val[information_id]"); echo tep_draw_hidden_field('information_id', "$information_id"); echo tep_image_submit('button_delete.gif', IMAGE_DELETE); echo '' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''; echo "
"; } else {$error="80";} break; case "DelSure": function delete_information ($information_id) { mysql_db_query(DB_DATABASE, "DELETE FROM " . TABLE_INFORMATION . " WHERE information_id=$information_id"); } if ($information_id) { delete_information($information_id); $data=browse_information(); $title="$confirm " . DELETED_ID_INFORMATION . " $information_id " . SUCCED_INFORMATION . ""; include('information_list.php'); } else {$error="80";} break; default: $data=browse_information(); $title="" . MANAGER_INFORMATION . ""; include('information_list.php'); } if ($error) { $content=error_message($error); echo $content; $data=browse_information(); $no=1; if (sizeof($data) > 0) {while (list($key, $val)=each($data)) {$no++; } } ; $title="" . ADD_QUEUE_INFORMATION . " $no"; echo tep_draw_form('',FILENAME_INFORMATION_MANAGER, 'adgrafics_information=AddSure'); include('information_form.php'); } ?>

NOTHING TO DOWNLOAD

More... (http://www.oscommerce.com/community/contributions,1026)