AVATAR
|
granatze |
Geschrieben am 18. April 2016 11:10
|
(0)
Beiträge: 4
Registriert am: 09.04.2016
Verwarnstatus:
PHP Version 5.0.X
|
Hallo zusammen,
wenn ich ein avatar hochlade bekomme ich vollganden fehle: Prevented an unwanted file upload attempt!
woran liegt das?
dann hätte ich noch eine frage ich hab mir das zwar200 mal runtergeladen alles installiert wenn ich aber im benutzerveld zb. memberflage aktiviere dann steht der fehler Fehler: Bitte überprüfe die Dateien des Benutzerfeldes user_cflag!
GeSHi: PHP <?php /*-------------------------------------------------------+ | PHP-Fusion Content Management System | Copyright © 2002 - 2008 Nick Jones | http://www.php-fusion.co.uk/ +--------------------------------------------------------+ | Filename: member_cflag_include.php | Author: ZEZoar +--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at http://www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ if (!defined("IN_FUSION")) { die("Access Denied"); } if (file_exists(INFUSIONS ."zwar_warscript/locale/".$settings['locale']."member_cflag_include.php")) { include_once INFUSIONS."zwar_warscript/locale/".$settings['locale']."member_cflag_include.php"; } else { include_once INFUSIONS."zwar_warscript/locale/English.php"; } if ($profile_method == "input") { require_once INFUSIONS."zwar_warscript/zwar_functions.php"; require_once INFUSIONS."zwar_warscript/locale/ccodes.php"; $user_cflag_files = makefilelist(INFUSIONS."zwar_warscript/locale/flags/", ".|..|index.php|Unknown.gif", true); $user_cflag_list = ""; $user_cflag = isset($user_data['user_cflag']) ? $user_data['user_cflag'] : ""; $sel=""; for ($i = 0; $i < count($user_cflag_files); $i++) { $ccode = preg_replace("/\.gif$/","",$user_cflag_files[$i]); $cflag_sortarray[$i]['file'] = $user_cflag_files[$i]; $cflag_sortarray[$i]['name'] = isset($zwar_countrycodes_array[strtoupper($ccode)]) ? $zwar_countrycodes_array[strtoupper($ccode)] : $ccode; } usort($cflag_sortarray, 'sort_cflagarray'); for ($i = 0; $i < count($cflag_sortarray); $i++) { $sel = ($user_cflag == $cflag_sortarray[$i]['file'] ? " selected='selected'" : ""); $user_cflag_list .= "<option value='".$cflag_sortarray[$i]['file']."'$sel>".$cflag_sortarray[$i]['name']."</option>\n"; } echo "<tr>\n"; echo "<td class='tbl' valign='top'>".$locale['zwar_4133']."</td>\n"; echo "<td class='tbl'><select name='user_cflag' class='textbox' style='width:150px;' onchange=\"zwar_show_cflag();\"> <option value=''>---</option>".$user_cflag_list."</select> <img id='user_cflag_img' src='".INFUSIONS."zwar_warscript/locale/flags/".($user_cflag != "" ? $user_cflag : "Unknown.gif")."' alt='zwar-image'/></td>\n"; echo "</tr>\n"; $replacestring = "<script type=\"text/javascript\"> function zwar_show_cflag() { imgsrc = document.inputform.user_cflag.value; document.images[\"user_cflag_img\"].src = \"".INFUSIONS."zwar_warscript/locale/flags/\" + imgsrc; } </script>"; replace_in_output("</body>", "</body>\n".$replacestring."\n"); } elseif ($profile_method == "display") { require_once INFUSIONS."zwar_warscript/zwar_functions.php"; echo "<tr>\n"; echo "<td width='1%' class='tbl1' style='white-space:nowrap' valign='top'>".$locale['zwar_4133'].":</td>\n"; echo "<td align='right' class='tbl1'>".display_zwar_flag($user_data['user_cflag'])."</td>\n"; echo "</tr>\n"; } elseif ($profile_method == "validate_insert") { $db_fields .= ", user_cflag"; $db_values .= ", '".(isset($_POST['user_cflag']) && file_exists(INFUSIONS."zwar_warscript/locale/flags/".$_POST['user_cflag'])? $_POST['user_cflag'] : "")."'"; } elseif ($profile_method == "validate_update") { $db_values .= ", user_cflag='".(isset($_POST['user_cflag']) && file_exists(INFUSIONS."zwar_warscript/locale/flags/".$_POST['user_cflag'])? $_POST['user_cflag'] : "")."'"; } ?>
gewandelt in 0.026 Sekunden, benutzt wurde GeSHi 1.0.8.10
der ordner ist beschrieben nocht nicht bearbeiten was muss ich da noch einfügen?
sorry bin etwas neuland im fusion.
aber besten dank nochmal im vorraus
Bearbeitet von Rick am 18. April 2016 12:17
|
|
|
|
|
|
Manuel |
Geschrieben am 18. April 2016 16:15
|
(23)
Beiträge: 463
Registriert am: 22.09.2010
Verwarnstatus:
PHP Version 5.3.X
|
Hallo Granatze,
den ersten Fehler hättest du Simple mit Google Lösen können.
Zum zweitem Part ist die Frag was steht in der Fusion Fehler Log im Adminbereich zum Profilfeld oder allgemein zur Infusion.
Mit freundlichen Grüßen
PHPFusion-4you.de - Development & Administration
Manuel
Offizieller PHPFusion-4you - Mitarbeiter
Kein Support via PN oder Messenger
|
|
|
|
|
|
granatze |
Geschrieben am 18. April 2016 22:35
|
(0)
Beiträge: 4
Registriert am: 09.04.2016
Verwarnstatus:
PHP Version 5.0.X
|
das sind die die ich momentan angezeigt bekomme, das andere hatte ich in google gesucht aber nicht wirklich was gefunden.
wegen dem benutzerfeld ist das der einzigste fehler den ich habe:
Fehler: Bitte überprüfe die Dateien des Benutzerfeldes user_cflag! genau so steht das da wenn ich es aktiviere.
PHP Details Fehler: file_get_contents(http://www.zoffclan.de/zoffdev/update/index.php): failed to open stream: HTTP request failed! Zeile: 49 Datei: zwar_warscript/admin/overview.php Auf Seite: infusions/zwar_warscript/zwar_admin_panel.php Benutzer-Level: 103 IP-Adresse: 2.173.180.168 Datum: 16. April 2016 um 12:29:38 Status: -
Zum Seitenanfang Quelltext (Zeile: 39 - 59) 39 echo "<center><br/>".$error."<br/><br/><a href='javascript:history.back()'><< ".$locale['zwar_0001']."</a></center>"; 40 closetable(); 41 } else { 42 $result = dbquery("INSERT INTO ".DB_ZWAR_WARS." (war_info, war_added_by, war_date, war_date_add, war_teamsize, war_opp_id, war_server_id, war_game_id, war_matchtype_id, war_gametype_id, war_password, war_squad) VALUES ('', '".$userdata['user_id']."', '".$war_date."', '".time()."', '', '', '', '".$war_game_id."', '', '', '', '".$war_squad_id."')"); 43 } 44 } 45 46 opentable($locale['zwar_1001']); 47 echo "<center><img src='".INFUSIONS."zwar_warscript/images/zwar-logo.jpg' alt='zwar'/><br/><b>".$locale['zwar_1002']."</b><br/><br/>"; 48 49 if ($zwar_version = file_get_contents("http://www.zoffclan.de/zoffdev/update/index.php")) { 50 if (version_compare($zwar_version, $zwar_settings_array['zwar_version'], ">")) { 51 echo "<b><div style='color:#DD0000; border:1px solid #000000; backgorund-color:#ffffff; padding:4px; margin:5px; width:350px; white-space:nowrap; overflow:auto;'> 52 ".$locale['zwar_1003']."</div></b> 53 <b>".$locale['zwar_1024']."</b> ".$zwar_version."<br/>".$locale['zwar_1025']; 54 } else { 55 echo "<b><div style='color:#00BB00; border:1px solid #000000; backgorund-color:#ffffff; padding:4px; margin:5px; width:350px; white-space:nowrap; overflow:auto;'> 56 ".$locale['zwar_1004']."</div></b> 57 <b>".$locale['zwar_1024']."</b> ".$zwar_settings_array['zwar_version']."<br/>".$locale['zwar_1026']; 58 } 59 Zum Seitenanfang Auf Seite: zwar_warscript/zwar_admin_panel.php 1 <?php 2 /*-------------------------------------------------------+ 3 | PHP-Fusion Content Management System 4 | Copyright � 2002 - 2008 Nick Jones 5 | http://www.php-fusion.co.uk/ 6 +--------------------------------------------------------+ 7 | Filename: zwar_admin_panel.php 8 | Author: Zezoar 9 +--------------------------------------------------------+ 10 | This program is released as free software under the 11 | Affero GPL license. You can redistribute it and/or 12 | modify it under the terms of this license which you 13 | can read by viewing the included agpl.txt or online 14 | at www.gnu.org/licenses/agpl.html. Removal of this 15 | copyright header is strictly prohibited without 16 | written permission from the original author(s). 17 +--------------------------------------------------------*/ 18 require_once "../../maincore.php"; 19 if (file_exists(INFUSIONS."zwar_warscript/locale/".$settings['locale'].".php")) { 20 include_once INFUSIONS."zwar_warscript/locale/".$settings['locale'].".php"; 21 } else { 22 include_once INFUSIONS."zwar_warscript/locale/English.php"; 23 } 24 require_once INFUSIONS."zwar_warscript/admin/zwar_header.php"; 25 require_once INFUSIONS."zwar_warscript/zwar_functions.php"; 26 add_handler("check_copy"); 27 add_to_title(" - ".$locale['zwar_0068']); 28 29 $admin_page = isset($_GET['pagefile']) ? $_GET['pagefile']: "overview"; 30 if (isset($_GET['action']) && !preg_match("/^[0-9a-z]+$/i", $_GET['action'])) { redirect(FUSION_SELF.$aidlink); } 31 if (!zwar_CheckAccess($admin_page)) { redirect(BASEDIR."index.php"); } 32 33 define("ZWARCOPY", "<br/><div align='center'><a href='http://www.zoffclan.de/zoffdev/' target='_blank'>ZWar</a> - © 2008 by ZEZoar</div>"); 34 35 $zwar_admin_path = INFUSIONS."zwar_warscript/admin/"; 36 37 if (file_exists($zwar_admin_path.$admin_page.".php")) { 38 require_once($zwar_admin_path.$admin_page.".php"); 39 } else { 40 require_once(INFUSIONS."zwar_warscript/admin/overview.php"); 41 } 42 43 echo ZWARCOPY; 44 require_once THEMES."templates/footer.php"; 45 ?> Zum Seitenanfang
PHP Datei ansehen: zwar_warscript/admin/zwar_header.php Details Fehler: Constant START_PAGE already defined Zeile: 50 Datei: zwar_warscript/admin/zwar_header.php Auf Seite: infusions/zwar_warscript/zwar_admin_panel.php Benutzer-Level: 103 IP-Adresse: 2.173.180.168 Datum: 16. April 2016 um 12:28:37 Status: -
Zum Seitenanfang Quelltext (Zeile: 40 - 60) 40 $script_url = explode("/", $_SERVER['PHP_SELF'].(FUSION_QUERY ? "?".FUSION_QUERY : "")); 41 $url_count = count($script_url); 42 $base_url_count = substr_count(BASEDIR, "/") + 1; 43 $start_page = ""; 44 while ($base_url_count != 0) { 45 $current = $url_count - $base_url_count; 46 $start_page .= "/".$script_url[$current]; 47 $base_url_count--; 48 } 49 50 define("START_PAGE", substr($start_page, 1)); 51 52 if (checkrights("ZWAR")) { 53 ob_start(); 54 openside($locale['zwar_0028']); 55 echo"<div class='side-label'><strong> zWar</strong></div> 56 ".THEME_BULLET."<a class='side' href='".FUSION_SELF.$aidlink."&pagefile=overview'>".$locale['zwar_0029']."</a><br/> 57 ".THEME_BULLET."<a class='side' href='".FUSION_SELF.$aidlink."&pagefile=challenge'>".$locale['zwar_0030']."</a><br/> 58 ".THEME_BULLET."<a class='side' href='".FUSION_SELF.$aidlink."&pagefile=joinus'>".$locale['zwar_0063']."</a><br/> 59 ".THEME_BULLET."<a class='side' href='".FUSION_SELF.$aidlink."&pagefile=settings'>".$locale['zwar_0043']."</a><br/> 60 Zum Seitenanfang Auf Seite: zwar_warscript/zwar_admin_panel.php 1 <?php 2 /*-------------------------------------------------------+ 3 | PHP-Fusion Content Management System 4 | Copyright � 2002 - 2008 Nick Jones 5 | http://www.php-fusion.co.uk/ 6 +--------------------------------------------------------+ 7 | Filename: zwar_admin_panel.php 8 | Author: Zezoar 9 +--------------------------------------------------------+ 10 | This program is released as free software under the 11 | Affero GPL license. You can redistribute it and/or 12 | modify it under the terms of this license which you 13 | can read by viewing the included agpl.txt or online 14 | at www.gnu.org/licenses/agpl.html. Removal of this 15 | copyright header is strictly prohibited without 16 | written permission from the original author(s). 17 +--------------------------------------------------------*/ 18 require_once "../../maincore.php"; 19 if (file_exists(INFUSIONS."zwar_warscript/locale/".$settings['locale'].".php")) { 20 include_once INFUSIONS."zwar_warscript/locale/".$settings['locale'].".php"; 21 } else { 22 include_once INFUSIONS."zwar_warscript/locale/English.php"; 23 } 24 require_once INFUSIONS."zwar_warscript/admin/zwar_header.php"; 25 require_once INFUSIONS."zwar_warscript/zwar_functions.php"; 26 add_handler("check_copy"); 27 add_to_title(" - ".$locale['zwar_0068']); 28 29 $admin_page = isset($_GET['pagefile']) ? $_GET['pagefile']: "overview"; 30 if (isset($_GET['action']) && !preg_match("/^[0-9a-z]+$/i", $_GET['action'])) { redirect(FUSION_SELF.$aidlink); } 31 if (!zwar_CheckAccess($admin_page)) { redirect(BASEDIR."index.php"); } 32 33 define("ZWARCOPY", "<br/><div align='center'><a href='http://www.zoffclan.de/zoffdev/' target='_blank'>ZWar</a> - © 2008 by ZEZoar</div>"); 34 35 $zwar_admin_path = INFUSIONS."zwar_warscript/admin/"; 36 37 if (file_exists($zwar_admin_path.$admin_page.".php")) { 38 require_once($zwar_admin_path.$admin_page.".php"); 39 } else { 40 require_once(INFUSIONS."zwar_warscript/admin/overview.php"); 41 } 42 43 echo ZWARCOPY; 44 require_once THEMES."templates/footer.php"; 45 ?> Zum Seitenanfang
PHP Datei ansehen: www/administration/panel_editor.php Details Fehler: include(../infusions/pd_stats_panel/pd_stats_panel.php): failed to open stream: No such file or directory Zeile: 151 Datei: www/administration/panel_editor.php Auf Seite: /administration/panel_editor.php Benutzer-Level: 103 IP-Adresse: 46.79.242.241 Datum: 14. April 2016 um 03:41:35 Status: -
Zum Seitenanfang Quelltext (Zeile: 141 - 161) 141 $include_check = $_POST['panel_restriction']== "0" ? " checked='checked'" : ""; 142 $panel_filename = $_POST['panel_filename']; 143 $panel_content = isset($_POST['panel_content']) ? stripslash($_POST['panel_content']) : ""; 144 $panel_access = $_POST['panel_access']; 145 $panelon = isset($_POST['panel_display']) ? " checked='checked'" : ""; 146 $panelopts = $panel_side == "1" || $panel_side == "4" ? " style='display:none'" : " style='display:block'"; 147 $panel_type = $panel_filename == "none" ? "php" : "file"; 148 if (check_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")) { 149 opentable($panel_name); 150 if ($panel_type == "file") { 151 @include INFUSIONS.$panel_filename."/".$panel_filename.".php"; 152 } else { 153 eval($panel_content); 154 } 155 $panel_content = phpentities($panel_content); 156 closetable(); 157 set_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : ""); 158 } else { 159 echo "<div id='close-message'><div class='admin-message'>".$locale['global_182']."</div></div>\n"; 160 $panel_content = phpentities($panel_content); 161 Zum Seitenanfang Auf Seite: administration/panel_editor.php 1 <?php 2 /*-------------------------------------------------------+ 3 | PHP-Fusion Content Management System 4 | Copyright (C) PHP-Fusion Inc 5 | https://www.php-fusion.co.uk/ 6 +--------------------------------------------------------+ 7 | Filename: panel_editor.php 8 | Author: Nick Jones (Digitanium) 9 | Co Author: WEC 10 +--------------------------------------------------------+ 11 | This program is released as free software under the 12 | Affero GPL license. You can redistribute it and/or 13 | modify it under the terms of this license which you 14 | can read by viewing the included agpl.txt or online 15 | at www.gnu.org/licenses/agpl.html. Removal of this 16 | copyright header is strictly prohibited without 17 | written permission from the original author(s). 18 +--------------------------------------------------------*/ 19 require_once "../maincore.php"; 20 21 if (!checkrights("P") || !defined("iAUTH") || !isset($_GET['aid']) || $_GET['aid']!= iAUTH) { redirect("../index.php"); } 22 if (!isset($_GET['panel_side']) || !isNum($_GET['panel_side']) || $_GET['panel_side']> 4) { 23 $panel_side = 1; 24 } else { 25 $panel_side = $_GET['panel_side']; 26 } 27 28 require_once THEMES."templates/admin_header.php"; 29 include LOCALE.LOCALESET."admin/panels.php"; 30 31 $temp = opendir(INFUSIONS); 32 while ($folder = readdir($temp)) { 33 if (!in_array($folder, array(".","..")) && strstr($folder, "_panel")) { 34 if (is_dir(INFUSIONS.$folder)) $panel_list[]= $folder; 35 } 36 } 37 closedir($temp); sort($panel_list); array_unshift($panel_list, "none"); 38 39 if (isset($_POST['save'])) { 40 $error = ""; 41 $panel_name = stripinput($_POST['panel_name']); 42 $panel_url_list = stripinput($_POST['panel_url_list']); 43 $panel_restriction = isset($_POST['panel_restriction']) && $_POST['panel_restriction']== 1 ? 1 : 0; 44 if ($panel_name == "") $error .= $locale['470']."<br />"; 45 if ($_POST['panel_filename']== "none") { 46 $panel_filename = ""; 47 $panel_content = (isset($_POST['panel_content']) ? addslash($_POST['panel_content']) : (($panel_side == 1 || $panel_side == 4) ? "openside(\"name\");\n"."echo \"Content\";\n"."closeside();" : "opentable(\"name\");\n"."echo \"Content\";\n"."closetable();")); 48 $panel_type = "php"; 49 } else { 50 $panel_filename = stripinput($_POST['panel_filename']); 51 $panel_content = ""; 52 $panel_type = "file"; 53 } 54 $panel_access = isnum($_POST['panel_access']) ? $_POST['panel_access']: "0"; 55 if ($panel_side == "1" || $panel_side == "4") { 56 $panel_display = "0"; 57 } else { 58 $panel_display = isset($_POST['panel_display']) ? "1" : "0"; 59 } 60 if (isset($_GET['panel_id']) && isnum($_GET['panel_id'])) { 61 if ($panel_name) { 62 $data = dbarray(dbquery("SELECT panel_name FROM ".DB_PANELS." WHERE panel_id='".$_GET['panel_id']."'")); 63 if ($panel_name != $data['panel_name']) { 64 $result = dbcount("(panel_id)", DB_PANELS, "panel_name='".$panel_name."'"); 65 if (!empty($result)) { $error .= $locale['471']."<br />"; } 66 } 67 } 68 if ($panel_type == "php" && $panel_content == "") { $error .= $locale['472']."<br />"; } 69 if (($panel_side == "2" || $panel_side == "3") && $panel_display == "0" && $panel_url_list !== "") { 70 $error .= $locale['475']."<br />"; 71 } 72 if (!check_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")) { 73 $error .= $locale['474']."<br />"; 74 } 75 if (!$error) { 76 $result = dbquery( 77 "UPDATE ".DB_PANELS." SET 78 panel_name='".$panel_name."', panel_url_list='".$panel_url_list."', panel_restriction='".$panel_restriction."', 79 panel_type='".$panel_type."', panel_filename='".$panel_filename."', panel_content='".$panel_content."', 80 panel_access='".$panel_access."', panel_display='".$panel_display."' 81 WHERE panel_id='".$_GET['panel_id']."'" 82 ); 83 } 84 opentable($locale['480']); 85 echo "<div style='text-align:center'><br />\n"; 86 if ($error) { 87 echo $locale['481']."<br /><br />\n".$error."<br />\n"; 88 } else { 89 echo $locale['482']."<br /><br />\n"; 90 } 91 echo "<a href='panels.php".$aidlink."'>".$locale['486']."</a><br /><br />\n"; 92 echo "<a href='index.php".$aidlink."'>".$locale['487']."</a><br /><br />\n"; 93 echo "</div>\n"; 94 closetable(); 95 set_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : ""); 96 } else { 97 if ($panel_name) { 98 $result = dbcount("(panel_id)", DB_PANELS, "panel_name='".$panel_name."'"); 99 if (!empty($result)) { $error .= $locale['471']."<br />"; } 100 } 101 if ($panel_type == "php" && $panel_content == "") { $error .= $locale['472']."<br />"; } 102 if ($panel_type == "file" && $panel_filename == "none") { $error .= $locale['473']."<br />"; } 103 if (($panel_side == "2" || $panel_side == "3") && $panel_display == "0" && $panel_url_list !== "") { 104 $error .= $locale['475']."<br />"; 105 } 106 if (!check_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")) { 107 $error .= $locale['474']."<br />"; 108 } 109 if (!$error) { 110 $result = dbquery("SELECT panel_order FROM ".DB_PANELS." WHERE panel_side='".$panel_side."' ORDER BY panel_order DESC LIMIT 1"); 111 if (dbrows($result) != 0) { $data = dbarray($result); $neworder = $data['panel_order']+ 1; } else { $neworder = 1; } 112 $result = dbquery( 113 "INSERT INTO ".DB_PANELS." ( 114 panel_name, panel_filename, panel_url_list, panel_restriction, panel_content, 115 panel_side, panel_order, panel_type, panel_access, panel_display, panel_status 116 ) VALUES ( 117 '".$panel_name."', '".$panel_filename."', '".$panel_url_list."', '".$panel_restriction."', 118 '".$panel_content."', '".$panel_side."', '".$neworder."', '".$panel_type."', '".$panel_access."', 119 '".$panel_display."', '0' 120 )" 121 ); 122 } 123 opentable($locale['483']); 124 echo "<div style='text-align:center'><br />\n"; 125 if ($error) { 126 echo $locale['484']."<br /><br />\n".$error."<br />\n"; 127 } else { 128 echo $locale['485']."<br /><br />\n"; 129 } 130 echo "<a href='panels.php".$aidlink."'>".$locale['486']."</a><br /><br />\n"; 131 echo "<a href='index.php".$aidlink."'>".$locale['487']."</a><br /><br />\n"; 132 echo "</div>\n"; 133 closetable(); 134 set_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : ""); 135 } 136 } else { 137 if (isset($_POST['preview'])) { 138 $panel_name = stripinput($_POST['panel_name']); 139 $panel_url_list = stripinput($_POST['panel_url_list']); 140 $exclude_check = $_POST['panel_restriction']== "1" ? " checked='checked'" : ""; 141 $include_check = $_POST['panel_restriction']== "0" ? " checked='checked'" : ""; 142 $panel_filename = $_POST['panel_filename']; 143 $panel_content = isset($_POST['panel_content']) ? stripslash($_POST['panel_content']) : ""; 144 $panel_access = $_POST['panel_access']; 145 $panelon = isset($_POST['panel_display']) ? " checked='checked'" : ""; 146 $panelopts = $panel_side == "1" || $panel_side == "4" ? " style='display:none'" : " style='display:block'"; 147 $panel_type = $panel_filename == "none" ? "php" : "file"; 148 if (check_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")) { 149 opentable($panel_name); 150 if ($panel_type == "file") { 151 @include INFUSIONS.$panel_filename."/".$panel_filename.".php"; 152 } else { 153 eval($panel_content); 154 } 155 $panel_content = phpentities($panel_content); 156 closetable(); 157 set_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : ""); 158 } else { 159 echo "<div id='close-message'><div class='admin-message'>".$locale['global_182']."</div></div>\n"; 160 $panel_content = phpentities($panel_content); 161 } 162 } 163 if ((isset($_GET['action']) && $_GET['action']== "edit") && (isset($_GET['panel_id']) && isnum($_GET['panel_id']))) { 164 $result = dbquery( 165 "SELECT panel_name, panel_filename, panel_content, panel_type, panel_side, 166 panel_access, panel_display, panel_url_list, panel_restriction 167 FROM ".DB_PANELS." WHERE panel_id='".$_GET['panel_id']."'" 168 ); 169 if (dbrows($result)) { 170 $data = dbarray($result); 171 $panel_name = $data['panel_name']; 172 $panel_url_list = $data['panel_url_list']; 173 $exclude_check = $data['panel_restriction']== "1" ? " checked='checked'" : ""; 174 $include_check = $data['panel_restriction']== "0" ? " checked='checked'" : ""; 175 $panel_filename = $data['panel_filename']; 176 $panel_content = phpentities(stripslashes($data['panel_content'])); 177 $panel_type = $data['panel_type']; 178 $panel_side = $data['panel_side']; 179 $panel_access = $data['panel_access']; 180 $panelon = $data['panel_display']== "1" ? " checked='checked'" : ""; 181 $panelopts = $panel_side == "1" || $panel_side == "4" ? " style='display:none'" : " style='display:block'"; 182 } else { 183 redirect(FUSION_SELF.$aidlink); 184 } 185 } 186 if (isset($_GET['panel_id']) && isnum($_GET['panel_id'])) { 187 $action = FUSION_SELF.$aidlink."&panel_id=".$_GET['panel_id']."&panel_side=".$panel_side; 188 opentable($locale['450']); 189 } else { 190 if (!isset($_POST['preview'])) { 191 $panel_name = ""; 192 $panel_url_list = ""; 193 $exclude_check = " checked='checked'"; 194 $include_check = ""; 195 $panel_filename = ""; 196 $panel_content = (($panel_side == 1 || $panel_side == 4) ? "openside(\"name\");\n"."echo \"Content\";\n"."closeside();" : "opentable(\"name\");\n"."echo \"Content\";\n"."closetable();"); 197 $panel_type = ""; 198 $panel_access = ""; 199 $panelon = ""; 200 $panelopts = $panel_side == "1" || $panel_side == "4" ? " style='display:none'" : " style='display:block'"; 201 } 202 $action = FUSION_SELF.$aidlink."&panel_side=".$panel_side; 203 opentable($locale['451']); 204 } 205 $user_groups = getusergroups(); $access_opts = ""; 206 while(list($key, $user_group) = each($user_groups)){ 207 $sel = (isset($panel_access) && $panel_access == $user_group['0']? " selected='selected'" : ""); 208 $access_opts .= "<option value='".$user_group['0']."'$sel>".$user_group['1']."</option>\n"; 209 } 210 echo "<form name='editform' method='post' action='$action'>\n"; 211 echo "<table cellpadding='0' cellspacing='0' class='center'>\n<tr>\n"; 212 echo "<td class='tbl'>".$locale['452']."</td>\n"; 213 echo "<td colspan='2' class='tbl'><input type='text' name='panel_name' value='$panel_name' class='textbox' style='width:200px;' /></td>\n"; 214 echo "</tr>\n"; 215 if (isset($_GET['panel_id']) && isnum($_GET['panel_id'])) { 216 if ($panel_type == "file") { 217 echo "<tr>\n<td class='tbl'>".$locale['453']."</td>\n"; 218 echo "<td colspan='2' class='tbl'><select name='panel_filename' class='textbox' style='width:200px;'>\n"; 219 for ($i=0;$i < count($panel_list);$i++) { 220 echo "<option".($panel_filename == $panel_list[$i]? " selected='selected'" : "").">".$panel_list[$i]."</option>\n"; 221 } 222 echo "</select></td>\n</tr>\n"; 223 } 224 } else { 225 echo "<tr>\n<td class='tbl'>".$locale['453']."</td>\n"; 226 echo "<td colspan='2' class='tbl'><select name='panel_filename' class='textbox' style='width:200px;'>\n"; 227 for ($i=0;$i < count($panel_list);$i++) { 228 echo "<option".($panel_filename == $panel_list[$i]? " selected='selected'" : "").">".$panel_list[$i]."</option>\n"; 229 } 230 echo "</select> <span class='small2'>".$locale['454']."</span></td>\n</tr>\n"; 231 } 232 if (isset($_GET['panel_id']) && isnum($_GET['panel_id'])) { 233 if ($panel_type == "php") { 234 echo "<tr>\n<td valign='top' class='tbl'>".$locale['455']."</td>\n"; 235 echo "<td colspan='2' class='tbl'><textarea name='panel_content' cols='95' rows='15' class='textbox' style='width:98%'>".$panel_content."</textarea></td>\n"; 236 echo "</tr>\n"; 237 } 238 } else { 239 echo "<tr>\n<td valign='top' class='tbl'>".$locale['455']."</td>\n"; 240 echo "<td colspan='2' class='tbl'><textarea name='panel_content' cols='95' rows='15' class='textbox' style='width:98%'>".$panel_content."</textarea></td>\n"; 241 echo "</tr>\n"; 242 } 243 echo "<tr>\n"; 244 echo "<td valign='top' class='tbl'>".$locale['462']."<br />\n"; 245 echo "<span class='small2'><em>".$locale['463']."<br />/news.php<br />/forum/index.php</em></span>"; 246 echo "</td>\n<td width='200' valign='top' class='tbl'>"; 247 echo "<textarea name='panel_url_list' cols='50' rows='5' class='textbox' style='width:300px;'>".$panel_url_list."</textarea>"; 248 echo "</td>\n<td valign='top' class='tbl'>"; 249 echo "<label><input type='radio' name='panel_restriction' value='1'".$exclude_check." /> ".$locale['464']."</label><br />\n"; 250 echo "<label><input type='radio' name='panel_restriction' value='0'".$include_check." /> ".$locale['465']."</label><br />\n"; 251 echo "</td>\n</tr>\n"; 252 if (!check_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")) { 253 echo "<tr>\n<td class='tbl'>".$locale['456']."</td>\n"; 254 echo "<td colspan='2' class='tbl'><input type='password' name='admin_password' value='".(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")."' class='textbox' style='width:150px;' autocomplete='off' /></td>\n"; 255 echo "</tr>\n"; 256 } 257 echo "<tr>\n<td class='tbl'>".$locale['458']."</td>\n"; 258 echo "<td colspan='2' class='tbl'><select name='panel_access' class='textbox' style='width:150px;'>\n".$access_opts."</select></td>\n"; 259 echo "</tr>\n<tr>\n"; 260 echo "<td align='center' colspan='3' class='tbl'>\n"; 261 echo "<div id='panelopts'".$panelopts."><input type='checkbox' id='panel_display' name='panel_display' value='1'".$panelon." /> ".$locale['459']."</div>\n"; 262 echo "<br />\n"; 263 if (isset($_GET['panel_id']) && isnum($_GET['panel_id'])) { 264 if ($panel_type == "php") { 265 echo "<input type='hidden' name='panel_filename' value='none' />\n"; 266 } 267 } 268 echo "<input type='submit' name='preview' value='".$locale['460']."' class='button' />\n"; 269 echo "<input type='submit' name='save' value='".$locale['461']."' class='button' /></td>\n"; 270 echo "</tr>\n</table>\n</form>\n"; 271 closetable(); 272 } 273 274 require_once THEMES."templates/footer.php"; 275 ?> Zum Seitenanfang |
|
|
|
|
|
Manuel |
Geschrieben am 19. April 2016 06:07
|
(23)
Beiträge: 463
Registriert am: 22.09.2010
Verwarnstatus:
PHP Version 5.3.X
|
Guten Tag,
bitte lade uns das Profilfeld so wie du es hast hier hoch damit wir schauen können wo genau der Fehler liegt und in beheben können.
Mit freundlichen Grüßen
PHPFusion-4you.de - Development & Administration
Manuel
Offizieller PHPFusion-4you - Mitarbeiter
Kein Support via PN oder Messenger
|
|
|
|
|
|
granatze |
Geschrieben am 19. April 2016 07:15
|
(0)
Beiträge: 4
Registriert am: 09.04.2016
Verwarnstatus:
PHP Version 5.0.X
|
hier die datei, also ich habe noch 16 andere würde nur gerne wissen woran es liegt da wie gesagt der ordner beschrieben wurde (dateien noch nicht bearbeitet)
gruß
granatze hat folgende Datei angehängt:
Du hast nicht die Berechtigung die Anhäge dieses Themas zu sehen.
|
|
|
|
|
|
Inflames |
Geschrieben am 19. April 2016 20:33
|
(0)
Beiträge: 48
Registriert am: 27.12.2010
Verwarnstatus:
PHP Version 5.3.X
|
allso wen es die infusion von hier ist hier der link http://www.phpfus...age_id=164
den must du im infusions ordner die infusions.php datei mit einem editor öffnen und das wort TYPE um ändern in ENGINE dan die infusion instalieren und dan sollte es eigentlich funktionieren |
|
|
|
|
|
granatze |
Geschrieben am 19. April 2016 22:32
|
(0)
Beiträge: 4
Registriert am: 09.04.2016
Verwarnstatus:
PHP Version 5.0.X
|
ne leider nicht, ich verstehe nur nicht warum dann da steht in klammer muss noch bearbeitet werden da muss ja was hinzugefügt werden oder ähnlichen. |
|
|
|
|
|
Inflames |
Geschrieben am 22. April 2016 01:37
|
(0)
Beiträge: 48
Registriert am: 27.12.2010
Verwarnstatus:
PHP Version 5.3.X
|
ich hänge hier eine datei an die bitte in den locale ordner einfügen allso filezilla öffnen dan in den root dan auf locale da auf german klicken und die datei dan in den ordner user_fields einfügen danach sollte es funktionieren, bitte geb bescheid ob es auch funktioniert ok
Inflames hat folgende Datei angehängt:
Du hast nicht die Berechtigung die Anhäge dieses Themas zu sehen.
|
|
|
|
|
|
matt |
Geschrieben am 22. April 2016 21:26
|
(-2)
Beiträge: 24
Registriert am: 17.08.2010
Verwarnstatus:
PHP Version 5.3.X
|
granatze schrieb:
Hallo zusammen,
wenn ich ein avatar hochlade bekomme ich vollganden fehle: Prevented an unwanted file upload attempt!
woran liegt das?
dann hätte ich noch eine frage ich hab mir das zwar200 mal runtergeladen alles installiert wenn ich aber im benutzerveld zb. memberflage aktiviere dann steht der fehler Fehler: Bitte überprüfe die Dateien des Benutzerfeldes user_cflag!
GeSHi: PHP <?php /*-------------------------------------------------------+ | PHP-Fusion Content Management System | Copyright © 2002 - 2008 Nick Jones | http://www.php-fusion.co.uk/ +--------------------------------------------------------+ | Filename: member_cflag_include.php | Author: ZEZoar +--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at http://www.gnu.org/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ if (!defined("IN_FUSION")) { die("Access Denied"); } if (file_exists(INFUSIONS ."zwar_warscript/locale/".$settings['locale']."member_cflag_include.php")) { include_once INFUSIONS."zwar_warscript/locale/".$settings['locale']."member_cflag_include.php"; } else { include_once INFUSIONS."zwar_warscript/locale/English.php"; } if ($profile_method == "input") { require_once INFUSIONS."zwar_warscript/zwar_functions.php"; require_once INFUSIONS."zwar_warscript/locale/ccodes.php"; $user_cflag_files = makefilelist(INFUSIONS."zwar_warscript/locale/flags/", ".|..|index.php|Unknown.gif", true); $user_cflag_list = ""; $user_cflag = isset($user_data['user_cflag']) ? $user_data['user_cflag'] : ""; $sel=""; for ($i = 0; $i < count($user_cflag_files); $i++) { $ccode = preg_replace("/\.gif$/","",$user_cflag_files[$i]); $cflag_sortarray[$i]['file'] = $user_cflag_files[$i]; $cflag_sortarray[$i]['name'] = isset($zwar_countrycodes_array[strtoupper($ccode)]) ? $zwar_countrycodes_array[strtoupper($ccode)] : $ccode; } usort($cflag_sortarray, 'sort_cflagarray'); for ($i = 0; $i < count($cflag_sortarray); $i++) { $sel = ($user_cflag == $cflag_sortarray[$i]['file'] ? " selected='selected'" : ""); $user_cflag_list .= "<option value='".$cflag_sortarray[$i]['file']."'$sel>".$cflag_sortarray[$i]['name']."</option>\n"; } echo "<tr>\n"; echo "<td class='tbl' valign='top'>".$locale['zwar_4133']."</td>\n"; echo "<td class='tbl'><select name='user_cflag' class='textbox' style='width:150px;' onchange=\"zwar_show_cflag();\"> <option value=''>---</option>".$user_cflag_list."</select> <img id='user_cflag_img' src='".INFUSIONS."zwar_warscript/locale/flags/".($user_cflag != "" ? $user_cflag : "Unknown.gif")."' alt='zwar-image'/></td>\n"; echo "</tr>\n"; $replacestring = "<script type=\"text/javascript\"> function zwar_show_cflag() { imgsrc = document.inputform.user_cflag.value; document.images[\"user_cflag_img\"].src = \"".INFUSIONS."zwar_warscript/locale/flags/\" + imgsrc; } </script>"; replace_in_output("</body>", "</body>\n".$replacestring."\n"); } elseif ($profile_method == "display") { require_once INFUSIONS."zwar_warscript/zwar_functions.php"; echo "<tr>\n"; echo "<td width='1%' class='tbl1' style='white-space:nowrap' valign='top'>".$locale['zwar_4133'].":</td>\n"; echo "<td align='right' class='tbl1'>".display_zwar_flag($user_data['user_cflag'])."</td>\n"; echo "</tr>\n"; } elseif ($profile_method == "validate_insert") { $db_fields .= ", user_cflag"; $db_values .= ", '".(isset($_POST['user_cflag']) && file_exists(INFUSIONS."zwar_warscript/locale/flags/".$_POST['user_cflag'])? $_POST['user_cflag'] : "")."'"; } elseif ($profile_method == "validate_update") { $db_values .= ", user_cflag='".(isset($_POST['user_cflag']) && file_exists(INFUSIONS."zwar_warscript/locale/flags/".$_POST['user_cflag'])? $_POST['user_cflag'] : "")."'"; } ?>
gewandelt in 0.024 Sekunden, benutzt wurde GeSHi 1.0.8.10
der ordner ist beschrieben nocht nicht bearbeiten was muss ich da noch einfügen?
sorry bin etwas neuland im fusion.
aber besten dank nochmal im vorraus
1. Prevented an unwanted file upload====>>>datei zu gross bzw. wird nicht erkannt
2. Code $user_cflag = isset($user_data['user_cflag']) ? $user_data['user_cflag']: "";
falsch Angabe in der Definition
3. Keine Lust das umzucoden
4. dein Code hier da sucht sich ja einer den Bär |
|
|
|
|
|
21Matze |
Geschrieben am 23. Mai 2016 18:26
|
(1)
Beiträge: 14
Registriert am: 16.04.2012
Verwarnstatus:
PHP Version 5.3.X
|
Prevented an unwanted file upload
chmod rechte fehlen vielleicht in einigen datein oder ordner
minetype problem der webseite oder infusion
das profilfeld ist von zwar_warscript
die komplette infusion + profile felder sind für v7.00.00
die kommt nur mit 5.2 oder 5.3 noch klar
die infusion muss neu angepasst werden auf v702.07 so das sie funktioniert und stabil laufen tut. |
|
|
|
|