mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-06-20 06:50:20 +00:00
Rename RSCDSUser (.php) to DAViCalUser (.php)
This commit is contained in:
parent
fc06ef8868
commit
49795c5cbb
5
htdocs/testpdo.php
Normal file
5
htdocs/testpdo.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
require_once("../inc/always.php");
|
||||
|
||||
require("PdoQuery.php");
|
||||
|
||||
@ -6,10 +6,10 @@
|
||||
$session->LoginRequired();
|
||||
require_once("interactive-page.php");
|
||||
|
||||
require_once("RSCDSUser.php");
|
||||
require_once("DAViCalUser.php");
|
||||
|
||||
$user_no = intval(isset($_POST['user_no']) ? $_POST['user_no'] : (isset($_GET['user_no'])?$_GET['user_no']:0) );
|
||||
$user = new RSCDSUser($user_no);
|
||||
$user = new DAViCalUser($user_no);
|
||||
if ( $user->user_no == 0 ) {
|
||||
$c->page_title = ( $user_no != "" ? translate("User Unavailable") : translate("New User") );
|
||||
}
|
||||
@ -26,7 +26,7 @@
|
||||
$user->PostToValues();
|
||||
if ( $user->Validate() ) {
|
||||
$user->Write();
|
||||
$user = new RSCDSUser($user->user_no);
|
||||
$user = new DAViCalUser($user->user_no);
|
||||
$user->EditMode = true;
|
||||
if ( $user->user_no == 0 ) {
|
||||
$c->page_title = ( $user_no != "" ? translate("User Unavailable") : translate("New User") );
|
||||
@ -70,7 +70,7 @@
|
||||
* Handle any actions, such as 'delete_relation'
|
||||
*/
|
||||
if ( $user->HandleAction($_GET['action']) ) {
|
||||
$user = new RSCDSUser($user->user_no);
|
||||
$user = new DAViCalUser($user->user_no);
|
||||
$user->EditMode = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
* User maintain / view with DAViCal specific associated tables
|
||||
*
|
||||
* @package davical
|
||||
* @subpackage RSCDSUser
|
||||
* @subpackage DAViCalUser
|
||||
* @author Andrew McMillan <andrew@mcmillan.net.nz>
|
||||
* @copyright Catalyst .Net Ltd, Morphoss Ltd <http://www.morphoss.com/>
|
||||
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2
|
||||
@ -21,7 +21,7 @@ $c->scripts[] = "$c->base_url/js/browse.js";
|
||||
*
|
||||
* @package davical
|
||||
*/
|
||||
class RSCDSUser extends User
|
||||
class DAViCalUser extends User
|
||||
{
|
||||
|
||||
var $delete_collection_confirmation_required;
|
||||
@ -29,7 +29,7 @@ class RSCDSUser extends User
|
||||
/**
|
||||
* Constructor - nothing fancy as yet.
|
||||
*/
|
||||
function RSCDSUser( $id , $prefix = "") {
|
||||
function DAViCalUser( $id , $prefix = "") {
|
||||
global $c;
|
||||
$this->delete_collection_confirmation_required = null;
|
||||
parent::User( $id, $prefix );
|
||||
@ -334,7 +334,7 @@ function sync_LDAP(){
|
||||
$db_users[] = $db_user['username'];
|
||||
$db_users_info[$db_user['username']] = array('user_no' => $db_user['user_no'], 'updated' => $db_user['updated']);
|
||||
}
|
||||
include_once("RSCDSUser.php");
|
||||
include_once("DAViCalUser.php");
|
||||
|
||||
$ldap_users = array_keys($ldap_users_info);
|
||||
// users only in ldap
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user