-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
47 lines (40 loc) · 1.22 KB
/
index.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
<?php
/****************************
* Signaturmakeren 2000
*****************************
* Dette vev-skriptet er skrevet i håp om å forenkle det å
* lage e-post signaturer, samtidig som man umuliggjør feil-
* stegene de fleste tar.
*
* Som navnet signaliserer skal denne opprette signaturen din,
* helt enkelt.
*
* Akkurat denne signaturmakeren er spesiallaget for Hyperion,
* Norsk Forbund for Fantastisk Fritidsinteresser.
*
* @author Simen A. W. Olsen
* @created 26. jan 2015
*
*/
function path(){
print 'http://'. $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
}
$file = "templates/signatur.php";
$dir = scandir('settings');
$configs = array();
foreach ($dir as $key => $value) {
$config = @parse_ini_file('settings/'.$value);
if($config) $configs[$value] = $config;
}
if(isset($_POST['clean'])){
$config = parse_ini_file('settings/'.$_POST['config']);
require('templates/signatur.php');
} elseif(isset($_POST['outlook'])){
header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: Binary");
header("Content-disposition: attachment; filename=\"signatur.html\"");
$config = parse_ini_file('settings/'.$_POST['config']);
require('templates/signatur.php');
} else {
require('templates/form.php');
}