-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathini.php
89 lines (75 loc) · 2.18 KB
/
ini.php
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
include('admin/db.php'); // database connection
use PayPal\Rest\ApiContext;
use PayPal\Auth\OAuthTokenCredential;
$custom = 'layout/v1/'; // custom path
$tmpl = 'includes/templates/v1/'; //custom path
$css = $custom . 'css/'; //css path
$js = $custom . 'js/'; //js path
$photos = 'admin/data/up/'; // photos path
$clips = 'admin/data/invoices/'; // invoice path
$fonts = $custom . 'fonts/'; // fonts path
$img = $custom . 'images/'; // images path
$langs = 'includes/langs/'; ///////////// languages path
if(isset($_GET['langs']))
{
$st = $con->prepare('UPDATE membres SET langs=? WHERE ID = ?');
if(is_numeric($_GET['langs']))
{
if($_GET['langs'] == 0)
{
$st->execute(array($_GET['langs'],$_SESSION['id']));
$_SESSION['langs'] = $_GET['langs'];
}elseif($_GET['langs'] == 1)
{
$st->execute(array($_GET['langs'],$_SESSION['id']));
$_SESSION['langs'] = $_GET['langs'];
}elseif($_GET['langs'] == 2)
{
$st->execute(array($_GET['langs'],$_SESSION['id']));
$_SESSION['langs'] = $_GET['langs'];
}
}
}
if(isset($_SESSION['username']))
{
if(@$_SESSION['langs'] == 0)
{
include($langs . 'en.php'); /// english language
}elseif($_SESSION['langs'] == 1)
{
include($langs . 'ar.php'); // arabic language
}elseif($_SESSION['langs'] == 2)
{
include($langs . 'fr.php'); // french language
}
}else{
include($langs . 'en.php');
}
$function = 'includes/functions/'; // functions directory
@include($function . 'functions.php');
require 'php_paypal/autoload.php';
$api = new ApiContext(
new OAuthTokenCredential(
'AVSDc7izBC4fuqegqGUeVReY-5DZuNd0QwNdw2OTWPNLlsN_47CSM0WT29RYpOlJl7O0lyDbDdrYHKNr',
'EM2By6SAnaGpayKz6iHmp1pjLtEvD7eaSEu2mkYvHnG-g21XbfBbqgDrrQsy5GivIZ3-RLKPBqmSIJdm'
)
);
$api->setConfig([
'mode' => 'sandbox',
'http.ConnectionTimeOut'=>30,
'log.LogEnabled'=>false,
'log.FileName'=>'',
'log.LogLevel'=>'FINE',
'validation.level'=>'log'
]);
use PayPal\Api\Payer;
$status = array(
'0'=>lang('nw'),
'1'=>lang('lknw'),
'2'=>lang('us'),
'3'=>lang('vr')
);
$ext = array("jpeg",'jpg','png');
$lala = array(0=>'english',1=>'arabic',2=>'french');
?>