Vraagje over Achtergrondkleuren PHP

Gestart doorKeizz43 reacties41 weergaven

44 berichten · pagina 3 van 3

Keizz

Lid · Topicstarter

Berichten
283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Noouu , Niet helemaal sadley
Heb dit:
<title>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$layout_title[/COLOR][COLOR= #007700];[/COLOR] ?></title>
    <!-- Tot dit -->
    <style type="text/css">
    img {
        border: 0px;
    }
    body {
        background: url (http://www.radiovandstad.hthosting.nl/8-minecraft-wallpaper.jpg);
        color: #787475;
        font-family: Arial;
        font-size: 14px;
    }
    a, a:visited, a:active {
        color: #787475;
        text-decoration: underline;
    }
    a:hover {
        color: #787475;
        text-decoration: none;
    }
    #centered {
        width: 900px;
        margin: 0 auto;
        position: relative;
    }
    #logo {
        font-size: 40px;
        color: #fff;
    }
    #left {
        background: #FFF;
        border: 1px #5C5A5A solid;
        width: 185px;
        float: left;
        overflow: hidden;
        padding-left: 5px;
    }
    #right {
        background: #FFF;
        border: 1px #5C5A5A solid;
        width: 681px;
        margin-left: 10px;
        float: left;
        overflow: hidden;
        padding-left: 5px;
        padding-bottom: 5px;
    }


En Nog Steeds:
http://www.radiovandstad.hthosting.nl/Eeros/
0
Berichten
251
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kun je even wat meer broncode posten?
Als je aan je EEROS nog niet teveel verandert hebt, post dit

public function boven($pagina)
{
//ALLES HIERTUSSEN OOK
}
0
Keizz

Lid · Topicstarter

Berichten
283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sorry wist niet wat je Bedoelde Hier is alles..
Spoiler tonen

/**
* @copyright 2010 Milan Drossaerts
* @author Milan Drossaerts [http://www.dynaspan-media.nl]
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice and this (list of) condition(s).
*
* @info Layout aanpassen? Zie regel 786
*/

//MySQL Instellingen:

$_CONFIG[MySQL_gebruiker] = [kniperdeknip];
$_CONFIG[MySQL_wachtwoord] = [kniperdeknip];
$_CONFIG[MySQL_host] = localhost;
$_CONFIG[MySQL_database] = [kniperdeknip];

//Website instellingen:

$_CONFIG[Site_naam] = FamousFM; //Naam van je site. Deze variabele wordt gebruikt voor emails
$_CONFIG[Site_url] = http://www.radiovandstad.hthosting.nl/Eeros; //Volledige url incl. http:// en eindslash
$_CONFIG[Site_email] = info@FamousFM.be; //Email adres van je site.
$_CONFIG[Site_keywords] = EERos, Ledensysteem, cms, opensource; //SEO optie, keywords van de site
$_CONFIG[Site_description] = EERos. Het opensource ledensysteem.; //SEO optie, description van de site

/** VANAF HIER HOEFT NIKS MEER AANGEPAST TE WORDEN TENZIJ JE DE LAYOUT WILT AANPASSEN */

define(__SECURITY__, 1);

if (file_exists(install.php))
{

include(install.php);

die();

}

$rangen = array();
$rangen[0] = Lid;
$rangen[1] = Moderator;
$rangen[2] = Beheerder;
$rangen[3] = Verbannen;

session_start();

//----------------------------------------[CORE CLASS]
class core {

var $fouten = array();
var $aantal_fouten = 0;

public function add_fout($fout)
{

$this->fouten[] = $fout;

$this->aantal_fouten++;

}

public function weergeef_fouten()
{

echo
    ;

    foreach($this->fouten as $show_fout)
    {

    echo
  • . $show_fout .
  • ;

    }

    echo
;

}

public function aantal_fouten()
{

return $this->aantal_fouten;

}

public function verwijder_fouten()
{

$this->fouten = array();

}

public function entities($string)
{

return htmlentities($string);

}

public function ubb($string)
{

global $_CONFIG;

$string = nl2br($string);

$string = preg_replace("#{6}|[a-z-]+)](.*?)#si", "2", $string);
$string = preg_replace("#
(.*?)
#si", "1", $string);
$string = preg_replace("#(.*?)#si", "1", $string);
$string = preg_replace("#(.*?)#si", "1", $string);
$string = preg_replace("#(.*?)#si", "1", $string);
$string = preg_replace("#(.*?)#si", "1", $string);
$string = preg_replace("#(.*?)#si", "1", $string);
$string = preg_replace("#(.*?)#si", "1", $string);
$string = preg_replace("#
(.*?)
#si", "1", $string);
$string = preg_replace("#
Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt.
#si", "Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt.", $string);
$string = preg_replace("#
(.*?):
(.*?)[/quote]#si", "1:
2
", $string);
$string = preg_replace("#(.*?)#si", "1", $string);
$string = preg_replace("#(.*?)[/url]#si", "2", $string);
$string = preg_replace("#(^|[ nrt])www.([a-z-0-9]+).([a-z]{2,4})($|[ nrt])#i", "1www.2.34", $string);
$string = preg_replace("#(^|[ nrt])(((ftp://)|(http://)|(https://))([a-z0-9-.,?!%*_#:;~&$@/=+]+))#i", "12", $string);
$string = preg_replace("#(^|[ nrt])([a-z0-9-_.]+?)@([w-]+.([w-.]+.)?[w]+)#i", "12@3", $string);

$string = str_replace(smile, Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt., $string);
$string = str_replace(biggrin, Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt., $string);
$string = str_replace(biggrin, Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt., $string);
$string = str_replace(sadley, Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt., $string);
$string = str_replace(wink, Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt., $string);
$string = str_replace(redface, Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt., $string);
$string = str_replace(redface, Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt., $string);
$string = str_replace(yummie, Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt., $string);
$string = str_replace(yummie, Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt., $string);

return $string;

}

public function show_ubb()
{

return  
 
 
 
Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt.
);" />;

}

public function show_smilies()
{

return smile)">Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt. 
wink);">Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt. 
biggrin);">Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt. 
sadley);">Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt. 
redface);">Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt. 
yummie);">Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt. ;

}

public function f_date($datum)
{

$return = strftime("%e %b om %H:%M", strtotime($datum));

return $return;

}

}

$core = new core;

//Verwijder dit aub niet: Dit wordt gebruik om de activiteit van EERos te checken.
//Alleen de url van de website wordt opgeslagen, voor de rest niks.
//Wanneer je dit toch weg wilt, heeft dit GEEN invloed op het gebruik van EERos.
@file_get_contents(http://www.eeros.nl/get_data/from_out_systems/add_data.php?url= . $_SERVER[HTTP_HOST]);

//----------------------------------------[MYSQL CLASS]
class mysql
{

/**
* @package Database class
*
* @version 0.9.0
* @author Rik S. [http://www.MyWerewolf.nl / http://www.Just-rik.nl]
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice and this (list of) condition(s).
* @copyright Rik S.
*/

public $QueryTimer;
public $QueryCount;
public $QueryTimeArray = array();
public $QueryQueryArray = array();

public function __construct($DbHost = NULL, $DbUsername = NULL, $DbPassword = NULL, $DbDatabase = NULL)
{
if($DbHost != NULL && $DbUsername != NULL && $DbPassword != NULL && $DbDatabase != NULL)
{
$this->connect($DbHost, $DbUsername, $DbPassword, $DbDatabase);
}
}

public function connect($DbHost = NULL, $DbUsername = NULL, $DbPassword = NULL, $DbDatabase = NULL)
{
try
{
@$DbConnect = mysql_connect($DbHost, $DbUsername, $DbPassword);
if($DbConnect == FALSE)
{
$ErrorStr = No connection to database;
$ErrorStr .=
Host: . $DbHost .
;
$ErrorStr .= Username: . $DbUsername .
;
throw new Exception($ErrorStr);
}
else
{
if(@mysql_select_db($DbDatabase, $DbConnect) == FALSE)
{
$ErrorStr = Could not select Database;
$ErrorStr .=
Host: . $DbHost .
;
$ErrorStr .= Username: . $DbUsername .
;
$ErrorStr .= Database: . $DbDatabase;
throw new Exception($ErrorStr);
}
else
{
return TRUE;
}
}
}
catch(Exception $e)
{
$this->error($e);
}
}

public function query($input = NULL)
{
try
{
if($input != NULL)
{
$TimeStart = microtime();
$sQuery = mysql_query($input);

if($sQuery !== FALSE)
{
$TimeTotal = microtime() - $TimeStart;
$this->QueryTimer += $TimeTotal;
$this->QueryTimeArray[] = $TimeTotal;
$this->QueryQueryArray[] = $input;
$this->QueryCount++;
return $sQuery;
}
else
{
$ErrorString = Query failed to execute
;
$ErrorString .= mysql_error() .
;
$ErrorString .= Query: . $input;
throw new Exception($ErrorString);
}
}
else
{
throw new Exception(Query is empty);
}
}
catch(Exception $e)
{
$this->error($e);
}
}

public function num_rows($resource = NULL)
{
try
{
if($resource != NULL)
{
if(is_resource($resource))
{
return mysql_num_rows($resource);
}
else
{
throw new Exception(Input is not a resource);
}
}
else
{
throw new Exception(Empty resource);
}
}
catch(Exception $e)
{
$this->error($e);
}
}

public function fetch($resource = NULL, $type = assoc)
{
try
{
if($resource != NULL)
{
if(is_resource($resource))
{
if($type == assoc)
{
return mysql_fetch_assoc($resource);
}
elseif($type == array)
{
return mysql_fetch_array($resource);
}
elseif($type == object)
{
return mysql_fetch_object($resource);
}
else
{
throw new Exception(Invalid type
Accepted values: assoc, array, object);
}
}
else
{
throw new Exception(Input is not a resource);
}
}
else
{
throw new Exception(Empty resource);
}
}
catch(Exception $e)
{
$this->error($e);
}
}

public function data_seek ($resource = NULL, $row = NULL)
{
try{
if($resource != NULL)
{
if($row == NULL)
{
return mysql_data_seek($resource, 0);
}
elseif(is_numeric($row))
{
if($row >= $this->num_rows($resource) || $row < 0)
{
throw new Exception(Row number is outside the range of 0 - . $this->num_rows($resource));
}
else
{
return mysql_data_seek($resource, $row);
}
}
else
{
throw new Exception(Invalid row, row is not a number);
}
}
else
{
throw new Exception(Empty resource);
}
}
catch(Exception $e)
{
$this->error($e);
}
}

public function affected($resource = NULL)
{
try
{
if(@mysql_affected_rows($resource) == FALSE)
{
throw new Exception(No query found with update or delete statements);
}
else
{
return mysql_affected_rows($resource);
}
}
catch(Exception $e)
{
$this->error($e);
}
}

public function insert_id($resource = NULL)
{
if($resource != NULL)
{
return mysql_insert_id($resource);
}
else
{
return mysql_insert_id();
}
}

public function escape($input = NULL)
{
try
{
if($input != NULL)
{
return mysql_real_escape_string($input);
}
else
{
throw new Exception(Empty string);
}
}
catch(Exception $e)
{
$this->error($e);
}
}

public function querycount()
{

return $this->QueryCount == 0 ? no : $this->QueryCount;
}

public function querytime()
{

return $this->QueryTimer == 0 ? no : $this->QueryTimer;
}

public function querytime_array($input = NULL)
{
try
{
if(count($this->QueryQueryArray) != 0)
{
if($input == NULL)
{
$QueryString = ;
for($i = 0; $i < count($this->QueryQueryArray); $i++)
{
$QueryString .= $this->QueryQueryArray[$i] . took . $this->QueryTimeArray[$i] . seconds
;
}
return $QueryString;
}
else
{
if(is_numeric($input))
{
if(isset($this->QueryQueryArray[$input]))
{
return $this->QueryQueryArray[$input] . took . $this->QueryTimeArray[$input] . seconds
;
}
else
{
throw new Exception(Query # . $input . does not exist);
}
}
else
{
throw new Exception(Invalid input, only numbers allowed);
}
}
}
else
{
return No querys executed;
}
}
catch(Exception $e)
{
$this->error($e);
}
}

private function error($e)
{
if (is_object($e))
{
$v = sprintf(Line: %s
File:
%s
Request-URI
%s
Error:
%s, $e->getLine(), $e->getFile(), $_SERVER[REQUEST_URI], $e->getMessage());
}
elseif (is_string($e)) {
$v = $e;
}
echo sprintf(
%s

, $v);
exit;
}

public function real_escape($string)
{

return mysql_real_escape_string($string);

}

}

$mysql = new mysql;

$mysql->connect($_CONFIG[MySQL_host], $_CONFIG[MySQL_gebruiker], $_CONFIG[MySQL_wachtwoord], $_CONFIG[MySQL_database]);

//----------------------------------------[LEDEN CLASS]
class leden {

public function is_ingelogd()
{

if (isset($_SESSION[u_Id]) && !empty($_SESSION[u_Id]) && isset($_SESSION[u_Gebruikersnaam]) && !empty($_SESSION[u_Gebruikersnaam]))
{

return true;

}else{

return false;

}

}

public function getName($id)
{

global $core;
global $mysql;

$gQuery = $mysql->query("SELECT gebruikersnaam FROM leden WHERE id = " . $mysql->real_escape($id) . "");

if ($mysql->num_rows($gQuery) == 0)
{

//return Verwijderd lid;

}else{

$gFetch = $mysql->fetch($gQuery);

return $core->entities($gFetch[gebruikersnaam]);

}

}

public function getId()
{

return $_SESSION[u_Id];

}

public function getRang($id, $f = FALSE)
{

global $rangen;

global $mysql;

$rQuery = $mysql->query("SELECT rang FROM leden WHERE id = " . $mysql->real_escape($id) . "");

if ($mysql->num_rows($rQuery) == 0)
{

return Verwijderd lid;

}else{

$rFetch = $mysql->fetch($rQuery);

if ($f == TRUE)
{

return $rFetch[rang];

}else{

return $rangen[$rFetch[rang]];

}

}

}

public function getMessages($id)
{

global $mysql;

$rQuery = $mysql->query("SELECT 1 FROM priveberichten WHERE voor = " . $mysql->real_escape($id) . " AND gelezen = 0");

return $mysql->num_rows($rQuery);

}

public function getForumposts($id)
{

global $mysql;

$aQuery = $mysql->query("SELECT 1 FROM reacties WHERE poster = " . $mysql->real_escape($id) . "");

return $mysql->num_rows($aQuery);

}

public function online($id)
{

global $mysql;

$oQuery = $mysql->query("SELECT 1 FROM leden WHERE DATE_ADD(laatst_online, INTERVAL 300 SECOND) > NOW()
AND id = " . $mysql->real_escape($id) . "");

if ($mysql->num_rows($oQuery) == 0)
{

return 0;

}else{

return 1;

}

}

}

$leden = new leden;

//Kijken of lid verbannen is
if ($leden->is_ingelogd())
{

$mysql->query("UPDATE leden SET laatst_online = NOW() WHERE id = " . $mysql->real_escape($leden->getId()) . "");

if (!isset($_SESSION[hash]))
{

$_SESSION[hash] = sha1(mt_rand(1111,9999));

}

if ($leden->getRang($leden->getId(), TRUE) == 3)
{

session_destroy();

header("Location: ?p=index&v");

die();

}

}

//----------------------------------------[CMS CLASS]
class cms {

public function showMenu($type)
{

global $mysql;
global $core;
global $_CONFIG;

$pQuery = $mysql->query("SELECT * FROM cms WHERE soort = " . $mysql->real_escape($type) . " OR soort = 3 AND menu = 1");

while($pFetch = $mysql->fetch($pQuery))
{

$returned .= . $core->entities($pFetch[pagina_titel]) .
;

}

return $returned;

}

public function getInstelling($id)
{

global $mysql;

$iQuery = $mysql->query("SELECT waarde FROM instellingen WHERE id = " . $mysql->real_escape($id) . "");
$iFetch = $mysql->fetch($iQuery);

return $iFetch[waarde];

}

}

$cms = new cms;

//----------------------------------------[LAYOUT CLASS]
class layout {

public function menu() {

global $leden;
global $cms;
global $_CONFIG;

if ($leden->is_ingelogd())
{

if ($cms->getInstelling(1) == 1)
{

$forum = Forum
;

}else{

$forum = ;

}

if ($cms->getInstelling(2) == 1)
{

$priveberichten = Priveberichten ( . $leden->getMessages($leden->getId()) . )
;

}else{

$priveberichten = ;

}

//Menu voor ingelogde leden

echo Home

Mijn profiel

Nieuws

. $priveberichten .
. $forum;

echo $cms->showMenu(2);

if ($leden->getRang($leden->getId(), TRUE) == 2)
{

echo Beheer
;

}
echo Uitloggen;

}else{

//Menu voor mensen die niet ingelogd zijn

echo Home

Registreren

Inloggen

Nieuws
;

echo $cms->showMenu(1);

}

}

/** HIER KOMT LAYOUT TOT EN MET CONTENT
VOOR MENU GEBRUIK: menu(); ?>
VOOR PAGINA TITEL GEBRUIK:
VOOR KEYWORDS GEBRUIK:
VOOR DESCRIPTION GEBRUIK:
*/

public function boven($layout_title)
{

global $_CONFIG;

?>












<?php echo $layout_title; ?>





FamousFM
Menu
menu(); ?>

}

/** HIER KOMT LAYOUT VANAF CONTENT
VOOR MENU GEBRUIK: menu(); ?>
*/

public function onder()
{

?>

}

}

$layout = new layout;

?>[/spoiler]
0
Berichten
3.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Keizz schreef:
Eerdere citaten tonen
Alemaalte schreef:
Ik bedoelde ik weet nergens waar je je foto kan uploaden in CSS
CSS is een opmaaktaal en verder niks, je kunt er geen bestanden uploaden, die moet je ergens anders uploaden en er vanuit CSS naar verwijzen met wat Marjolein zei
0
Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
body {
        background-image: url (http://www.radiovandstad.hthosting.nl/8-minecraft-wallpaper.jpg);
        color: #787475;
        font-family: Arial;
        font-size: 14px;
    }


Het moet background-image zijn? emo
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Reinier schreef:
Het moet background-image zijn? emo
background en background-image kan allebei hoor emoAlleen bij background-image kan je geen kleur doen maar andersom wel yummie
0
Keizz

Lid · Topicstarter

Berichten
283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Marjolein schreef:
Eerdere citaten tonen
Reinier schreef:
Het moet background-image zijn? emo
background en background-image kan allebei hoor emoAlleen bij background-image kan je geen kleur doen maar andersom wel yummie
Dus je zegt even in kort: je kan geen Afbeelding van je zelf plaatsen?
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
tuurlijk kan dat wel, ik corrigeer alleen wat Reinier zegt. Is het nog steeds niet gelukt dan?
0
Keizz

Lid · Topicstarter

Berichten
283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nee het is nog steeds jammer genoeg NIET gelukt hier is me Config:7
Spoiler tonen
<?php echo $layout_title; ?>

0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je hebt ook 2 keer body in je css staan
0
Keizz

Lid · Topicstarter

Berichten
283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nee er iets verkeerd gegaan met het Kopieren en Plakken smile
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
verander body eens naar dit:

body {
 background-image: url (http://www.radiovandstad.hthosting.nl/8-minecraft-wallpaper.jpg);
 color: #787475;
 font-family: Arial;
 font-size: 14px;
 width: 100%;
 height: 100%;
 }
0
Keizz

Lid · Topicstarter

Berichten
283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nou Marjolein , Bedankt voor al je verlore tijd , ik geef het op het zal tog nooit lukken.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren