equal
deleted
inserted
replaced
1491 */ |
1491 */ |
1492 |
1492 |
1493 function send_activation_mail($u, $actkey = false) |
1493 function send_activation_mail($u, $actkey = false) |
1494 { |
1494 { |
1495 global $db, $session, $paths, $template, $plugins; // Common objects |
1495 global $db, $session, $paths, $template, $plugins; // Common objects |
1496 $q = $this->sql('SELECT username,email FROM '.table_prefix.'users WHERE user_id=1 OR user_level=' . USER_LEVEL_ADMIN . ' ORDER BY user_id ASC;'); |
1496 $q = $this->sql('SELECT username,email FROM '.table_prefix.'users WHERE user_id=2 OR user_level=' . USER_LEVEL_ADMIN . ' ORDER BY user_id ASC;'); |
1497 $un = $db->fetchrow(); |
1497 $un = $db->fetchrow(); |
1498 $admin_user = $un['username']; |
1498 $admin_user = $un['username']; |
1499 $q = $this->sql('SELECT username,activation_key,account_active,email FROM '.table_prefix.'users WHERE username=\''.$db->escape($u).'\';'); |
1499 $q = $this->sql('SELECT username,activation_key,account_active,email FROM '.table_prefix.'users WHERE username=\''.$db->escape($u).'\';'); |
1500 $r = $db->fetchrow(); |
1500 $r = $db->fetchrow(); |
1501 if ( empty($r['email']) ) |
1501 if ( empty($r['email']) ) |