error_reporting(1);
session_start();
require('../config/config.inc');
-require(SYSTEM_ROOT.'inc/database.inc');
-require(SYSTEM_ROOT.'inc/ubik.inc');
+require(INCLUDE_DIR.'database.inc');
+require(INCLUDE_DIR.'ubik.inc');
$db=new CLASS_DATABASE();
//print_r($_SESSION);
-?>
\ No newline at end of file
+?>
<?php
error_reporting(1);
require('../config/config.inc');
-require(SYSTEM_ROOT.'inc/database.inc');
+require(INCLUDE_DIR.'database.inc');
$db=new CLASS_DATABASE();
$user_id = $_GET['user_id'];
$node_id = $_GET['node_id'];
<?php
error_reporting(0);
require('../config/config.inc');
-require(SYSTEM_ROOT.'inc/database.inc');
+require(INCLUDE_DIR.'database.inc');
$db=new CLASS_DATABASE();
$name = addslashes($_GET['name']);
$q="select users.user_id from users where users.login='$name' limit 1";
$set->next();
$id=$set->getString('user_id');
echo $id;
-?>
\ No newline at end of file
+?>
error_reporting(1);
session_start();
require('../config/config.inc');
-require(SYSTEM_ROOT.'inc/database.inc');
+require(INCLUDE_DIR.'database.inc');
$db=new CLASS_DATABASE();
$user_id = $_GET['user_id'];
$moods = $set->getString('moods');
echo "session_user_id:: ".$_SESSION['user_id']."<br>";
printf('moods:: %s session:: %d , %s , %s',$moods,$_SESSION['mood'],$_SESSION['mood_name'],$_SESSION['mood_text']);
-?>
\ No newline at end of file
+?>
<?php
error_reporting(0);
require('../config/config.inc');
-require(SYSTEM_ROOT.'inc/database.inc');
+require(INCLUDE_DIR.'database.inc');
$db=new CLASS_DATABASE();
$name = addslashes($_GET['name']);
$q="select users.user_id from users where users.login='$name' limit 1";
error_reporting(1);
session_start();
require('../config/config.inc');
-require(SYSTEM_ROOT.'inc/database.inc');
+require(INCLUDE_DIR.'database.inc');
$db=new CLASS_DATABASE();
$set=$db->query("select user_id,last_action from users where (user_id > 2334 and user_id < 123456 and last_action like '2005-11-06 00:00:02')");
echo $set->getString('user_id')." ; ".$set->getString('last_action')."<br>";
}
-?>
\ No newline at end of file
+?>
<?php
//do not make a permission check if an event was executed before
if ($_SESSION['eventz'][$event]) {
- include_once(SYSTEM_ROOT."/inc/eventz/$event.inc");
+ include_once(INCLUDE_DIR."eventz/$event.inc");
$status=$event();
}
-elseif (is_file(SYSTEM_ROOT."/inc/eventz/$event.inc")) {
+elseif (is_file(INCLUDE_DIR."eventz/$event.inc")) {
$event_id=nodes::getNodeIdByName($event,"event://$event");
$event_node=nodes::getNodeById($event_id,$_SESSION['user_id']);
if ($event_node['node_system_access']=='public'
|| $event_node['node_permission']=='op'
|| $event_node['node_permission']=='execute'
|| $event_node['node_permission']=='master' ) {
- include_once(SYSTEM_ROOT."/inc/eventz/$event.inc");
+ include_once(INCLUDE_DIR."eventz/$event.inc");
$status=$event();
$_SESSION['eventz'][$event]=true;
if ($node_system_access=='crypto') {
- require(SYSTEM_ROOT.'/inc/crypto.inc');
+ require(INCLUDE_DIR.'crypto.inc');
if ($_SESSION['crypto'][$node_parent]) {
$key=$_SESSION['crypto'][$node_parent];
if ($node_system_access=='crypto') {
- require(SYSTEM_ROOT.'/inc/crypto.inc');
+ require(INCLUDE_DIR.'crypto.inc');
if ($_SESSION['crypto'][$node_parent]) {
$key=$_SESSION['crypto'][$node_parent];
$node_external_access=$_POST['node_external_access'];
$node_system_access=$_POST['node_system_access'];
- require(SYSTEM_ROOT.'/inc/htmlparse.inc');
+ require(INCLUDE_DIR.'htmlparse.inc');
global $htmlparse;
htmlparse::htmlparse($node_name);
}
}
-?>
\ No newline at end of file
+?>
// lockout capatibility
// with ldap sync
// <h1> This is da default one</h1>
- require(SYSTEM_ROOT.'/inc/ldap.inc');
+ require(INCLUDE_DIR.'ldap.inc');
global $db,$error,$node_id;
$login = mysql_real_escape_string($_POST['login']);
// header("Location: $referer");
return true;
}
-?>
\ No newline at end of file
+?>
$q="select * from users where login='$login'";
$set=$db->query($q);
$set->next();
- require(SYSTEM_ROOT.'/inc/ldap.inc');
+ require(INCLUDE_DIR.'ldap.inc');
$user_id=$set->getString('user_id');
$user_name=$login;
break;
$q="select * from users where user_id='$login'";
$set=$db->query($q);
$set->next();
- require(SYSTEM_ROOT.'/inc/ldap.inc');
+ require(INCLUDE_DIR.'ldap.inc');
$user_id=$login;
$user_name=$set->getString('user_name');
break;
}
return true;
}
-?>
\ No newline at end of file
+?>
$q="select * from users where login='$login'";
$set=$db->query($q);
$set->next();
- require(SYSTEM_ROOT.'/inc/ldap.inc');
+ require(INCLUDE_DIR.'ldap.inc');
$user_id=$set->getString('user_id');
$user_name=$set->getString('login');
break;
$q="select * from users where user_id='$login'";
$set=$db->query($q);
$set->next();
- require(SYSTEM_ROOT.'/inc/ldap.inc');
+ require(INCLUDE_DIR.'ldap.inc');
$user_id=$set->getString('user_id');
$user_name=$set->getString('login');
break;
}
return false;
}
-?>
\ No newline at end of file
+?>
echo $q;
$set=$db->query($q);
$set->next();
- require(SYSTEM_ROOT.'/inc/ldap.inc');
+ require(INCLUDE_DIR.'ldap.inc');
$user_id=$set->getString('user_id');
$user_name=$set->getString('login');
break;
$q="select * from users where user_id='$login'";
$set=$db->query($q);
$set->next();
- require(SYSTEM_ROOT.'/inc/ldap.inc');
+ require(INCLUDE_DIR.'ldap.inc');
$user_id=$set->getString('user_id');
$user_name=$set->getString('login');
break;
}
return true;
}
-?>
\ No newline at end of file
+?>
global $permissions,$node,$db,$error;
$user_id=$_SESSION['user_id'];
$user_name=$_SESSION['user_name'];
-$hello="ahoj, tymto ta vitam v systeme kyberia.sk. do systemu ta zaregistrovala moja malickost. v pripade ze budes mat akykolvek problem, kontaktuj ma prosim cez postunnako prve by si mal navstivit forum Zaciname s kyberiounntoto je automaticky vygenerovana sprava";
-require(SYSTEM_ROOT."/inc/phpmailer.inc");
+$hello="ahoj, tymto ta vitam v systeme kyberia.sk. do systemu ta zaregistrovala moja malickost. v pripade ze budes mat akykolvek problem, kontaktuj ma prosim cez postunnako prve by si mal navstivit forum Zaciname s kyberiou\n\ntoto je automaticky vygenerovana sprava";
+require(INCLUDE_DIR."phpmailer.inc");
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "onyx.hysteria.sk"; // SMTP servers
}
return true;
}
-?>
\ No newline at end of file
+?>
$user_id=$_SESSION['user_id'];
$user_name=$_SESSION['user_name'];
-require(SYSTEM_ROOT."/inc/phpmailer.inc");
+require(INCLUDE_DIR."phpmailer.inc");
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "onyx.hysteria.sk"; // SMTP servers
$q="update users set password='$password' where user_id='$user_id'";
$db->query($q);
- require(SYSTEM_ROOT.'/inc/ldap.inc');
+ require(INCLUDE_DIR.'ldap.inc');
LDAPuser::change_pass_forced($user_id,$password1);
$error="Password changed. Now you can login with your new password.";
return false;
}
-?>
\ No newline at end of file
+?>
}
//changing in LDAP
- require(SYSTEM_ROOT.'/inc/ldap.inc');
+ require(INCLUDE_DIR.'ldap.inc');
LDAPuser::change_pass_forced($user_id,$new_password1);
//changing in MySQL
$node_id=$node['node_id'];
$node_template=$_POST['node_template'];
- require(SYSTEM_ROOT.'/inc/filez.inc');
+ require(INCLUDE_DIR.'filez.inc');
$suffix = array_pop(explode('.', basename($_FILES['data_file']['name'])));
if (!is_dir(FILE_DIR.$_SESSION['user_id'])) {
mkdir(FILE_DIR.$_SESSION['user_id']);
}
-?>
\ No newline at end of file
+?>
function processContent($node_content) {
global $node;
- include_once(SYSTEM_ROOT.'/inc/htmlparse.inc');
+ include_once(INCLUDE_DIR.'htmlparse.inc');
if ($node['template_id']==$node['node_id'] && $_POST['event']=='configure_content') {
* is in a different directory than the PHP include path.
* @var string
*/
- var $PluginDir = "/storage/system/www-docroot/kyberia.sk/inc/phpmailer/";
+ var $PluginDir = "/srv/kyberia/wwwroot/inc/phpmailer/"; //XXX FIX
/**
* Holds PHPMailer version.
$node_content=htmlspecialchars($node_content);
}
- require(SYSTEM_ROOT.'/inc/htmlparse.inc');
+ require(INCLUDE_DIR.'htmlparse.inc');
global $htmlparse;
htmlparse::htmlparse($node_content);
{
global $permissions, $node;
- require(SYSTEM_ROOT.'inc/permissions.inc');
+ require(INCLUDE_DIR.'permissions.inc');
$permissions=permissions::checkPermissions($node);
$permissions['h']=permissions::isHierarch($node);
}
//performing node_events (based on update/insert/delete db queries)
if ($event) {
- require(SYSTEM_ROOT.'inc/eventz.inc');
+ require(INCLUDE_DIR.'eventz.inc');
}
elseif ($transaction) {
- require(SYSTEM_ROOT.'inc/transaction.inc');
+ require(INCLUDE_DIR.'transaction.inc');
}
//end of performing node events