-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathauthora.php
More file actions
executable file
·67 lines (51 loc) · 2 KB
/
Copy pathauthora.php
File metadata and controls
executable file
·67 lines (51 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* @package Authora
* @version 1.7.9
*/
/*
Plugin Name: Authora : Easy login with mobile number
Plugin URI: https://github.com/Rayiumir/Authora
Description: Easy login with mobile number for WordPress.
Author: Raymond Baghumian
Version: 1.7.9
Author URI: https://rayium.ir
Text Domain: authora-easy-login-with-mobile-number
Domain Path: /languages
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
defined('ABSPATH') || exit;
define('AUTHORA_LOGIN_VERSION', '1.7.9');
define( 'AUTHORA_LOGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'AUTHORA_LOGIN_PATH', plugin_dir_path(__FILE__) );
define('AUTHORA_LOGIN_CSS', AUTHORA_LOGIN_URL . 'css/');
define('AUTHORA_LOGIN_JS', AUTHORA_LOGIN_URL . 'js/');
define('AUTHORA_LOGIN_IMAGES', AUTHORA_LOGIN_URL . 'img/');
define('AUTHORA_LOGIN_PUBLIC', AUTHORA_LOGIN_PATH . 'public/');
define('AUTHORA_LOGIN_VIEW', AUTHORA_LOGIN_PATH . 'view/');
define('AUTHORA_LOGIN_INC', AUTHORA_LOGIN_PATH . 'inc/');
define('AUTHORA_LOGIN_ADMIN', AUTHORA_LOGIN_PATH . 'admin/');
define('AUTHORA_LOGIN_DRIVER', AUTHORA_LOGIN_PATH . 'drivers/');
// Calling Files
require(AUTHORA_LOGIN_PUBLIC . 'modal.php');
require(AUTHORA_LOGIN_INC . 'enqueue.php');
require(AUTHORA_LOGIN_INC . 'ajax.php');
require(AUTHORA_LOGIN_INC . 'activation.php');
require(AUTHORA_LOGIN_INC . 'functions.php');
require(AUTHORA_LOGIN_INC . 'login-page.php');
require(AUTHORA_LOGIN_DRIVER . 'SMSIR/Smsir.php');
require(AUTHORA_LOGIN_DRIVER . 'FarazSMS/FarazSMS.php');
require(AUTHORA_LOGIN_DRIVER . 'ShahvarSMS/ShahvarSMS.php');
require(AUTHORA_LOGIN_DRIVER . 'SmsDriverInterface.php');
require(AUTHORA_LOGIN_DRIVER . 'SmsManager.php');
//require_once AUTHORA_LOGIN_INC . 'login-forms.php';
if(is_admin())
{
require(AUTHORA_LOGIN_ADMIN . 'manager.php');
}
// Activation and Deactivation Tables
global $wpdb;
$wpdb->authora_login = $wpdb->prefix . 'authora_login';
register_activation_hook( __FILE__, 'authora_activation' );
register_deactivation_hook( __FILE__, 'authora_activation' );