2 /************************************************************************/
\r
4 /************************************************************************/
\r
5 /* Copyright (c) 2002-2010 */
\r
6 /* Inclusive Design Institute */
\r
7 /* http://atutor.ca */
\r
9 /* This program is free software. You can redistribute it and/or */
\r
10 /* modify it under the terms of the GNU General Public License */
\r
11 /* as published by the Free Software Foundation. */
\r
12 /************************************************************************/
\r
15 define('AT_INCLUDE_PATH', '../../../include/');
\r
16 require (AT_INCLUDE_PATH.'vitals.inc.php');
\r
17 admin_authenticate(AT_ADMIN_PRIV_PATCHER);
\r
19 if (!isset($_REQUEST["myown_patch_id"]))
\r
21 $msg->addError('NO_ITEM_SELECTED');
\r
25 $myown_patch_id = $_REQUEST["myown_patch_id"];
\r
27 // URL called by form action
\r
28 $url = dirname($_SERVER['PHP_SELF']) . "/patch_creator.php?myown_patch_id=" . $myown_patch_id;
\r
30 $sql_patches = "SELECT * from ".TABLE_PREFIX."myown_patches m where myown_patch_id=". $myown_patch_id;
\r
31 $result_patches = mysql_query($sql_patches, $db) or die(mysql_error());
\r
32 $row_patches = mysql_fetch_assoc($result_patches);
\r
34 $sql_patch_dependent = "SELECT * from ".TABLE_PREFIX."myown_patches_dependent m where myown_patch_id=". $myown_patch_id;
\r
35 $result_patch_dependent = mysql_query($sql_patch_dependent, $db) or die(mysql_error());
\r
37 $sql_patch_files = "SELECT * from ".TABLE_PREFIX."myown_patches_files m where myown_patch_id=". $myown_patch_id . " order by myown_patches_files_id";
\r
38 $result_patch_files = mysql_query($sql_patch_files, $db) or die(mysql_error());
\r
40 require ('patch_edit_interface.tmpl.php');
\r