Jump to content

Search the Community

Showing results for tags 'deprecated'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 4 results

  1. Hi Guys, Firstly I would like state that I do not have a clue about PHP coding, I have merely signed up to gain some help with the following errors I have with my site I have recently setup with a PHP sports application. I downloaded the application from the following website http://phpmysport.sourceforge.net/ and as far as I know the software is opensource and no longer supported by its developer. The following http://www.proevoeliteleagues.esy.es/ is my website which displays the error messages. Please see following code the files in question: menu.php <?php /* * phpMySport : website for team sport clubs and leagues * * Copyright (C) 2006-2009 Jerome PLACE. All rights reserved. * * Email : djayp [at] users.sourceforge.net * Website : http://phpmysport.sourceforge.net * Version : 1.4 * Last update : 4 march 2009 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ /****************************/ /* MENUS */ /****************************/ $file=ROOT."/menu.csv"; # file containing the website menu # list of default pages $default_pages=array( array('level'=>'parent','title'=>$lang['general']['home'],'url'=>'index.php','class'=>'menu_home'), array('level'=>'parent','title'=>$lang['general']['news'],'url'=>'index.php?r='.$lang['general']['idurl_news'].'&v1=news_list','class'=>''), array('level'=>'parent','title'=>$lang['general']['information'],'url'=>'index.php?r='.$lang['general']['idurl_information'],'class'=>''), array('level'=>'parent','title'=>$lang['general']['team_list'],'url'=>'index.php?r='.$lang['general']['idurl_team'].'&v1=team_list','class'=>''), array('level'=>'parent','title'=>$lang['general']['member_list'],'url'=>'index.php?r='.$lang['general']['idurl_member'].'&v1=member_list','class'=>''), array('level'=>'child','title'=>$lang['general']['member_list'],'url'=>'index.php?r='.$lang['general']['idurl_member'].'&v1=member_list','class'=>''), array('level'=>'child','title'=>$lang['general']['player_list'],'url'=>'index.php?r='.$lang['general']['idurl_team'].'&v1=player_list','class'=>''), array('level'=>'child','title'=>$lang['general']['manager_list'],'url'=>'index.php?r='.$lang['general']['idurl_member'].'&v1=manager_list','class'=>''), array('level'=>'child','title'=>$lang['general']['coach_list'],'url'=>'index.php?r='.$lang['general']['idurl_team'].'&v1=coach_list','class'=>''), array('level'=>'child','title'=>$lang['general']['referee_list'],'url'=>'index.php?r='.$lang['general']['idurl_member'].'&v1=referee_list','class'=>''), array('level'=>'parent','title'=>$lang['general']['match_list'],'url'=>'index.php?r='.$lang['general']['idurl_match'],'class'=>''), array('level'=>'child','title'=>$lang['general']['match_list'],'url'=>'index.php?r='.$lang['general']['idurl_match'].'&v1=match_list','class'=>''), array('level'=>'child','title'=>$lang['general']['standings'],'url'=>'index.php?r='.$lang['general']['idurl_match'].'&v1=standings','class'=>''), array('level'=>'child','title'=>$lang['general']['stats_player'],'url'=>'index.php?r='.$lang['general']['idurl_match'].'&v1=stats_player','class'=>''), array('level'=>'parent','title'=>$lang['general']['competition_list'],'url'=>'index.php?r='.$lang['general']['idurl_competition'].'&v1=competition_list','class'=>''), //array('order'=>'6.1','title'=>$lang['general']['statistics'],'url'=>'index.php?r='.$lang['general']['idurl_match'].'&v1=statistics','class'=>''), //array('order'=>'8.0','title'=>$lang['general']['search_member'],'url'=>'index.php?r='.$lang['general']['idurl_member'].'&v1=search_member','class'=>''), array('level'=>'parent','title'=>$lang['general']['club_list'],'url'=>'index.php?r='.$lang['general']['idurl_club'],'class'=>''), array('level'=>'parent','title'=>$lang['general']['field_list'],'url'=>'index.php?r='.$lang['general']['idurl_field'],'class'=>''), array('level'=>'parent','title'=>$lang['general']['forum_list'],'url'=>'index.php?r='.$lang['general']['idurl_forum'],'class'=>'') ); $website_menu=array(); # we load the menu if(file_exists($file) AND $fp=fopen($file, "r") AND filesize($file)!=0) { $i=0; while (($data = fgetcsv($fp, 1000, ";")) !== FALSE) { $website_menu[$i]['level']=$data[0]; $website_menu[$i]['title']=$data[1]; $website_menu[$i]['url']=$data[2]; $website_menu[$i]['class']=$data[3]; $website_menu[$i]['target']=$data[4]; $i++; } fclose($fp); } else { $website_menu=$default_pages; } $k=0; $i=-1; foreach($website_menu AS $value) { if(!isset($value['target'])) $value['target']=''; if(!eregi("http",$value['url'])) { $value['url']=convert_url($value['url']); } if($value['level']=='parent') { $i++; $j=0; $index['menu'][$i]=$value; $index['menu'][$i]['i']=$k; $index['menu'][$i]['submenu']=array(); } else { $index['menu'][$i]['submenu'][$j]=$value; $index['menu'][$i]['submenu'][$j]['i']=$k; $j++; } $k++; } /* # team of the club $index['team']=array(); if(CLUB!=0) { if(!isset($_SESSION['menu_team'])) { $var['condition']=""; $var['limit']=""; $var['order']=" ORDER BY e.sex_id, ne.team_name_name ASC"; $included=1; include_once(create_path("team/sql_team.php")); include_once(create_path("team/tpl_team.php")); include_once(create_path("team/lg_team_".LANG.".php")); include(create_path("team/team_list.php")); unset($included); $_SESSION['menu_team']=$page['team']; } $index['team']=$_SESSION['menu_team']; } # information pages list $index['information']=array(); if(!isset($_SESSION['menu_information'])) { $var['condition']=""; $var['limit']=""; $var['order']=""; $included=1; include_once(create_path("information/sql_information.php")); include_once(create_path("information/tpl_information.php")); include_once(create_path("information/lg_information_".LANG.".php")); include(create_path("information/page_list.php")); unset($included); $_SESSION['menu_information']=$page['page']; } $index['information']=$_SESSION['menu_information']; # forums list $index['forum']=array(); if(!isset($_SESSION['menu_forum'])) { $var['condition']=""; $var['limit']=""; $var['order']=""; $included=1; include_once(create_path("forum/sql_forum.php")); include_once(create_path("forum/tpl_forum.php")); include_once(create_path("forum/lg_forum_".LANG.".php")); include(create_path("forum/forum_list.php")); unset($included); $_SESSION['menu_forum']=$page['forum']; } $index['forum']=$_SESSION['menu_forum']; # competition list $index['competition']=array(); if(!isset($_SESSION['menu_competition'])) { $var['condition']=""; $var['limit']=""; $var['order']=""; $included=1; include_once(create_path("competition/sql_competition.php")); include_once(create_path("competition/tpl_competition.php")); include_once(create_path("competition/lg_competition_".LANG.".php")); include(create_path("competition/competition_list.php")); unset($included); $_SESSION['menu_competition']=$page['competition']; } $index['competition']=$_SESSION['menu_competition']; # plugins $index['plugin']=array(); $nb_plugin=sizeof($plugin); $j=0; for($i=0; $i< $nb_plugin; $i++) { if($plugin[$i]['active']==1) { $index['plugin'][$j]['name']=$plugin[$i]['name']; $index['plugin'][$j]['link']=$plugin[$i]['link']; $index['plugin'][$j]['class']=$plugin[$i]['class']; $j++; } } #text $index['L_home']=$lang['general']['home']; $index['L_news']=$lang['general']['news']; $index['L_information']=$lang['general']['information']; $index['L_member']=$lang['general']['member']; $index['L_member_list']=$lang['general']['member_list']; $index['L_player_list']=$lang['general']['player_list']; $index['L_manager_list']=$lang['general']['manager_list']; $index['L_coach_list']=$lang['general']['coach_list']; $index['L_referee_list']=$lang['general']['referee_list']; $index['L_match']=$lang['general']['match']; $index['L_match_list']=$lang['general']['match_list']; $index['L_standings']=$lang['general']['standings']; $index['L_stats_player']=$lang['general']['stats_player']; $index['L_competition_list']=$lang['general']['competition_list']; $index['L_team_list']=$lang['general']['team_list']; $index['L_statistics']=$lang['general']['statistics']; $index['L_search_member']=$lang['general']['search_member']; $index['L_club_list']=$lang['general']['club_list']; $index['L_view_club']=$lang['general']['view_club']; $index['L_field_list']=$lang['general']['field_list']; $index['L_forum_list']=$lang['general']['forum_list']; */ # mode club $index['link_view_club']=""; $index['class_view_club']=""; if(CLUB!=0){ $index['link_view_club']=convert_url("index.php?r=".$lang['general']['idurl_club']."&v1=view&v2=".CLUB); $index['L_club_list']=$lang['general']['club_opponent_list']; $index['L_information']=$lang['general']['the_club']; if(isset($_GET['r']) AND $_GET['r']==$lang['general']['idurl_club'] AND isset($_GET['v2']) AND $_GET['v2']==CLUB) { $index['class_information']="on"; $index['class_club']=""; } } ?> fonctions.php <?php /* * phpMySport : website for team sport clubs and leagues * * Copyright (C) 2006-2009 Jerome PLACE. All rights reserved. * * Email : djayp [at] users.sourceforge.net * Website : http://phpmysport.sourceforge.net * Version : 1.4 * Last update : 4 march 2009 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ /* En récursif */ function parse_template($tpl,$var) { if(!file_exists($tpl)) { # we try with defaut folder $tpl_defaut=eregi_replace(TPL_URL,ROOT.'/template/defaut/',$tpl); if(TPL_DOSSIER!='defaut' AND file_exists($tpl_defaut)) { $tpl=$tpl_defaut; } else { die("Le fichier \"".$tpl."\"n'existe pas - création du template impossible"); } } $ligne=file($tpl); return parse_html($ligne,$var); } function parse_html($code,$var) { $bloc=array(); $boucle=false; $option=false; $name_bloc=""; $name=""; $name_option=""; $name_op=array(); $nb_option=0; $html=""; $affichage=true; $size_code=sizeof($code); for($i="0";$i<$size_code;$i++) { $affichage=true; // remplacement du path des images if(preg_match("`=\"(\.\.\/)*tpl_image/([-_a-zA-Z0-9\/\{\}]+).([a-zA-Z]{2,3})\"`",$code[$i],$catch)) { if(TPL_DOSSIER!='defaut' AND file_exists(ROOT."/template/".TPL_DOSSIER."/tpl_image/".$catch[2].".".$catch[3])) { $code[$i]=eregi_replace("=\"(\.\.\/)*tpl_image/","=\"".ROOT_URL."/template/".TPL_DOSSIER."/tpl_image/",$code[$i]); } else { $code[$i]=eregi_replace("=\"(\.\.\/)*tpl_image/","=\"".ROOT_URL."/template/defaut/tpl_image/",$code[$i]); } } // si on trouve une boucle if($boucle==false AND preg_match("<!-- LOOP (\w+) -->",$code[$i],$name_bloc)) { $name=$name_bloc['1']; $boucle=true; $nb=sizeof($var[$name]); $i++; } // on arrive à la end de la boucle if($boucle==true AND preg_match("<!-- END LOOP ".$name." -->",$code[$i])) { for($j="0";$j<$nb;$j++) // defini le number de bloc a afficher { $html.=parse_html($bloc[$name],$var[$name][$j]); // recursif } $boucle=false; $bloc=array(); $affichage=false; $code[$i]=""; } /* si on trouve du text optionnel */ if(preg_match("<!-- OPTION (\w+) -->",$code[$i],$name_option)) { if(isset($var[$name_option['1']]) AND (empty($var[$name_option['1']]) OR $var[$name_option['1']]==NULL)) { array_push($name_op,$name_option['1']); $option=true; $nb_option++; } $affichage=false; } if($option==true) { if(preg_match("<!-- END OPTION ".$name_op[$nb_option-1]." -->",$code[$i])) { $code[$i]=""; array_pop($name_op); $nb_option--; if($nb_option==0) { $option=false; } } $affichage=false; } // si on est dans une boucle, on enregistre le code dans un bloc if($boucle==true) { $bloc[$name][]=$code[$i]; $affichage=false; } if($affichage==true) { $html.=preg_replace('/\{(\w+)\}/e','\$var[\'\\1\']',$code[$i]); } } return $html; } ?> index.php <?php /* * phpMySport : website for team sport clubs and leagues * * Copyright (C) 2006-2009 Jerome PLACE. All rights reserved. * * Email : djayp [at] users.sourceforge.net * Website : http://phpmysport.sourceforge.net * Version : 1.4 * Last update : 4 march 2009 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ if(file_exists("my_code/index.php") AND !isset($included_index)) { $included_index=1; include("my_code/index.php"); exit(); } /****************/ /* PHP SESSIONS */ /****************/ session_start(); /***************************/ /* VARIABLES et CONSTANTES */ /***************************/ define("VERSION_SITE","1.4"); # script version $page=array(); $index=array(); /***************************/ # create the path of a file if(!function_exists('create_path')) { function create_path($file) { # we check if a customize file exists if(file_exists(ROOT."/my_code/".$file)) { return ROOT."/my_code/".$file; } else { return ROOT."/".$file; } } } /*******************/ /* REQUIRED FILES */ /*******************/ @include_once("include/conf.php"); if(!defined("SITE_OPEN")) define("SITE_OPEN","1"); if(!defined("SITE_TITLE")) define("SITE_TITLE",""); if(!defined("ROOT")) define("ROOT","."); if(!defined("ROOT_URL")) define("ROOT_URL","."); if(!defined("CONF_INCLUDED")) { header("location:installation/"); exit(); } #elseif(SITE_OPEN==0) { $var=""; } elseif(VERSION_SITE==VERSION && file_exists(ROOT."/installation/index.php")) { header("location:".ROOT_URL."/installation/index.php?lg=".LANG."&r=message"); exit(); } elseif(VERSION_SITE!=VERSION) { header("location:".ROOT_URL."/installation/index.php?lg=".LANG."&r=update"); exit(); } require_once(create_path("include/form.php")); require_once(create_path("include/sgbd.php")); include_once(create_path("include/fonction.php")); /* fichiers communs */ /* require_once(create_path("image/sql_image.php")); include_once(create_path("include/image.php")); include_once(create_path("include/search.php")); */ /***************************/ /************************/ /* LANGUAGE MANAGEMENT */ /************************/ if(!@include_once(create_path("include/lg_general_".LANG.".php"))) { echo "ERREUR : Language not supported/Langue non supportée"; exit(); } setlocale(LC_ALL, $lang['general']['setlocale_parameters']); # define local language /*************************/ /*************************/ /* TEMPLATES MANAGEMENT */ /*************************/ include(create_path("include/template.php")); /*************************/ require_once(create_path("member/sql_member.php")); require_once(create_path("member/lg_member_".LANG.".php")); if(isset($_SESSION['session_member_id'])) { define("MEMBER","1",1); define("MEMBER_ID",$_SESSION['session_member_id'],1); } else { define("MEMBER","0",1); define("MEMBER_ID","0",1); } /* END SESSIONS */ /* AUTO CONNEXION si il y a un cookie valid, que le member n'est pas deja connecte et qu'on est pas deja sur la page de connection, on redirige vers la page de connection */ /* if(isset($_COOKIE['auto_connection']) AND $_COOKIE['auto_connection']==1 AND (!isset($_SESSION['session_member_id']) OR $_SESSION['session_member_id']==0) AND (!isset($_GET['v1']) OR $_GET['v1']!="login")) { $url_redirection=convert_url("index.php?lg=".LANG."&s=".SECTION."&r=".$lang['general']['idurl_member']."&v1=login"); header("location:".$url_redirection); exit(); } */ /********************************/ /* PLUGIN MANAGEMENT */ /********************************/ include_once(create_path("plugin/plugin_list.php")); /********************************/ /* USER RIGHTS AND PERMISSIONS */ /********************************/ include_once(create_path("member/group_right.php")); /***************************/ /* SIGN IN FORM */ /***************************/ $index['menu_member']=""; $index['form_connection']=""; if(!isset($_SESSION['session_login'])) { include_once(create_path("member/form_connection.php")); $index['form_connection']="1"; } else { include_once(create_path("member/menu_member.php")); $index['menu_member']="1"; } /****************************/ /* MINI STANDINGS */ /****************************/ $index['mini_standings']=""; if(!isset($_SESSION['session_mini_standings']) OR empty($_SESSION['session_mini_standings'])) { if(MS_SHOW!='none') { include_once(ROOT.'/match/sql_match.php'); include_once(ROOT.'/match/tpl_match.php'); include_once(ROOT.'/match/lg_match_'.LANG.'.php'); $included_mini_standings=1; include(ROOT.'/match/mini_standings.php'); unset($included_mini_standings); //$_SESSION['session_mini_standings']=parse_template(TPL_URL.$page['template'],$page); } } if(MS_SHOW=='all') { $index['mini_standings']=$_SESSION['session_mini_standings']; } /****************************/ /* MENUS */ /****************************/ include_once(create_path("menu.php")); // menu admin $index['menu_admin']=""; if($right_user['home'] OR $right_user['admin'] OR $right_user['configuration']) { include_once(create_path("administration/menu_admin.php")); $index['menu_admin']="1"; } // we check if the site is open if(SITE_OPEN!=1 AND (!isset($_GET['v1']) OR $_GET['v1']!="login") AND (!isset($_SESSION['session_status']) OR $_SESSION['session_status']<"2")) { $page['L_title']=$lang['general']['site_construction']; $affichage=0; $page['template']=$tpl['general']['message']; $page['L_message']=$lang['general']['site_construction_text']; $page['erreur']=array(); } /********************************/ /* PAGE TO INCLUDE MANAGEMENT */ /********************************/ /* Important : l'url de la page est de type : index.php?lg=XX&r=xxxxxx&v1=xxxxx selon l'url, on regarde dans quelle rubrique on est (variable $_GET['r']) puis eventuellement dans quelle sous-rubrique $_GET['v1'] */ $index['class_home']=""; $index['class_news']=""; $index['class_information']=""; $index['class_club']=""; $index['class_match']=""; $index['class_member']=""; $index['class_image']=""; $index['class_team']=""; $index['class_forum']=""; $index['class_competition']=""; $index['class_field']=""; $index['class_forum']=""; $in_plugin=0; /* if the page can be included */ if($affichage==1) { /* we look at the section (rubrique) */ if(isset($_GET['r']) AND $_GET['r']!="") { /* rubrique administration */ switch($_GET['r']) { case $lang['general']['idurl_admin'] : require_once(create_path("administration/include.php")); $index['class_home']='on'; break; case $lang['general']['idurl_news'] : require_once(create_path("news/include.php")); $index['class_news']='on'; break; case $lang['general']['idurl_information'] : require_once(create_path("information/include.php")); $index['class_information']='on'; break; case $lang['general']['idurl_club'] : require_once(create_path("club/include.php")); $index['class_club']='on'; break; case $lang['general']['idurl_match'] : require_once(create_path("match/include.php")); $index['class_match']='on'; break; case $lang['general']['idurl_member'] : require_once(create_path("member/include.php")); $index['class_member']='on'; break; case $lang['general']['idurl_file'] : require_once(create_path("file/include.php")); $index['class_file']=''; break; case $lang['general']['idurl_team'] : require_once(create_path("team/include.php")); $index['class_team']='on'; break; case $lang['general']['idurl_forum'] : require_once(create_path("forum/include.php")); $index['class_forum']='on'; break; case $lang['general']['idurl_competition'] : require_once(create_path("competition/include.php")); $index['class_competition']='on'; break; case $lang['general']['idurl_field'] : require_once(create_path("field/include.php")); $index['class_field']='on'; break; case $lang['general']['idurl_forum'] : require_once(create_path("forum/include.php")); $index['class_forum']='on'; break; case $lang['general']['idurl_file'] : require_once(create_path("file/include.php")); break; default : # if plugin if(in_array($_GET['r'],$plugin_list)) { $key=array_search($_GET['r'], $plugin_list); # we search for the key corresponding to the value $plugin[$key]['class']='on'; require_once($plugin[$key]['root']."/include.php"); $in_plugin=1; } else { require_once(create_path("home.php")); $index['class_home']='on'; } } } else { require_once(create_path("home.php")); $index['class_home']='on'; } if(CLUB!=0){ if(isset($_GET['r']) AND $_GET['r']==$lang['general']['idurl_club'] AND isset($_GET['v2']) AND $_GET['v2']==CLUB) { $index['class_information']='on'; $index['class_club']=""; } } } /***************************/ /**********************/ /* Text elements */ /**********************/ $index['L_realisation']=$lang['general']['realisation']; $index['L_confirmation']=$lang['general']['confirmation_suppression']; $index['link_choose_file']=convert_url("index.php?r=".$lang['general']['idurl_file']."&v1=image_manager&fen=pop",0); /******************************************/ /* META : TITLE, DESCRIPTION AND KEYWORDS */ /******************************************/ /* we look if there is a title, a description and keywword if the included page. If there is not, we add the default information */ $index['meta_lang']=LANG; $index['meta_charset']=$lang['general']['charset']; /* title */ if(isset($page['meta_title']) AND $page['meta_title']!="") { $index['meta_title']=SITE_TITLE." > ".$page['meta_title']; } else { $index['meta_title']=SITE_TITLE; } /* description */ if(isset($page['meta_description']) AND $page['meta_description']!="") { $index['meta_description']=$page['meta_description']; } else { $index['meta_description']=$lang['general']['meta_description']; } /* mots cles */ if(isset($page['meta_keyword']) AND $page['meta_keyword']!="") { $index['meta_keyword']=$page['meta_keyword']; } else { $index['meta_keyword']=$lang['general']['meta_keyword']; } /* url */ $index['meta_url']=ROOT_URL; $index['page_url']=ROOT_URL; if(isset($_SERVER['QUERY_STRING']) AND $_SERVER['QUERY_STRING']!="") { $index['page_url']=convert_url("index.php?".$_SERVER['QUERY_STRING']); } /*****************************************/ /**********************/ /* PAGE MAIN CONTENT */ /**********************/ /* on cherche si le contenu a un template declare */ /* si ce n'est pas le cas, erreur, sinon on charge le contenu */ if(!isset($page['template'])) { $page['template']=$tpl['general']['message']; $page['L_message']="Template non trouvé"; $page['erreur']=array(); } if($in_plugin==1) { $index['contenu']=parse_template(ROOT."/plugin/".$page['template'],$page); } else { $index['contenu']=parse_template(TPL_URL.$page['template'],$page); } /**********************/ /***********************/ /* PAGE CREATION */ /***********************/ /* choix du template principal : page normale (par defaut), pop-up ou page pour impression */ if(eregi("fen_pop",$_SERVER['QUERY_STRING'])) $page['fen']="pop"; if(eregi("fen_impression",$_SERVER['QUERY_STRING'])) $page['fen']="impression"; if(isset($page['fen']) AND $page['fen']=="pop") { $template=$tpl['general']['pop']; $html_code=parse_template(TPL_URL.$template,$index); } elseif(isset($_GET['fen']) AND $_GET['fen']=="pop") { $template=$tpl['general']['pop']; $html_code=parse_template(TPL_URL.$template,$index); } elseif(isset($page['fen']) AND $page['fen']=="ajax") { $html_code=$index['contenu']; } elseif(isset($page['fen']) AND $page['fen']=="impression") { $template=$tpl['general']['imprime']; $html_code=parse_template(TPL_URL.$template,$index); } else { $template=$tpl['general']['index']; $html_code=parse_template(TPL_URL.$template,$index); } echo $html_code; /***********************/ ?> I appreciate your help. Many Thanks, TheWelshOne
  2. Dear php freaks I am working on updating the php code of my old Guestbook. I haven't been working on php for years, so I am very rusty. From searhing on php.net, I realize that quite a few of the commands in my old php code are deprecated. Here is a list. @mysql_pconnect mysql_select_db mysql_query mysql_fetch_array mysql_close() mysql_error() global $HTTP_USER_AGENT eregi Regarding for example the mysql_query php.net says the following: http://www.php.net/manual/en/function.mysql-query.php But thare are several options, I see. Can someone guide me how to make the proper changes. Should I just replace the above commands with some newer ones? Regards, Erik
  3. When I type my Website URL It's all right. But When I press the sub-category to view the inner content then the problem is occur. There is 5 folder in my public_html.. They are: 1.admin 2.avatars 3.FTP 4.images 5.includes and some php files. This is a script. I can't php. ###There's some Error... Deprecated: Function ereg_replace() is deprecated in /home/exwggayd/public_html/includes/functions.php on line 62 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/phpFlickr.php on line 91 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/phpFlickr.php on line 330 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/phpFlickr.php on line 399 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/phpFlickr.php on line 468 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 228 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 324 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 602 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 621 Strict Standards: Redefining already defined constructor for class Net_URL in /home/exwggayd/public_html/includes/phpflickr/PEAR/Net/URL.php on line 122 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 590 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 591 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 603 ##### The function.php inside the "includes" folder...may be there is the problem. But When I reload the page Everything Seems allright. Here is the Codes...Paste on Pastebin!! #function.php# hxxp://pastebin.com/PR4RKSJS #phpFlickr.php# hxxp://pastebin.com/zzaVehBx #Request.php# hxxp://pastebin.com/MPfq5zAL #URL.php# hxxp://pastebin.com/yDMvA7e5
  4. I have the following function, which I'm struggling to convert: /******************************************************/ function start() { global $dpath, $rb_head, $rb_foot, $siteurl; /******************************************************/ include("$dpath$rb_head"); $ip = getenv ("REMOTE_ADDR"); $urllink = getenv("HTTP_REFERER"); if (!ereg("$siteurl", "$urllink")) { $urllink2 = "$siteurl"; //echo "<br /><b>Page being Referred</b>: <a href=$urllink2>$urllink2</a>\n"; } else { $urllink2 = "$urllink"; //echo "<br /><b>Page being Referred</b>: <a href=$urllink2>$urllink2</a>\n"; } include("rb_form.php"); crkdo(); include("$dpath$rb_foot"); } Any help would be appreciated. Duncan
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.