This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_test.php
162 lines (110 loc) · 3.72 KB
/
_test.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?php
//error_reporting("E_ALL");
//require("configuration.php");
//require(PATH."/lib/classes/database-debug.class.php");
//$db = new Database();
//var_dump($db);
//echo $db->getDbName();
//echo $db->getHost();
//echo $db->connect();
/*
try {
$connection = new PDO("mysql:host=134.0.76.16;dbname=nailguna_pp", "nailguna_usr", "ngapp#2012/");
var_dump($connection);
}
catch (PDOException $e) {
print "Error: " . $e->getMessage() . "<br/>";
}
*/
//echo $db->getError();
require("lib/bootstrap.php");
//define("PATH", dirname(__FILE__));
//echo PATH;
//echo "<hr>";
//echo ROOT;
//echo "<hr>";
//echo phpversion();
//echo $utilities->getIp();
//phpinfo();
//echo "<hr>";
//var_dump($session->get("active"));
//echo "<hr>";
//var_dump($auth->isLogedIn());
//echo "<hr>";
//var_dump($session->get("userid"));
//echo "<hr>";
//var_dump($session->get("role"));
//echo "<hr>";
/*
echo session_id(). "<hr>";
foreach($_SESSION as $key => $value) {
echo $key . " = " . $value . "<br>";
}
*/
//echo "<hr>";
//var_dump($session->isLogedIn());
/**/
//$notify = $notifications->taskUpdateNotify("[email protected]", "Milan", "Project Title ".$i, "taskTitle", "taskAssignee", 1, $i, "[email protected]");
//var_dump($notify);
/*
$notify = $notifications->taskChangeNotify("[email protected]", "Milan", "Project Title ".$i, "taskTitle", "taskAssignee", 1, $i, "[email protected]");
var_dump($notify);
*/
/*
for($i=0; $i < 10; $i++) {
$notify = $notifications->taskChangeNotify("[email protected]", "Milan", "Project Title ".$i, "taskTitle", "taskAssignee", 1, $i, "[email protected]");
var_dump($notify);
}
*/
/**/
$newPassword = $auth->createHash("md5", "blank", HASH_PASSWORD_KEY);
echo $newPassword;
/*
$encrypted = $utilities->encrypt(123456879.3);
echo $encrypted;
$decrypted = $utilities->decrypt($encrypted);
echo $decrypted;
*/
/*
echo "<hr>";
$max_upload = (int)(ini_get('upload_max_filesize'));
$max_post = (int)(ini_get('post_max_size'));
$memory_limit = (int)(ini_get('memory_limit'));
$upload_mb = min($max_upload, $max_post, $memory_limit);
echo "upload_max_filesize: ".$max_upload." MB<br>";
echo "post_max_size: ".$max_post." MB<br>";
echo "memory_limit: ".$memory_limit." MB<br>";
echo "<hr>";
echo "max file size: ".$upload_mb." MB<br>";
*/
/*
require("lib/classes/phpmailer/class.phpmailer.php");
try {
$mail = new PHPMailer(); //New instance, with exceptions enabled
$body = "<body>Hello</body>";
$body = preg_replace('/\\\\/','', $body); //Strip backslashes
$mail->IsSMTP(); // tell the class to use SMTP
$mail->SMTPAuth = false; // enable SMTP authentication
$mail->Port = 25; // set the SMTP server port
$mail->Host = "localhost"; // SMTP server
$mail->Username = "nailguna"; // SMTP server username
$mail->Password = "28Nail$"; // SMTP server password
//$mail->IsSendmail(); // tell the class to use Sendmail
$mail->AddReplyTo("[email protected]","NailGun");
$mail->From = "[email protected]";
$mail->FromName = "First Last";
$to = "[email protected]";
$mail->AddAddress($to);
$mail->Subject = "First PHPMailer Message";
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->WordWrap = 80; // set word wrap
$mail->MsgHTML($body);
$mail->IsHTML(true); // send as HTML
$mail->Send();
echo 'Message has been sent.';
} catch (phpmailerException $e) {
echo $e->errorMessage();
}
*/
?>
<!--<img src="lib/classes/timthumb/timthumb.php?src=../../../uploads/project/2/13/1354725279-wireframes3-home.jpg&h=95&zc=1">-->