-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathblobs.php
31 lines (29 loc) · 1.06 KB
/
blobs.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
<?php
/**
* This file is a part of MyWebSQL package
* outputs scripts and stylesheets for the application
*
* @file: config/blobs.php
* @author Samnan ur Rehman
* @copyright (c) 2008-2014 Samnan ur Rehman
* @web http://mywebsql.net
* @license http://mywebsql.net/license
*/
// Descriptive name, byte header, content header, html tag replacement, function to decrypt/deserialize blob data
$blobTypes = array(
"txt" =>
array("Text/Binary", "", ""),
"jpg" =>
array("Jpeg", array("\xFF\xD8\xFF\xE0", "\xFF\xD8\xFF\xE1"), "Content-type: Image/jpeg", "<img src='#link#'/ >"),
"gif" =>
array("GIF", "\x47\x49\x46\x38\x39\x61", "Content-type: Image/gif", "<img src='#link#'/ >"),
"png" =>
array("PNG", "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A", "Content-type: Image/png", "<img src='#link#'/ >"),
"bmp" =>
array("Bitmap", "\x42\x4D\x36\x10", "Content-type: Image/bmp", "<img src='#link#'/ >"),
//"ico" =>
// array("Icon", "", ""),
"ser" =>
array("Serialized data", "", "", "", "unserialize"),
);
?>