add_breeder.php 1 location
|
@@ 13-15 (lines=3) @@
|
| 10 |
|
require_once XOOPS_ROOT_PATH . "/modules/{$moduleDirName}/include/common.php"; |
| 11 |
|
|
| 12 |
|
//check for access |
| 13 |
|
if (!$xoopsUser instanceof XoopsUser) { |
| 14 |
|
redirect_header('index.php', 3, _NOPERM . '<br />' . _MA_PEDIGREE_REGIST); |
| 15 |
|
} |
| 16 |
|
|
| 17 |
|
$xoopsOption['template_main'] = 'pedigree_adddog.tpl'; |
| 18 |
|
include XOOPS_ROOT_PATH . '/header.php'; |
add_dog.php 1 location
|
@@ 203-205 (lines=3) @@
|
| 200 |
|
$empty = array(); // an empty array |
| 201 |
|
*/ |
| 202 |
|
//check for access |
| 203 |
|
if (!$xoopsUser instanceof XoopsUser) { |
| 204 |
|
redirect_header('javascript:history.go(-1)', 3, _NOPERM . '<br />' . _MA_PEDIGREE_REGIST); |
| 205 |
|
} |
| 206 |
|
// $user = isset($_POST['user']) ? $_POST['user'] : null; |
| 207 |
|
$user = XoopsRequest::getString('user', null, 'POST'); |
| 208 |
|
$random = (empty($random)) ? XoopsRequest::getString('random', null) : $random; |
add_litter.php 1 location
|
@@ 22-24 (lines=3) @@
|
| 19 |
|
|
| 20 |
|
//check for access |
| 21 |
|
$xoopsModule = XoopsModule::getByDirname('pedigree'); |
| 22 |
|
if (!$xoopsUser instanceof XoopsUser) { |
| 23 |
|
redirect_header('index.php', 3, _NOPERM . '<br />' . _MA_PEDIGREE_REGIST); |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
//get module configuration |
| 27 |
|
$moduleHandler = xoops_getHandler('module'); |
deletebreederpage.php 1 location
|
@@ 11-13 (lines=3) @@
|
| 8 |
|
require_once(XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/include/common.php'); |
| 9 |
|
|
| 10 |
|
//check for access |
| 11 |
|
if (!$xoopsUser instanceof XoopsUser) { |
| 12 |
|
redirect_header('javascript:history.go(-1)', 3, _NOPERM . '<br />' . _MA_PEDIGREE_REGIST); |
| 13 |
|
} |
| 14 |
|
|
| 15 |
|
$xoopsOption['template_main'] = 'pedigree_delete.tpl'; |
| 16 |
|
include XOOPS_ROOT_PATH . '/header.php'; |
deletepage.php 1 location
|
@@ 15-17 (lines=3) @@
|
| 12 |
|
include XOOPS_ROOT_PATH . '/header.php'; |
| 13 |
|
|
| 14 |
|
//check for access |
| 15 |
|
if (!$xoopsUser instanceof XoopsUser) { |
| 16 |
|
redirect_header('javascript:history.go(-1)', 3, _NOPERM . '<br />' . _MA_PEDIGREE_REGIST); |
| 17 |
|
} |
| 18 |
|
|
| 19 |
|
$dogid = XoopsRequest::getInt('dogid', 0, 'post'); |
| 20 |
|
$dogname = XoopsRequest::getString('curname', '', 'post'); |
update.php 1 location
|
@@ 11-13 (lines=3) @@
|
| 8 |
|
require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/include/common.php'; |
| 9 |
|
require_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/class/field.php'; |
| 10 |
|
|
| 11 |
|
if (!$xoopsUser instanceof XoopsUser) { |
| 12 |
|
redirect_header('javascript:history.go(-1)', 3, _NOPERM . '<br />' . _MA_PEDIGREE_REGIST); |
| 13 |
|
} |
| 14 |
|
|
| 15 |
|
$xoopsOption['template_main'] = 'pedigree_update.tpl'; |
| 16 |
|
include XOOPS_ROOT_PATH . '/header.php'; |
updatepage.php 1 location
|
@@ 30-32 (lines=3) @@
|
| 27 |
|
xoops_loadLanguage('main', $moduleDirName); |
| 28 |
|
|
| 29 |
|
//check for access |
| 30 |
|
if (!$xoopsUser instanceof XoopsUser) { |
| 31 |
|
redirect_header('javascript:history.go(-1)', 3, _NOPERM . '<br />' . _MA_PEDIGREE_REGIST); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
xoops_load('XoopsRequest'); |
| 35 |
|
xoops_load('PedigreeAnimal', $moduleDirName); |