psql db schema test
[mirrors/Kyberia-bloodline.git] / cron / register.php
index 9a9c0a837b29866cc8830c55aee1c04fb13efdb8..70316247ef0d7fc6584f16f4bb9fc4d74c22d764 100755 (executable)
@@ -6,6 +6,8 @@
  * Called once a day at 0:42
  * 
  * TODO: ? call only function from eventz ? 
+ *        remove sql code
+ *        update texts & send mail
  */
 
 
@@ -17,7 +19,7 @@ require($dir.'/../wwwroot/config/config.inc');
 require(INCLUDE_DIR.'/log.inc');
 require(INCLUDE_DIR.'/database.inc');
 require(INCLUDE_DIR.'/nodes.inc');
-require(INCLUDE_DIR.'/permissions.inc');
+include_once(BACKEND_DIR.'/'.DB_TYPE.'/permissions.inc');
 require(INCLUDE_DIR.'/ubik.inc');
 //require(INCLUDE_DIR.'/senate.inc');
 
@@ -44,7 +46,7 @@ while ($set->next()) {
       echo $login." registered\n";
       $db->update("update nodes set 
                        template_id=7,
-                       external_link='db://users',
+                       external_link='db://user',
                        node_name='$login' 
                        where node_id=".$set->getString('node_id'));
       $mail=$set->getString('email');
This page took 0.097183 seconds and 4 git commands to generate.