Skip to content

Commit 0a4d6e4

Browse files
committed
first commit
0 parents  commit 0a4d6e4

File tree

202 files changed

+219555
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+219555
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google652acdd7f0fefc55.html

.htaccess

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
3+
# php -- BEGIN cPanel-generated handler, do not edit
4+
# Set the “ea-php70” package as the default “PHP” programming language.
5+
<IfModule mime_module>
6+
AddHandler application/x-httpd-ea-php70 .php .php7 .phtml
7+
</IfModule>
8+
# php -- END cPanel-generated handler, do not edit

README.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
jQueryGantt
2+
===========
3+
Persian jQuery Gantt editor has been written by Hassan Mousavi
4+
This is a project about gantt chart and work with persian calendar and persian datetime.
5+
6+
<img src="https://mousavidv.ir/img/pgant.png" alt="Pgant Hassan Mousavi" border="0" />
7+
8+
These are some key features:
9+
* jQuery based 3.2
10+
* MIT licensed: you can reuse everywhere
11+
* JSON import-export
12+
* internationalizable
13+
* manage task status –> project workflow
14+
* manage dependencies
15+
* manage assignments (resources, roles efforts)
16+
* server synchronization ready
17+
* full undo-redo support
18+
* cross browser (at least for recent versions)
19+
* keyboard editing support
20+
* SVG visual editor
21+
* print friendly
22+
* collapsible branches
23+
* critical path
24+
* milestones, progress etc.
25+
* zoom
26+
27+
28+
29+
30+

captchaphp/calledcaptcha.php

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php session_start();
2+
3+
// generate random number and store in session
4+
$randomnr = rand(10000, 99999);
5+
$_SESSION['randomnr2'] = md5($randomnr);
6+
//generate image
7+
$im = imagecreatetruecolor(90, 30);
8+
//colors:
9+
$white = imagecolorallocate($im, 0, 0, 0);
10+
$grey = imagecolorallocate($im, 128, 128, 128);
11+
$black = imagecolorallocate($im, 204, 204, 204);
12+
imagefilledrectangle($im, 0, 0, 200, 30, $black);
13+
14+
// ------------- your fontname -------------
15+
// example font http://www.webpagepublicity.com/free-fonts/a/Anklepants.ttf
16+
$font = 'font2.ttf';
17+
18+
//draw text:
19+
imagettftext($im, 25, 0, 22, 24, $grey, $font, $randomnr);
20+
21+
imagettftext($im, 25, 0, 15, 26, $white, $font, $randomnr);
22+
23+
// prevent client side caching
24+
header("Expires: Wed, 1 Jan 1997 00:00:00 GMT");
25+
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
26+
header("Cache-Control: no-store, no-cache, must-revаlidate");
27+
header("Cache-Control: post-check=0, pre-check=0", false);
28+
header("Pragma: no-cache");
29+
30+
//send image to browser
31+
header ("Content-type: image/gif");
32+
imagegif($im);
33+
imagedestroy($im);
34+
?>

captchaphp/font2.ttf

161 KB
Binary file not shown.

captchaphp/font2.ttf~Zone.Identifier

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[ZoneTransfer]
2+
ZoneId=3

composer.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "robicch/jquery-gantt",
3+
"description": "Twproject Gantt editor is a free online tool for creating and sharing Gantts",
4+
"type": "library",
5+
"license": "MIT",
6+
"keywords": ["jquery","gantt"],
7+
"homepage": "https://github.com/robicch/jQueryGantt",
8+
"require": {}
9+
}

config.php

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
$servername = "localhost";
3+
$username = "pgant_admin";
4+
$password = "hassanest50";
5+
$dbname = "pgant_db";
6+
7+
// Create connection
8+
$mysqli = new mysqli($servername, $username, $password, $dbname);
9+
// Check connection
10+
if ($mysqli->connect_error) {
11+
die("Connection failed: " . $mysqli->connect_error);
12+
}else{
13+
14+
// Change character set to utf8
15+
mysqli_set_charset($mysqli,"utf8");
16+
17+
}
18+
19+
20+
?>

css/persianDatepicker-default.css

+198
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
2+
@keyframes start {
3+
from {
4+
transform: scale(.5);
5+
}
6+
to {
7+
transform: scale(1);
8+
}
9+
}
10+
11+
@-webkit-keyframes start {
12+
from {
13+
-webkit-transform: scale(.5);
14+
}
15+
to {
16+
-webkit-transform: scale(1);
17+
}
18+
}
19+
.rtl{direction:rtl}
20+
.pdp-default {
21+
position: absolute;
22+
direction: rtl;
23+
color: #555;
24+
box-shadow: 1px 1px 8px 1px rgba(0, 0, 0, 0.19);
25+
z-index: 99999;
26+
}
27+
28+
.pdp-default ::-webkit-scrollbar-track
29+
{
30+
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
31+
background-color: #F5F5F5;
32+
}
33+
34+
.pdp-default ::-webkit-scrollbar
35+
{
36+
width: 15px;
37+
background-color: #F5F5F5;
38+
}
39+
40+
.pdp-default ::-webkit-scrollbar-thumb
41+
{
42+
background-color: #444444;
43+
}
44+
.pdp-default ::selection{
45+
color: #67cdcc;
46+
}
47+
48+
.pdp-default .pdp-header{
49+
background-color: #ffffff;
50+
border-top: 2px solid #999;
51+
border-left: 1px solid #999;
52+
border-right: 1px solid #999;
53+
border-bottom: none;
54+
padding: 2px;
55+
font-weight: bold;
56+
}
57+
58+
.pdp-default .yearSelect{
59+
overflow-y: auto;
60+
direction: ltr;
61+
}
62+
63+
.pdp-default .monthSelect li.disableMonth, .pdp-default .monthSelect li.disableMonth:hover{
64+
color: #bbb;
65+
background: #eee;
66+
cursor: not-allowed;
67+
}
68+
69+
.pdp-default .yearSelect, .pdp-default .monthSelect{
70+
font:normal 12px Tahoma;
71+
background: #f9f9f9;
72+
border: 1px solid #ccc;
73+
list-style: none;
74+
position: absolute;
75+
padding: 0;
76+
width: 99.6%;
77+
text-align: center;
78+
z-index: 9999;
79+
animation: start 0.2s;
80+
-webkit-animation: start 0.2s;
81+
}
82+
.pdp-default .selected{
83+
background: #15a6eb;
84+
color: #ffffff;
85+
}
86+
87+
.pdp-default .yearSelect li, .pdp-default .monthSelect li {
88+
padding: 1px;
89+
cursor: default;
90+
display: inline-table;
91+
text-align: center;
92+
border: 1px dotted #ddd;
93+
}
94+
.pdp-default .yearSelect li:hover, .pdp-default .monthSelect li:hover {
95+
background: #FF9933;
96+
color: #ffffff;
97+
border-color: #FF7700;
98+
}
99+
100+
.pdp-default .nextArrow{
101+
right:0;
102+
}
103+
.pdp-default .prevArrow{
104+
left:0;
105+
}
106+
.pdp-default .monthYear{
107+
width: 80%;
108+
margin: 0 auto;
109+
text-align: center;
110+
cursor: pointer;
111+
}
112+
113+
.pdp-default .nextArrow, .pdp-default .prevArrow{
114+
cursor: pointer;
115+
position: absolute;
116+
top:1px;
117+
padding: 2px;
118+
}
119+
120+
.pdp-default .nextArrow:hover, .pdp-default .prevArrow:hover{
121+
color: #0073ea;
122+
}
123+
124+
.pdp-default .cell {
125+
display: inline-block;
126+
cursor: default;
127+
text-align: center;
128+
}
129+
130+
/* Days of the week */
131+
.pdp-default .dows {
132+
background: #5F5D5D;/*#006fe0;*/
133+
color: #fff;
134+
}
135+
.pdp-default .dow {
136+
font: bold 14px 'helvetica';
137+
border: 1px solid #5F5D5D;
138+
}
139+
140+
.pdp-default .days{
141+
background-color: #ffffff;
142+
border: 1px solid #999;
143+
border-top: none;
144+
font: normal 12px Tahoma;
145+
}
146+
147+
.pdp-default .day{
148+
border: 1px solid #f1f1f1;
149+
}
150+
151+
.pdp-default .day:hover{
152+
background: #f3f3f3;
153+
border: 1px solid #bbb;
154+
border-radius: 2px;
155+
}
156+
.pdp-default .selday, .pdp-default .selday:hover{
157+
background: #eadaa6;
158+
border-color: #eb5b04;
159+
}
160+
161+
.pdp-default .friday{
162+
color: #f38;
163+
}
164+
165+
.pdp-default .today{
166+
color: #fff;
167+
background: #0073ea;
168+
}
169+
.pdp-default .today:hover{
170+
color: #fff;
171+
background: #0073ea;
172+
}
173+
174+
.pdp-default .disday, .pdp-default .disday:hover{
175+
color: #B7B5B5;
176+
background: #F1F1F1;
177+
cursor: not-allowed;
178+
}
179+
180+
.pdp-default .nul{
181+
border: 1px solid #f1f1f1;
182+
background: #f1f1f1;
183+
}
184+
185+
.pdp-default .pdp-footer{
186+
background: #999;
187+
font: normal 12px Tahoma;
188+
text-align: center;
189+
height: 17px;
190+
}
191+
.pdp-default .pdp-footer .goToday{
192+
color: #f0f0f0;
193+
text-decoration: none;
194+
}
195+
.pdp-default .pdp-footer .goToday:hover{
196+
color: #ffffff;
197+
text-decoration: overline;
198+
}

forgot.php

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
session_start();
3+
include('config.php');
4+
5+
$email=$_POST['email'];
6+
7+
8+
9+
$dbresult=$mysqli->query("select * from tbl_user where email='$email'");
10+
if($dbresult->num_rows >0){
11+
if(isset($_POST['capcode']) && md5($_POST['capcode'])==$_SESSION['randomnr2'])
12+
{
13+
14+
$User = mysqli_fetch_assoc($dbresult);
15+
16+
$EmailTo = $email;
17+
$Subject = "رمز عبور فراموش شده pgant.ir";
18+
19+
// prepare email body text
20+
$Body .= "با سلام";
21+
$Body .= "\n";
22+
$Body .= "رمز عبور شما عبارت است از : ";
23+
$Body .= "\n";
24+
25+
$Body .= $User['password'];
26+
$Body .= "\n";
27+
$Body .= "لطفا در حفظ آن کوشا باشید";
28+
29+
$Body .= "\n";
30+
$Body .= "با تشکر";
31+
$Body .= "\n";
32+
33+
34+
35+
// send email
36+
$success = mail($EmailTo, $Subject, $Body, "From:[email protected]");
37+
38+
if ($success){
39+
$json = array("status" => true, "msg" => "رمز عبور به ایمیل شما با موفقیت ارسال شد");
40+
}else{
41+
$json = array("status" => false, "msg" => "متاسفانه ایمیل فراموشی رمز عبور ارسال نشد");
42+
}
43+
44+
45+
46+
47+
}else{
48+
$json = array("status" => false, "msg" => "کد امنیتی اشتباه است");
49+
50+
}
51+
}else{
52+
$json = array("status" => false, "msg" => "کاربری با این ایمیل وجود ندارد");
53+
54+
}
55+
56+
57+
header('Content-type: application/json');
58+
echo json_encode($json);
59+
60+
?>

0 commit comments

Comments
 (0)