Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PSW_II_PARIWISATA_TRANSPORTASI
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Proyek_PSW_II_PARIWISATA
PSW_II_PARIWISATA_TRANSPORTASI
Commits
25d7a719
Commit
25d7a719
authored
Jun 06, 2020
by
11319009_Pratiwi Sibarani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
87da8e25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
captcha.php
transportasi/captcha.php
+13
-0
No files found.
transportasi/captcha.php
0 → 100644
View file @
25d7a719
<?php
session_start
();
$captcha
=
substr
(
str_shuffle
(
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
),
0
,
4
);
$_SESSION
[
'captcha'
]
=
$captcha
;
$gambar
=
imagecreate
(
100
,
100
);
$wk
=
imagecolorallocate
(
$gambar
,
255
,
222
,
173
);
$wt
=
imagecolorallocate
(
$gambar
,
0
,
0
,
0
);
$rand
=
rand
(
1
,
60
);
imagefilledrectangle
(
$gambar
,
0
,
0
,
50
,
20
,
$wk
);
imagestring
(
$gambar
,
10
,
$rand
,
$rand
,
$captcha
,
$wt
);
imagejpeg
(
$gambar
);
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment