| @@ 41-45 (lines=5) @@ | ||
| 38 | } |
|
| 39 | ||
| 40 | $op = 'default'; |
|
| 41 | if (isset($_POST['op'])) { |
|
| 42 | $op = $_POST['op']; |
|
| 43 | } elseif (isset($_GET['op'])) { |
|
| 44 | $op = $_GET['op']; |
|
| 45 | } |
|
| 46 | ||
| 47 | $productId = 0; |
|
| 48 | if (isset($_POST['product_id'])) { |
|
| @@ 45-49 (lines=5) @@ | ||
| 42 | } |
|
| 43 | // Get option |
|
| 44 | $op = 'default'; |
|
| 45 | if (isset($_POST['op'])) { |
|
| 46 | $op = $_POST['op']; |
|
| 47 | } elseif (isset($_GET['op'])) { |
|
| 48 | $op = $_GET['op']; |
|
| 49 | } |
|
| 50 | // Get action |
|
| 51 | $action = 'default'; |
|
| 52 | if (isset($_POST['action'])) { |
|
| @@ 52-56 (lines=5) @@ | ||
| 49 | } |
|
| 50 | // Get action |
|
| 51 | $action = 'default'; |
|
| 52 | if (isset($_POST['action'])) { |
|
| 53 | $action = $_POST['action']; |
|
| 54 | } elseif (isset($_GET['action'])) { |
|
| 55 | $action = $_GET['action']; |
|
| 56 | } |
|
| 57 | // Get commend id |
|
| 58 | $commend_id = 0; |
|
| 59 | if (isset($_POST['commend_id'])) { |
|
| @@ 37-43 (lines=7) @@ | ||
| 34 | ||
| 35 | $baseurl = OLEDRION_URL . basename(__FILE__); // URL de ce script |
|
| 36 | $handlers = oledrion_handler::getInstance(); |
|
| 37 | if (isset($_GET['op'])) { |
|
| 38 | $op = $_GET['op']; |
|
| 39 | } elseif (isset($_POST['op'])) { |
|
| 40 | $op = $_POST['op']; |
|
| 41 | } else { |
|
| 42 | $op = 'default'; |
|
| 43 | } |
|
| 44 | $xoopsTpl->assign('baseurl', $baseurl); |
|
| 45 | oledrion_utils::loadLanguageFile('modinfo.php'); |
|
| 46 | oledrion_utils::loadLanguageFile('admin.php'); |
|