set_magic_quotes_runtime() is deprecated error

Gestart doorDesire39 reacties224 weergaven

40 berichten · pagina 3 van 3

Desire

Lid · Topicstarter

Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Tof zeg, vraag je **relavante** code, en dan krijg je alles?
Zo raak ik helaas niet meer echt gemotiveerd om verder te helpen.
toevoeging op 19 mei 2012, 17:40:28:
Is dit eigenlijk wel de config? Een config is toch een configuratie bestand? Niet een hele class?

Heb de classes ook in de config.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Desire schreef:
Eerdere citaten tonen
Aarclay schreef:
Tof zeg, vraag je **relavante** code, en dan krijg je alles?
Zo raak ik helaas niet meer echt gemotiveerd om verder te helpen.

toevoeging op 19 mei 2012, 17:40:28:
Is dit eigenlijk wel de config? Een config is toch een configuratie bestand? Niet een hele class?

Heb de classes ook in de config.
Waarom? Klinkt als een ontwerpfout....
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Aarclay schreef:
Eerdere citaten tonen
Desire schreef:
Eerdere citaten tonen
Aarclay schreef:
Tof zeg, vraag je **relavante** code, en dan krijg je alles?
Zo raak ik helaas niet meer echt gemotiveerd om verder te helpen.

toevoeging op 19 mei 2012, 17:40:28:
Is dit eigenlijk wel de config? Een config is toch een configuratie bestand? Niet een hele class?

Heb de classes ook in de config.
Waarom? Klinkt als een ontwerpfout....
One2xs is niet voor niets een site voor beginnende webmasters.
0
Desire

Lid · Topicstarter

Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Eerdere citaten tonen
Desire schreef:
Eerdere citaten tonen
Aarclay schreef:
Tof zeg, vraag je **relavante** code, en dan krijg je alles?
Zo raak ik helaas niet meer echt gemotiveerd om verder te helpen.

toevoeging op 19 mei 2012, 17:40:28:
Is dit eigenlijk wel de config? Een config is toch een configuratie bestand? Niet een hele class?

Heb de classes ook in de config.
Waarom? Klinkt als een ontwerpfout....
Ik vind dit makkelijker en overzichtelijker.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Kan ik me niet echt voorstellen. Maak dan liever bijv. een core.inc.class.php aan om de configuratie van de core te scheiden... smile

toevoeging op 19 mei 2012, 19:58:08:
Rik schreef:
Eerdere citaten tonen
Aarclay schreef:
Eerdere citaten tonen
Desire schreef:
Eerdere citaten tonen
Aarclay schreef:
Tof zeg, vraag je **relavante** code, en dan krijg je alles?
Zo raak ik helaas niet meer echt gemotiveerd om verder te helpen.

toevoeging op 19 mei 2012, 17:40:28:
Is dit eigenlijk wel de config? Een config is toch een configuratie bestand? Niet een hele class?

Heb de classes ook in de config.
Waarom? Klinkt als een ontwerpfout....
One2xs is niet voor niets een site voor beginnende webmasters.
Ja, dat wisten we al?
0
Desire

Lid · Topicstarter

Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Inmiddels is die fout opgelost, alleen ik zit nu met de volgende fout.

In de config.php heb ik $sitenaam en $title.

Alleen als ik die invoeg bij een echo dan werkt ie niet. Ik krijg verder ook geen fout, alleen hij word niet weergegeven.

Code:
Stuk config

[COLOR= #0000BB]<?php

$sitenaam[/COLOR] [COLOR= #007700]=[/COLOR][COLOR= #DD0000]Webshop[/COLOR][COLOR= #007700];[/COLOR] 
[COLOR= #0000BB]$title[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Webshop[/COLOR][COLOR= #007700];[/COLOR]
?>


En helemaal onderin de config heb ik de html prut staan, (ik verbouw eeros)

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]//----------------------------------------[LAYOUT CLASS][/COLOR]
[URL="http://www.php.net/class"]class[/URL] layout [COLOR= #007700]{[/COLOR]
    
    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] menu[COLOR= #007700]() {[/COLOR]
        
        [URL="http://www.php.net/global"]global[/URL] [COLOR= #0000BB]$leden[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/global"]global[/URL] [COLOR= #0000BB]$cms[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/global"]global[/URL] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700];[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]is_ingelogd[COLOR= #007700]())
        {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$cms[/COLOR][COLOR= #007700]->[/COLOR]showMenu[COLOR= #007700]([/COLOR][COLOR= #DD0000]2[/COLOR][COLOR= #007700]);[/COLOR]
            
            [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]getRang[COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]getId[COLOR= #007700](),[/COLOR] TRUE[COLOR= #007700]) ==[/COLOR] [COLOR= #DD0000]2[/COLOR][COLOR= #007700])
            {[/COLOR]
                
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><a href="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]Site_url[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]?p=index">Home</a></li>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><a href="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]Site_url[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]?p=beheer">Beheer</a></li>[/COLOR][COLOR= #007700];
                
            }[/COLOR]
            
            
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><a href="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]Site_url[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]?p=uitloggen&h=[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]hash[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]">Uitloggen</a></li>[/COLOR][COLOR= #007700];
            
        }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
            
            [COLOR= #FF8000]//Menu voor mensen die niet ingelogd zijn[/COLOR]
            
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><a href="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]Site_url[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]">Home</a></li>
            <li><a href="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]Site_url[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]?p=inloggen">Inloggen</a></li>[/COLOR][COLOR= #007700];[/COLOR]
            
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$cms[/COLOR][COLOR= #007700]->[/COLOR]showMenu[COLOR= #007700]([/COLOR][COLOR= #DD0000]1[/COLOR][COLOR= #007700]);
            
        }
        
    }[/COLOR]
    
    
    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] boven[COLOR= #007700]([/COLOR][COLOR= #0000BB]$layout_title[/COLOR][COLOR= #007700])
    {[/COLOR]
        
        [URL="http://www.php.net/global"]global[/URL] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700];[/COLOR]
        
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
    <title>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$title[/COLOR][COLOR= #007700];[/COLOR] ?></title>
    <link href="../style.css" rel="stylesheet" type="text/css">
</head>

<body>

    <div id="container">
        
        <div class="logo">
            [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$sitenaam[/COLOR][COLOR= #007700];[/COLOR] ?>
        </div>
        
        <div class="navcontainer">
            <ul class="navlist">
                [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]../menu.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
            </ul>
        </div>
    
    
  <div class="menu">
        <div id="navigation">
    <ul class="top-level">
    [COLOR= #0000BB]<?php $this[/COLOR][COLOR= #007700]->[/COLOR]menu[COLOR= #007700]();[/COLOR] ?>
  </ul></div>
        </div>
  
        <div class="acontent">
        [COLOR= #0000BB]<?php[/COLOR]
        
    [COLOR= #007700]}[/COLOR]
    
    [COLOR= #FF8000]/** HIER KOMT LAYOUT VANAF CONTENT
    VOOR MENU GEBRUIK:         <?php $this->menu(); ?>
    */[/COLOR]
    
    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] onder[COLOR= #007700]()
    {[/COLOR]
        
        ?>
        </div></div>

        [COLOR= #0000BB]<?php[/COLOR]
        
    [COLOR= #007700]}
    
}[/COLOR]

[COLOR= #0000BB]$layout[/COLOR] [COLOR= #007700]= new[/COLOR] layout[COLOR= #007700];[/COLOR]


?>
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Variabele in je global plaatsen,of een getter aanmaken in je class als wat van classes afweet.
0
Desire

Lid · Topicstarter

Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Variabele in je global plaatsen,of een getter aanmaken in je class als wat van classes afweet.
Ik heb echt geen flauw idee.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Eerste dan maar....
Lijkt me t simpelste, voorbeeld heb je al...
0
Desire

Lid · Topicstarter

Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Eerste dan maar....
Lijkt me t simpelste, voorbeeld heb je al...
Ik probeer het morgen, ik moet nu weg. Bedankt iig voor de rest al.
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