Login – PHP Event Calendar https://phpeventcalendar.com Modern Event Calendar For Your Website. Wed, 20 Nov 2024 05:12:24 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 Access denied for “root@localhost” https://phpeventcalendar.com/knowledge-base/access-denied-for-rootlocalhost/ Wed, 20 Nov 2024 05:12:23 +0000 https://phpeventcalendar.com/?p=1532 Make sure the login info in conf.php is correct. See http://phpeventcalendar.com/docs/installation/ for more information. 

]]>
Is there any way to have individual logins so that each user can manage their own calendar only? https://phpeventcalendar.com/knowledge-base/is-there-any-way-to-have-individual-logins-so-that-each-user-can-manage-their-own-calendar-only/ Wed, 20 Nov 2024 05:09:16 +0000 https://phpeventcalendar.com/?p=1531 Question:
Hi, is there any way to have individual logins so that each user can manage their own calendar only? I have a group of 50 calendars but I need them to only manage their own only with a super admin available to manage them all.

Solution:
Here’s the SQL query to insert new user into the calendar database table ‘pec_users‘ with user role as “user“.

You would need to simply replace with some real user data. The password can be encode here.

INSERT INTO pec_users
(access_key, activated, admin_id, role, first_name, last_name, active_calendar_id, company, username, password, email, timezone, language, theme, kbd_shortcuts, created_on, updated_on)
VALUES
(NULL, 1, NULL, ‘user’, ‘Joe’, ‘Blow’, ‘0’, ‘Rand Corp’, ‘joeblow’, md5(‘123456’), ‘joeblow@example.com’, ‘+6’, ‘English’, ‘default’, 1, NOW(), NOW());

<br>

Users will only see their own calendars.

]]>
Calendar Auto Login (by pass login) https://phpeventcalendar.com/knowledge-base/calendar-auto-login-by-pass-login/ Wed, 20 Nov 2024 04:44:40 +0000 https://phpeventcalendar.com/?p=1514 Though it is not recommended,  you can log in as an admin or a user automatically without entering credential in the login form by setting a default login credential in the following file. 

server/ajax/user_manager.php

The user authentication is handled in the class 

C_User
.

Also see

]]>
Default demo login username and password https://phpeventcalendar.com/knowledge-base/default-demo-login-username-and-password/ Wed, 20 Nov 2024 04:29:00 +0000 https://phpeventcalendar.com/?p=1501 The default login name is 

admin

password

123456

You can also access the online demo by clicking the “demo” link on the top menu.

https://quickproductdemo.com/phpeventcal

]]>
How to bypass login https://phpeventcalendar.com/knowledge-base/how-to-bypass-login/ Wed, 20 Nov 2024 04:17:10 +0000 https://phpeventcalendar.com/?p=1495 loggedIn, and set session variable accordingly.]]> The login routine is hosted in 
/server/ajax/user_manager.php

The following line checks for the login. 

$userObj = new C_User($_POST['username'],$_POST['password']);

Then once simply checks for status returned from $userObj->loggedIn, and set session variable accordingly.

]]>
Start Using Your Events Calendar https://phpeventcalendar.com/docs/start/ Mon, 09 Jun 2014 22:01:54 +0000 http://phpeventcalendar.com/?p=376 During installation, PHP Events Calendar creates a login similar to the page online event calendar demo. The default login is

name: admin
password: 123456

You can change the login credential in “pec_users” table in MySQL. The password is encrypted by MD5 hash. You can generate one here.

Here’s the SQL query to insert new user into the calendar database table ‘pec_users’ with user role as “user”. You would need to simply replace with some real user data. The password is encoded in MD5. Web-based GUI users management tool will be added in future release.

INSERT INTO `pec_users`
(`access_key`, `activated`, `admin_id`, `role`, `first_name`, `last_name`, `active_calendar_id`, `company`, `username`, `password`, `email`, `timezone`, `language`, `theme`, `kbd_shortcuts`, `created_on`, `updated_on`)
VALUES
(NULL, 1, NULL, 'user', 'Joe', 'Blow', '0', 'Rand Corp', 'joeblow', md5('123456'), 'joeblow@example.com', '+6', 'English', 'default', 1, NOW(), NOW());

Note that the above default user account is an admin account who can create and modify any event. To display events read only, send your users to public calendar page in which the events can be browsed but cannot be modified.

public_calendar

Please note that users who have “admin” role can have access to all calendars of other non-admin users.

The role can only be changed in database table “pec_users”.

user role

 

]]>