mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 13:01:42 +00:00
including the module problem
This commit is contained in:
parent
1867c9d196
commit
ef61212038
1 changed files with 8 additions and 9 deletions
|
@ -9,13 +9,12 @@ delete user hook --- ring_open -> ring users ---- nel user & nel permission --
|
|||
menu items that do stuff
|
||||
|
||||
*/
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 'on');
|
||||
|
||||
$path = drupal_get_path('module', 'ryzommanage');
|
||||
require_once ($path . '/config.php');
|
||||
require_once( $path . '/ams_lib/libinclude.php' );
|
||||
|
||||
module_load_include('php', 'ryzommanage', 'config');
|
||||
module_load_include('php', 'ryzommanage', 'ams_lib/libinclude');
|
||||
global $MAIL_DIR;
|
||||
echo $MAIL_DIR;
|
||||
echo "booo";
|
||||
|
||||
/*
|
||||
Drupal 7 ryzom core module
|
||||
|
@ -56,8 +55,8 @@ function ryzommanage_admin()
|
|||
//admin menu items
|
||||
|
||||
|
||||
$path = drupal_get_path('module', 'ryzommanage');
|
||||
require($path . '/config.php');
|
||||
//$path = drupal_get_path('module', 'ryzommanage');
|
||||
//require($path . '/config.php');
|
||||
$form['ryzommanage_serverurl'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Server url'),
|
||||
|
@ -299,7 +298,7 @@ function _collect_register($nids, $collection)
|
|||
return_client_httpdata();
|
||||
} else {
|
||||
//redirect to registration page
|
||||
header("Location: /user/register");
|
||||
header("Location: user/register");
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue