[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_admin/meta.php,v $ 14 | $Revision: 1.17 $ 15 | $Date: 2006/06/07 04:08:33 $ 16 | $Author: e107coders $ 17 +----------------------------------------------------------------------------+ 18 */ 19 require_once ("../class2.php"); 20 if (!getperms("T")) { 21 header("location:".e_BASE."index.php"); 22 exit; 23 } 24 $e_sub_cat = 'meta'; 25 require_once ("auth.php"); 26 27 $current_lang = ($sql->mySQLlanguage != "") ? $sql->mySQLlanguage : $pref['sitelanguage']; 28 29 if (isset($_POST['metasubmit'])) { 30 31 $tmp = $pref['meta_tag']; 32 $langs = explode(",",e_LANLIST); 33 foreach($langs as $lan){ 34 $meta_tag[$lan] = $tmp[$lan]; 35 $meta_diz[$lan] = $pref['meta_description'][$lan]; 36 $meta_keywords[$lan] = $pref['meta_keywords'][$lan]; 37 $meta_copyright[$lan] = $pref['meta_copyright'][$lan]; 38 $meta_author[$lan] = $pref['meta_author'][$lan]; 39 } 40 41 $meta_tag[$current_lang] = strip_if_magic(chop($_POST['meta'])); 42 $meta_diz[$current_lang] = strip_if_magic(chop($_POST['meta_description'])); 43 $meta_keywords[$current_lang] = strip_if_magic(chop($_POST['meta_keywords'])); 44 $meta_copyright[$current_lang] = strip_if_magic(chop($_POST['meta_copyright'])); 45 $meta_author[$current_lang] = strip_if_magic(chop($_POST['meta_author'])); 46 47 $pref['meta_news_summary'] = $_POST['meta_news_summary']; 48 $pref['meta_tag'] = $meta_tag; 49 $pref['meta_description'] = $meta_diz; 50 $pref['meta_keywords'] = $meta_keywords; 51 $pref['meta_copyright'] = $meta_copyright; 52 $pref['meta_author'] = $meta_author; 53 54 /* 55 if($pref['meta_tag'][$current_lang] == ""){ 56 unset($meta_tag[$current_lang]); 57 }*/ 58 59 save_prefs(); 60 $message = METLAN_1; 61 } 62 63 if ($message) { 64 $ns->tablerender(METLAN_4, "<div style='text-align:center'>".METLAN_1." (".$current_lang.").</div>"); 65 } 66 67 $meta = $pref['meta_tag']; 68 $meta_diz = $pref['meta_description']; 69 $meta_keywords = $pref['meta_keywords']; 70 $meta_copyright = $pref['meta_copyright']; 71 $meta_author = $pref['meta_author']; 72 73 $text = "<div style='text-align:center'> 74 <form method='post' action='".e_SELF."' id='dataform'> 75 <table style='".ADMIN_WIDTH."' class='fborder'> 76 77 <tr> 78 <td style='width:25%' class='forumheader3'>".METLAN_9."</td> 79 <td style='width:75%' class='forumheader3'> 80 <input class='tbox' style='width:90%' size='70' type='text' name='meta_description' value='".$meta_diz[$current_lang]."' /> 81 </td> 82 </tr> 83 84 <tr> 85 <td style='width:25%' class='forumheader3'>".METLAN_10."</td> 86 <td style='width:75%' class='forumheader3'> 87 <input class='tbox' style='width:90%' size='70' type='text' name='meta_keywords' value='".$meta_keywords[$current_lang]."' /> 88 </td> 89 </tr> 90 91 <tr> 92 <td style='width:25%' class='forumheader3'>".METLAN_11."</td> 93 <td style='width:75%' class='forumheader3'> 94 <input class='tbox' style='width:90%' size='70' type='text' name='meta_copyright' value='".$meta_copyright[$current_lang]."' /> 95 </td> 96 </tr> 97 98 <tr> 99 <td style='width:25%' class='forumheader3'>".METLAN_13."</td> 100 <td style='width:75%' class='forumheader3'> 101 <input class='tbox' style='width:90%' size='70' type='text' name='meta_author' value=\"".$meta_author[$current_lang]."\" /> 102 </td> 103 </tr> 104 105 <tr> 106 <td style='width:25%' class='forumheader3'>".METLAN_2.": 107 <span class='smalltext'><br /><br />eg. 108 <meta name='author' content='your name' /> </span> 109 </td> 110 <td style='width:75%' class='forumheader3'> 111 <textarea class='tbox' title=\"eg. <meta name='author' content='your name' />\" id='meta' name='meta' cols='70' 112 rows='10' style='width:90%' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'>".str_replace("<","<",$tp->toForm($meta[$current_lang]))."</textarea> 113 <br />"; 114 $text .= "</td> 115 </tr> 116 117 <tr> 118 <td style='width:25%' class='forumheader3'>".METLAN_12."</td> 119 <td class='forumheader3' style='text-align:left;width:75%' >"; 120 $checked = ($pref['meta_news_summary']) ? "checked='checked'" : ""; 121 $text .= " 122 <input type='checkbox' name='meta_news_summary' value='1' {$checked} /> 123 </td> 124 </tr> 125 126 <tr><td colspan='2' style='text-align:center' class='forumheader'> 127 128 <input class='button' type='submit' name='metasubmit' value='".METLAN_3."' /> 129 </td> 130 </tr> 131 </table> 132 </form> 133 </div>"; 134 135 136 137 $ns -> tablerender(METLAN_8." (".$current_lang.")", $text); 138 139 require_once ("footer.php"); 140 141 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |