Commit 708440ce authored by Eric Laufer's avatar Eric Laufer

Bugfix und Fehlerhafte Function entpfertnt

parent dbd5094f
......@@ -270,12 +270,6 @@ function sectodays($secs) {
return 'noch ' . $days . ' Tage, ' . $hours . ' Std. und ' . $mins . ' Min.';
}
function imageToBase65 ( $file = NULL ) {
$type = explode(".",$file);
$content = file_get_contents ( $file );
return 'data:image/'.$type[1].';base64,'.base64_encode( $content );
}
function getURL($url,$post = 0){
$curl = curl_init();
curl_setopt($curl,CURLOPT_URL,$url);
......@@ -300,4 +294,18 @@ function CheckLogin(){
}
}
}
function IMGtoBase64 ( $file = NULL, $ordner = NULL ) {
if($file != NULL){
$type = explode(".",$file);
if($ordner == NULL){
$content = file_get_contents ( $_SERVER['DOCUMENT_ROOT'].'/images/userava/'.$file );
}else{
$content = file_get_contents ( $_SERVER['DOCUMENT_ROOT'].'/images/'. $ordner .'/'.$file );
}
return 'data:image/'.$type[1].';base64,'.base64_encode( $content );
}else{
return '';
}
}
?>
<link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css">
<?php
session_start();
?>
<link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css">
<?php
require_once('../lib/db_config.php');
require_once ('../lib/class/db.class.php');
require_once('../lib/functions.lib.php');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment