Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: php in template.html ?  (Read 3274 times)

0 Members and 1 Guest are viewing this topic.

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
php in template.html ?
« on: September 07, 2006, 02:44:35 am »

Hello
Is it possible to add some php code on the template.html ?
I need to add in my header this code :
Quote
<?=diff2jours(date(d),date(m),date(Y),25,12,2003);?>

i think i have to add a line here to call a function in theme.php but i am not able to make a function  :-[

    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
        '{TITLE}' => $CONFIG['gallery_name'] . ' ' . $section,
        '{CHARSET}' => $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'],
        '{META}' => $meta,
        '{GAL_NAME}' => $CONFIG['gallery_name'],
        '{GAL_DESCRIPTION}' => my_gal_description(),
        '{MAIN_MENU}' => theme_main_menu(),
        '{ADMIN_MENU}' => theme_admin_mode_menu(),


Thanks
« Last Edit: September 07, 2006, 10:46:28 pm by GauGau »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: php in template.html ?
« Reply #1 on: September 07, 2006, 06:59:57 am »

Is it possible to add some php code on the template.html ?
No , You can't put PHP code under HTML file !

Use custom header instead
Logged
‍I don't answer to PM with support question
Please post your issue to related board

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: php in template.html ?
« Reply #2 on: September 07, 2006, 03:35:30 pm »

thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 20 queries.