FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Test/tools/img.php at master · JavaDevl/Test · GitHub
JavaDevl
/
Test
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Test
/
tools
/
img.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (17 loc) · 569 Bytes
Breadcrumbs
Test
/
tools
/
img.php
Copy path
File metadata and controls
22 lines (17 loc) · 569 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of img
*
* @author Yasha
*/
class
img {
static
function
blobtoimage
(
$
blob
,
$
title
,
$
class
)
{
return
'
<img class="
'
.
$
class
.
'
" src="data:image/png;base64,
'
.
base64_encode
(
$
blob
) .
'
" title=
'
.
$
title
.
'
>
'
;}
static
function
blobtoimageurl
(
$
blob
,
$
title
,
$
url
)
{
return
'
<a href="
'
.
$
url
.
'
" class="logourl" targer="_blank"><img class="logo" src="data:image/png;base64,
'
.
base64_encode
(
$
blob
) .
'
" title=
'
.
$
title
.
'
/></a>
'
;}
}
?>
Back
|
FazBrowse Home
|
New Git URL