PHPFusion-4you.de » PHP-Fusion v7 -Hilfe und Support » Infusions V7
 Thema drucken
AVATAR
granatze
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!
Download Code  GeSHi: 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: member_cflag_include.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 http://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. if (!defined("IN_FUSION")) { die("Access Denied"); }
  19.  
  20. if (file_exists(INFUSIONS."zwar_warscript/locale/".$settings&#91;'locale'&#93;."member_cflag_include.php")) {
  21. include_once INFUSIONS."zwar_warscript/locale/".$settings&#91;'locale'&#93;."member_cflag_include.php";
  22. } else {
  23. include_once INFUSIONS."zwar_warscript/locale/English.php";
  24. }
  25.  
  26. if ($profile_method == "input") {
  27. require_once INFUSIONS."zwar_warscript/zwar_functions.php";
  28. require_once INFUSIONS."zwar_warscript/locale/ccodes.php";
  29. $user_cflag_files = makefilelist(INFUSIONS."zwar_warscript/locale/flags/", ".|..|index.php|Unknown.gif", true);
  30. $user_cflag_list = "";
  31. $user_cflag = isset($user_data&#91;'user_cflag'&#93;) ? $user_data&#91;'user_cflag'&#93; : "";
  32. $sel="";
  33. for ($i = 0; $i < count($user_cflag_files); $i++) {
  34. $ccode = preg_replace("/\.gif$/","",$user_cflag_files&#91;$i&#93;);
  35. $cflag_sortarray&#91;$i&#93;&#91;'file'&#93; = $user_cflag_files&#91;$i&#93;;
  36. $cflag_sortarray&#91;$i&#93;&#91;'name'&#93; = isset($zwar_countrycodes_array&#91;strtoupper($ccode)&#93;) ? $zwar_countrycodes_array&#91;strtoupper($ccode)&#93; : $ccode;
  37. }
  38. usort($cflag_sortarray, 'sort_cflagarray');
  39. for ($i = 0; $i < count($cflag_sortarray); $i++) {
  40. $sel = ($user_cflag == $cflag_sortarray&#91;$i&#93;&#91;'file'&#93; ? " selected='selected'" : "");
  41. $user_cflag_list .= "<option value='".$cflag_sortarray&#91;$i&#93;&#91;'file'&#93;."'$sel>".$cflag_sortarray&#91;$i&#93;&#91;'name'&#93;."</option>\n";
  42. }
  43. echo "<tr>\n";
  44. echo "<td class='tbl' valign='top'>".$locale&#91;'zwar_4133'&#93;."</td>\n";
  45. echo "<td class='tbl'><select name='user_cflag' class='textbox' style='width:150px;' onchange=\"zwar_show_cflag();\">
  46. <option value=''>---</option>".$user_cflag_list."</select>
  47. <img id='user_cflag_img' src='".INFUSIONS."zwar_warscript/locale/flags/".($user_cflag != "" ? $user_cflag : "Unknown.gif")."' alt='zwar-image'/></td>\n";
  48. echo "</tr>\n";
  49. $replacestring = "<script type=\"text/javascript\">
  50. function zwar_show_cflag() {
  51. imgsrc = document.inputform.user_cflag.value;
  52. document.images&#91;\"user_cflag_img\"&#93;.src = \"".INFUSIONS."zwar_warscript/locale/flags/\" + imgsrc;
  53. }
  54. </script>";
  55. replace_in_output("</body>", "</body>\n".$replacestring."\n");
  56. } elseif ($profile_method == "display") {
  57. require_once INFUSIONS."zwar_warscript/zwar_functions.php";
  58. echo "<tr>\n";
  59. echo "<td width='1%' class='tbl1' style='white-space:nowrap' valign='top'>".$locale&#91;'zwar_4133'&#93;.":</td>\n";
  60. echo "<td align='right' class='tbl1'>".display_zwar_flag($user_data&#91;'user_cflag'&#93;)."</td>\n";
  61. echo "</tr>\n";
  62. } elseif ($profile_method == "validate_insert") {
  63. $db_fields .= ", user_cflag";
  64. $db_values .= ", '".(isset($_POST&#91;'user_cflag'&#93;) && file_exists(INFUSIONS."zwar_warscript/locale/flags/".$_POST&#91;'user_cflag'&#93;)? $_POST&#91;'user_cflag'&#93; : "")."'";
  65. } elseif ($profile_method == "validate_update") {
  66. $db_values .= ", user_cflag='".(isset($_POST&#91;'user_cflag'&#93;) && file_exists(INFUSIONS."zwar_warscript/locale/flags/".$_POST&#91;'user_cflag'&#93;)? $_POST&#91;'user_cflag'&#93; : "")."'";
  67. }
  68. ?>
gewandelt in 0.025 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

 
www.tbgc.deWeb
Manuel
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
 
https://phpfusion-4you.deWeb
granatze
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.





Download PHP Code  PHP
  1. Details
  2. Fehler&#58;    file_get_contents&#40;http&#58;//www&#46;zoffclan&#46;de/zoffdev/update/index&#46;php&#41;&#58; failed to open stream&#58; HTTP request failed!    Zeile&#58;    49
  3. Datei&#58;    zwar_warscript/admin/overview&#46;php    Auf Seite&#58;    infusions/zwar_warscript/zwar_admin_panel&#46;php
  4. Benutzer-Level&#58;    103    IP-Adresse&#58;    2&#46;173&#46;180&#46;168
  5. Datum&#58;    16&#46; April 2016 um 12&#58;29&#58;38    Status&#58;    
  6.  
  7. Zum Seitenanfang
  8. Quelltext &#40;Zeile&#58; 39 - 59&#41;
  9. 39            echo "<center><br/>"&#46;$error&#46;"<br/><br/><a href='javascript&#58;history&#46;back&#40;&#41;'><< "&#46;$locale&#91;'zwar_0001'&#93;&#46;"</a></center>";
  10. 40            closetable&#40;&#41;;
  11. 41        &#125; else &#123;
  12. 42            $result = dbquery&#40;"INSERT INTO "&#46;DB_ZWAR_WARS&#46;" &#40;war_info, war_added_by, war_date, war_date_add, war_teamsize, war_opp_id, war_server_id,
  13.             war_game_id, war_matchtype_id, war_gametype_id, war_password, war_squad&#41; VALUES &#40;'', '"&#46;$userdata&#91;'user_id'&#93;&#46;"', '"&#46;$war_date&#46;"', '"&#46;time&#40;&#41;&#46;"',
  14.             '', '', '', '"&#46;$war_game_id&#46;"', '', '', '', '"&#46;$war_squad_id&#46;"'&#41;"&#41;;
  15. 43        &#125;
  16. 44    &#125;
  17. 45    
  18. 46    opentable&#40;$locale&#91;'zwar_1001'&#93;&#41;;
  19. 47    echo "<center><img src='"&#46;INFUSIONS&#46;"zwar_warscript/images/zwar-logo&#46;jpg' alt='zwar'/><br/><b>"&#46;$locale&#91;'zwar_1002'&#93;&#46;"</b><br/><br/>";
  20. 48    
  21. 49    if &#40;$zwar_version = file_get_contents&#40;"http&#58;//www&#46;zoffclan&#46;de/zoffdev/update/index&#46;php"&#41;&#41; &#123;
  22. 50        if &#40;version_compare&#40;$zwar_version, $zwar_settings_array&#91;'zwar_version'&#93;, ">"&#41;&#41; &#123;
  23. 51            echo "<b><div style='color&#58;#DD0000; border&#58;1px solid #000000; backgorund-color&#58;#ffffff; padding&#58;4px; margin&#58;5px; width&#58;350px;
  24.             white-space&#58;nowrap; overflow&#58;auto;'>
  25. 52            "&#46;$locale&#91;'zwar_1003'&#93;&#46;"</div></b>
  26. 53            <b>"&#46;$locale&#91;'zwar_1024'&#93;&#46;"</b> "&#46;$zwar_version&#46;"<br/>"&#46;$locale&#91;'zwar_1025'&#93;;
  27. 54        &#125; else &#123;
  28. 55            echo "<b><div style='color&#58;#00BB00; border&#58;1px solid #000000; backgorund-color&#58;#ffffff; padding&#58;4px; margin&#58;5px; width&#58;350px;
  29.             white-space&#58;nowrap; overflow&#58;auto;'>
  30. 56            "&#46;$locale&#91;'zwar_1004'&#93;&#46;"</div></b>
  31. 57            <b>"&#46;$locale&#91;'zwar_1024'&#93;&#46;"</b> "&#46;$zwar_settings_array&#91;'zwar_version'&#93;&#46;"<br/>"&#46;$locale&#91;'zwar_1026'&#93;;
  32. 58        &#125;
  33. 59    
  34. Zum Seitenanfang
  35. Auf Seite&#58; zwar_warscript/zwar_admin_panel&#46;php
  36. 1    <?php
  37. 2    /*-------------------------------------------------------+
  38. 3    &#124; PHP-Fusion Content Management System
  39. 4    &#124; Copyright ï¿½ 2002 - 2008 Nick Jones
  40. 5    &#124; http&#58;//www&#46;php-fusion&#46;co&#46;uk/
  41. 6    +--------------------------------------------------------+
  42. 7    &#124; Filename&#58; zwar_admin_panel&#46;php
  43. 8    &#124; Author&#58; Zezoar
  44. 9    +--------------------------------------------------------+
  45. 10    &#124; This program is released as free software under the
  46. 11    &#124; Affero GPL license&#46; You can redistribute it and/or
  47. 12    &#124; modify it under the terms of this license which you
  48. 13    &#124; can read by viewing the included agpl&#46;txt or online
  49. 14    &#124; at www&#46;gnu&#46;org/licenses/agpl&#46;html&#46; Removal of this
  50. 15    &#124; copyright header is strictly prohibited without
  51. 16    &#124; written permission from the original author&#40;s&#41;&#46;
  52. 17    +--------------------------------------------------------*/
  53. 18    require_once "&#46;&#46;/&#46;&#46;/maincore&#46;php";
  54. 19    if &#40;file_exists&#40;INFUSIONS&#46;"zwar_warscript/locale/"&#46;$settings&#91;'locale'&#93;&#46;"&#46;php"&#41;&#41; &#123;
  55. 20        include_once INFUSIONS&#46;"zwar_warscript/locale/"&#46;$settings&#91;'locale'&#93;&#46;"&#46;php";
  56. 21    &#125; else &#123;
  57. 22        include_once INFUSIONS&#46;"zwar_warscript/locale/English&#46;php";
  58. 23    &#125;
  59. 24    require_once INFUSIONS&#46;"zwar_warscript/admin/zwar_header&#46;php";
  60. 25    require_once INFUSIONS&#46;"zwar_warscript/zwar_functions&#46;php";
  61. 26    add_handler&#40;"check_copy"&#41;;
  62. 27    add_to_title&#40;"&nbsp;-&nbsp;"&#46;$locale&#91;'zwar_0068'&#93;&#41;;
  63. 28    
  64. 29    $admin_page = isset&#40;$_GET&#91;'pagefile'&#93;&#41; ? $_GET&#91;'pagefile'&#93;&#58; "overview";
  65. 30    if &#40;isset&#40;$_GET&#91;'action'&#93;&#41; && !preg_match&#40;"/^&#91;0-9a-z&#93;+$/i", $_GET&#91;'action'&#93;&#41;&#41; &#123; redirect&#40;FUSION_SELF&#46;$aidlink&#41;; &#125;
  66. 31    if &#40;!zwar_CheckAccess&#40;$admin_page&#41;&#41; &#123; redirect&#40;BASEDIR&#46;"index&#46;php"&#41;; &#125;
  67. 32    
  68. 33    define&#40;"ZWARCOPY", "<br/><div align='center'><a href='http&#58;//www&#46;zoffclan&#46;de/zoffdev/' target='_blank'>ZWar</a> - &copy; 2008 by ZEZoar</div>"&#41;; 
  69. 34    
  70. 35    $zwar_admin_path = INFUSIONS&#46;"zwar_warscript/admin/";
  71. 36    
  72. 37    if &#40;file_exists&#40;$zwar_admin_path&#46;$admin_page&#46;"&#46;php"&#41;&#41; &#123;
  73. 38    require_once&#40;$zwar_admin_path&#46;$admin_page&#46;"&#46;php"&#41;;
  74. 39    &#125; else &#123;
  75. 40    require_once&#40;INFUSIONS&#46;"zwar_warscript/admin/overview&#46;php"&#41;;
  76. 41    &#125;
  77. 42    
  78. 43    echo ZWARCOPY;
  79. 44    require_once THEMES&#46;"templates/footer&#46;php";
  80. 45    ?>
  81. Zum Seitenanfang



Download PHP Code  PHP
  1. Datei ansehen&#58; zwar_warscript/admin/zwar_header&#46;php
  2. Details
  3. Fehler&#58;    Constant START_PAGE already defined    Zeile&#58;    50
  4. Datei&#58;    zwar_warscript/admin/zwar_header&#46;php    Auf Seite&#58;    infusions/zwar_warscript/zwar_admin_panel&#46;php
  5. Benutzer-Level&#58;    103    IP-Adresse&#58;    2&#46;173&#46;180&#46;168
  6. Datum&#58;    16&#46; April 2016 um 12&#58;28&#58;37    Status&#58;    
  7.  
  8. Zum Seitenanfang
  9. Quelltext &#40;Zeile&#58; 40 - 60&#41;
  10. 40    $script_url = explode&#40;"/", $_SERVER&#91;'PHP_SELF'&#93;&#46;&#40;FUSION_QUERY ? "?"&#46;FUSION_QUERY &#58; ""&#41;&#41;;
  11. 41    $url_count = count&#40;$script_url&#41;;
  12. 42    $base_url_count = substr_count&#40;BASEDIR, "/"&#41; + 1;
  13. 43    $start_page = "";
  14. 44    while &#40;$base_url_count != 0&#41; &#123;
  15. 45        $current = $url_count - $base_url_count;
  16. 46        $start_page &#46;= "/"&#46;$script_url&#91;$current&#93;;
  17. 47        $base_url_count--;
  18. 48    &#125;
  19. 49    
  20. 50    define&#40;"START_PAGE", substr&#40;$start_page, 1&#41;&#41;;
  21. 51    
  22. 52    if &#40;checkrights&#40;"ZWAR"&#41;&#41; &#123;
  23. 53        ob_start&#40;&#41;;
  24. 54        openside&#40;$locale&#91;'zwar_0028'&#93;&#41;;
  25. 55        echo"<div class='side-label'><strong>&nbsp;&nbsp; zWar</strong></div>
  26. 56        "&#46;THEME_BULLET&#46;"<a class='side' href='"&#46;FUSION_SELF&#46;$aidlink&#46;"&amp;pagefile=overview'>"&#46;$locale&#91;'zwar_0029'&#93;&#46;"</a><br/>
  27. 57        "&#46;THEME_BULLET&#46;"<a class='side' href='"&#46;FUSION_SELF&#46;$aidlink&#46;"&amp;pagefile=challenge'>"&#46;$locale&#91;'zwar_0030'&#93;&#46;"</a><br/>
  28. 58        "&#46;THEME_BULLET&#46;"<a class='side' href='"&#46;FUSION_SELF&#46;$aidlink&#46;"&amp;pagefile=joinus'>"&#46;$locale&#91;'zwar_0063'&#93;&#46;"</a><br/>
  29. 59        "&#46;THEME_BULLET&#46;"<a class='side' href='"&#46;FUSION_SELF&#46;$aidlink&#46;"&amp;pagefile=settings'>"&#46;$locale&#91;'zwar_0043'&#93;&#46;"</a><br/>
  30. 60    
  31. Zum Seitenanfang
  32. Auf Seite&#58; zwar_warscript/zwar_admin_panel&#46;php
  33. 1    <?php
  34. 2    /*-------------------------------------------------------+
  35. 3    &#124; PHP-Fusion Content Management System
  36. 4    &#124; Copyright ï¿½ 2002 - 2008 Nick Jones
  37. 5    &#124; http&#58;//www&#46;php-fusion&#46;co&#46;uk/
  38. 6    +--------------------------------------------------------+
  39. 7    &#124; Filename&#58; zwar_admin_panel&#46;php
  40. 8    &#124; Author&#58; Zezoar
  41. 9    +--------------------------------------------------------+
  42. 10    &#124; This program is released as free software under the
  43. 11    &#124; Affero GPL license&#46; You can redistribute it and/or
  44. 12    &#124; modify it under the terms of this license which you
  45. 13    &#124; can read by viewing the included agpl&#46;txt or online
  46. 14    &#124; at www&#46;gnu&#46;org/licenses/agpl&#46;html&#46; Removal of this
  47. 15    &#124; copyright header is strictly prohibited without
  48. 16    &#124; written permission from the original author&#40;s&#41;&#46;
  49. 17    +--------------------------------------------------------*/
  50. 18    require_once "&#46;&#46;/&#46;&#46;/maincore&#46;php";
  51. 19    if &#40;file_exists&#40;INFUSIONS&#46;"zwar_warscript/locale/"&#46;$settings&#91;'locale'&#93;&#46;"&#46;php"&#41;&#41; &#123;
  52. 20        include_once INFUSIONS&#46;"zwar_warscript/locale/"&#46;$settings&#91;'locale'&#93;&#46;"&#46;php";
  53. 21    &#125; else &#123;
  54. 22        include_once INFUSIONS&#46;"zwar_warscript/locale/English&#46;php";
  55. 23    &#125;
  56. 24    require_once INFUSIONS&#46;"zwar_warscript/admin/zwar_header&#46;php";
  57. 25    require_once INFUSIONS&#46;"zwar_warscript/zwar_functions&#46;php";
  58. 26    add_handler&#40;"check_copy"&#41;;
  59. 27    add_to_title&#40;"&nbsp;-&nbsp;"&#46;$locale&#91;'zwar_0068'&#93;&#41;;
  60. 28    
  61. 29    $admin_page = isset&#40;$_GET&#91;'pagefile'&#93;&#41; ? $_GET&#91;'pagefile'&#93;&#58; "overview";
  62. 30    if &#40;isset&#40;$_GET&#91;'action'&#93;&#41; && !preg_match&#40;"/^&#91;0-9a-z&#93;+$/i", $_GET&#91;'action'&#93;&#41;&#41; &#123; redirect&#40;FUSION_SELF&#46;$aidlink&#41;; &#125;
  63. 31    if &#40;!zwar_CheckAccess&#40;$admin_page&#41;&#41; &#123; redirect&#40;BASEDIR&#46;"index&#46;php"&#41;; &#125;
  64. 32    
  65. 33    define&#40;"ZWARCOPY", "<br/><div align='center'><a href='http&#58;//www&#46;zoffclan&#46;de/zoffdev/' target='_blank'>ZWar</a> - &copy; 2008 by ZEZoar</div>"&#41;; 
  66. 34    
  67. 35    $zwar_admin_path = INFUSIONS&#46;"zwar_warscript/admin/";
  68. 36    
  69. 37    if &#40;file_exists&#40;$zwar_admin_path&#46;$admin_page&#46;"&#46;php"&#41;&#41; &#123;
  70. 38    require_once&#40;$zwar_admin_path&#46;$admin_page&#46;"&#46;php"&#41;;
  71. 39    &#125; else &#123;
  72. 40    require_once&#40;INFUSIONS&#46;"zwar_warscript/admin/overview&#46;php"&#41;;
  73. 41    &#125;
  74. 42    
  75. 43    echo ZWARCOPY;
  76. 44    require_once THEMES&#46;"templates/footer&#46;php";
  77. 45    ?>
  78. Zum Seitenanfang


Download PHP Code  PHP
  1. Datei ansehen&#58; www/administration/panel_editor&#46;php
  2. Details
  3. Fehler&#58;    include&#40;&#46;&#46;/infusions/pd_stats_panel/pd_stats_panel&#46;php&#41;&#58; failed to open stream&#58; No such file or directory    Zeile&#58;    151
  4. Datei&#58;    www/administration/panel_editor&#46;php    Auf Seite&#58;    /administration/panel_editor&#46;php
  5. Benutzer-Level&#58;    103    IP-Adresse&#58;    46&#46;79&#46;242&#46;241
  6. Datum&#58;    14&#46; April 2016 um 03&#58;41&#58;35    Status&#58;    
  7.  
  8. Zum Seitenanfang
  9. Quelltext &#40;Zeile&#58; 141 - 161&#41;
  10. 141            $include_check = $_POST&#91;'panel_restriction'&#93;== "0" ? " checked='checked'" &#58; "";
  11. 142            $panel_filename = $_POST&#91;'panel_filename'&#93;;
  12. 143            $panel_content = isset&#40;$_POST&#91;'panel_content'&#93;&#41; ? stripslash&#40;$_POST&#91;'panel_content'&#93;&#41; &#58; "";
  13. 144            $panel_access = $_POST&#91;'panel_access'&#93;;
  14. 145            $panelon = isset&#40;$_POST&#91;'panel_display'&#93;&#41; ? " checked='checked'" &#58; "";
  15. 146            $panelopts = $panel_side == "1" &#124;&#124; $panel_side == "4" ? " style='display&#58;none'" &#58; " style='display&#58;block'";
  16. 147            $panel_type = $panel_filename == "none" ? "php" &#58; "file";
  17. 148            if &#40;check_admin_pass&#40;isset&#40;$_POST&#91;'admin_password'&#93;&#41; ? stripinput&#40;$_POST&#91;'admin_password'&#93;&#41; &#58; ""&#41;&#41; &#123;
  18. 149                opentable&#40;$panel_name&#41;;
  19. 150                if &#40;$panel_type == "file"&#41; &#123;
  20. 151                    @include INFUSIONS&#46;$panel_filename&#46;"/"&#46;$panel_filename&#46;"&#46;php";
  21. 152                &#125; else &#123;
  22. 153                    eval&#40;$panel_content&#41;;
  23. 154                &#125;
  24. 155                $panel_content = phpentities&#40;$panel_content&#41;;
  25. 156                closetable&#40;&#41;;
  26. 157                set_admin_pass&#40;isset&#40;$_POST&#91;'admin_password'&#93;&#41; ? stripinput&#40;$_POST&#91;'admin_password'&#93;&#41; &#58; ""&#41;;
  27. 158            &#125; else &#123;
  28. 159                echo "<div id='close-message'><div class='admin-message'>"&#46;$locale&#91;'global_182'&#93;&#46;"</div></div>\n";
  29. 160                $panel_content = phpentities&#40;$panel_content&#41;;
  30. 161    
  31. Zum Seitenanfang
  32. Auf Seite&#58; administration/panel_editor&#46;php
  33. 1    <?php
  34. 2    /*-------------------------------------------------------+
  35. 3    &#124; PHP-Fusion Content Management System
  36. 4    &#124; Copyright &#40;C&#41; PHP-Fusion Inc
  37. 5    &#124; https&#58;//www&#46;php-fusion&#46;co&#46;uk/
  38. 6    +--------------------------------------------------------+
  39. 7    &#124; Filename&#58; panel_editor&#46;php
  40. 8    &#124; Author&#58; Nick Jones &#40;Digitanium&#41;
  41. 9    &#124; Co Author&#58; WEC
  42. 10    +--------------------------------------------------------+
  43. 11    &#124; This program is released as free software under the
  44. 12    &#124; Affero GPL license&#46; You can redistribute it and/or
  45. 13    &#124; modify it under the terms of this license which you
  46. 14    &#124; can read by viewing the included agpl&#46;txt or online
  47. 15    &#124; at www&#46;gnu&#46;org/licenses/agpl&#46;html&#46; Removal of this
  48. 16    &#124; copyright header is strictly prohibited without
  49. 17    &#124; written permission from the original author&#40;s&#41;&#46;
  50. 18    +--------------------------------------------------------*/
  51. 19    require_once "&#46;&#46;/maincore&#46;php";
  52. 20    
  53. 21    if &#40;!checkrights&#40;"P"&#41; &#124;&#124; !defined&#40;"iAUTH"&#41; &#124;&#124; !isset&#40;$_GET&#91;'aid'&#93;&#41; &#124;&#124; $_GET&#91;'aid'&#93;!= iAUTH&#41; &#123; redirect&#40;"&#46;&#46;/index&#46;php"&#41;; &#125;
  54. 22    if &#40;!isset&#40;$_GET&#91;'panel_side'&#93;&#41; &#124;&#124; !isNum&#40;$_GET&#91;'panel_side'&#93;&#41; &#124;&#124; $_GET&#91;'panel_side'&#93;> 4&#41; &#123;
  55. 23        $panel_side = 1;
  56. 24    &#125; else &#123;
  57. 25        $panel_side = $_GET&#91;'panel_side'&#93;;
  58. 26    &#125;
  59. 27    
  60. 28    require_once THEMES&#46;"templates/admin_header&#46;php";
  61. 29    include LOCALE&#46;LOCALESET&#46;"admin/panels&#46;php";
  62. 30    
  63. 31    $temp = opendir&#40;INFUSIONS&#41;;
  64. 32    while &#40;$folder = readdir&#40;$temp&#41;&#41; &#123;
  65. 33        if &#40;!in_array&#40;$folder, array&#40;"&#46;","&#46;&#46;"&#41;&#41; && strstr&#40;$folder, "_panel"&#41;&#41; &#123;
  66. 34            if &#40;is_dir&#40;INFUSIONS&#46;$folder&#41;&#41; $panel_list&#91;&#93;= $folder;
  67. 35        &#125;
  68. 36    &#125;
  69. 37    closedir&#40;$temp&#41;; sort&#40;$panel_list&#41;; array_unshift&#40;$panel_list, "none"&#41;;
  70. 38    
  71. 39    if &#40;isset&#40;$_POST&#91;'save'&#93;&#41;&#41; &#123;
  72. 40        $error = "";
  73. 41        $panel_name = stripinput&#40;$_POST&#91;'panel_name'&#93;&#41;;
  74. 42        $panel_url_list = stripinput&#40;$_POST&#91;'panel_url_list'&#93;&#41;;
  75. 43        $panel_restriction = isset&#40;$_POST&#91;'panel_restriction'&#93;&#41; && $_POST&#91;'panel_restriction'&#93;== 1 ? 1 &#58; 0;
  76. 44        if &#40;$panel_name == ""&#41; $error &#46;= $locale&#91;'470'&#93;&#46;"<br />";
  77. 45        if &#40;$_POST&#91;'panel_filename'&#93;== "none"&#41; &#123;
  78. 46            $panel_filename = "";
  79. 47            $panel_content = &#40;isset&#40;$_POST&#91;'panel_content'&#93;&#41; ? addslash&#40;$_POST&#91;'panel_content'&#93;&#41; &#58; &#40;&#40;$panel_side == 1 &#124;&#124; $panel_side == 4&#41; ?
  80.             "openside&#40;\"name\"&#41;;\n"&#46;"echo \"Content\";\n"&#46;"closeside&#40;&#41;;" &#58; "opentable&#40;\"name\"&#41;;\n"&#46;"echo \"Content\";\n"&#46;"closetable&#40;&#41;;"&#41;&#41;;
  81. 48            $panel_type = "php";
  82. 49        &#125; else &#123;
  83. 50            $panel_filename = stripinput&#40;$_POST&#91;'panel_filename'&#93;&#41;;
  84. 51            $panel_content = "";
  85. 52            $panel_type = "file";
  86. 53        &#125;
  87. 54        $panel_access = isnum&#40;$_POST&#91;'panel_access'&#93;&#41; ? $_POST&#91;'panel_access'&#93;&#58; "0";
  88. 55        if &#40;$panel_side == "1" &#124;&#124; $panel_side == "4"&#41; &#123;
  89. 56            $panel_display = "0";
  90. 57        &#125; else &#123;
  91. 58            $panel_display = isset&#40;$_POST&#91;'panel_display'&#93;&#41; ? "1" &#58; "0";
  92. 59        &#125;
  93. 60        if &#40;isset&#40;$_GET&#91;'panel_id'&#93;&#41; && isnum&#40;$_GET&#91;'panel_id'&#93;&#41;&#41; &#123;
  94. 61            if &#40;$panel_name&#41; &#123;
  95. 62                $data = dbarray&#40;dbquery&#40;"SELECT panel_name FROM "&#46;DB_PANELS&#46;" WHERE panel_id='"&#46;$_GET&#91;'panel_id'&#93;&#46;"'"&#41;&#41;;
  96. 63                if &#40;$panel_name != $data&#91;'panel_name'&#93;&#41; &#123;
  97. 64                    $result = dbcount&#40;"&#40;panel_id&#41;", DB_PANELS, "panel_name='"&#46;$panel_name&#46;"'"&#41;;
  98. 65                    if &#40;!empty&#40;$result&#41;&#41; &#123; $error &#46;= $locale&#91;'471'&#93;&#46;"<br />"; &#125;
  99. 66                &#125;
  100. 67            &#125;
  101. 68            if &#40;$panel_type == "php" && $panel_content == ""&#41; &#123; $error &#46;= $locale&#91;'472'&#93;&#46;"<br />"; &#125;
  102. 69            if &#40;&#40;$panel_side == "2" &#124;&#124; $panel_side == "3"&#41; && $panel_display == "0" && $panel_url_list !== ""&#41; &#123;
  103. 70                $error &#46;= $locale&#91;'475'&#93;&#46;"<br />";
  104. 71            &#125;
  105. 72            if &#40;!check_admin_pass&#40;isset&#40;$_POST&#91;'admin_password'&#93;&#41; ? stripinput&#40;$_POST&#91;'admin_password'&#93;&#41; &#58; ""&#41;&#41; &#123;
  106. 73                $error &#46;= $locale&#91;'474'&#93;&#46;"<br />";
  107. 74            &#125;
  108. 75            if &#40;!$error&#41; &#123;
  109. 76                $result = dbquery&#40;
  110. 77                    "UPDATE "&#46;DB_PANELS&#46;" SET
  111. 78                        panel_name='"&#46;$panel_name&#46;"', panel_url_list='"&#46;$panel_url_list&#46;"', panel_restriction='"&#46;$panel_restriction&#46;"',
  112. 79                        panel_type='"&#46;$panel_type&#46;"', panel_filename='"&#46;$panel_filename&#46;"', panel_content='"&#46;$panel_content&#46;"',
  113. 80                        panel_access='"&#46;$panel_access&#46;"', panel_display='"&#46;$panel_display&#46;"'
  114. 81                    WHERE panel_id='"&#46;$_GET&#91;'panel_id'&#93;&#46;"'"
  115. 82                &#41;;
  116. 83            &#125;
  117. 84            opentable&#40;$locale&#91;'480'&#93;&#41;;
  118. 85            echo "<div style='text-align&#58;center'><br />\n";
  119. 86            if &#40;$error&#41; &#123;
  120. 87                echo $locale&#91;'481'&#93;&#46;"<br /><br />\n"&#46;$error&#46;"<br />\n";
  121. 88            &#125; else &#123;
  122. 89                echo $locale&#91;'482'&#93;&#46;"<br /><br />\n";
  123. 90            &#125;
  124. 91            echo "<a href='panels&#46;php"&#46;$aidlink&#46;"'>"&#46;$locale&#91;'486'&#93;&#46;"</a><br /><br />\n";
  125. 92            echo "<a href='index&#46;php"&#46;$aidlink&#46;"'>"&#46;$locale&#91;'487'&#93;&#46;"</a><br /><br />\n";
  126. 93            echo "</div>\n";
  127. 94            closetable&#40;&#41;;
  128. 95            set_admin_pass&#40;isset&#40;$_POST&#91;'admin_password'&#93;&#41; ? stripinput&#40;$_POST&#91;'admin_password'&#93;&#41; &#58; ""&#41;;
  129. 96        &#125; else &#123;
  130. 97            if &#40;$panel_name&#41; &#123;
  131. 98                $result = dbcount&#40;"&#40;panel_id&#41;", DB_PANELS, "panel_name='"&#46;$panel_name&#46;"'"&#41;;
  132. 99                if &#40;!empty&#40;$result&#41;&#41; &#123; $error &#46;= $locale&#91;'471'&#93;&#46;"<br />"; &#125;
  133. 100            &#125;
  134. 101            if &#40;$panel_type == "php" && $panel_content == ""&#41; &#123; $error &#46;= $locale&#91;'472'&#93;&#46;"<br />"; &#125;
  135. 102            if &#40;$panel_type == "file" && $panel_filename == "none"&#41; &#123; $error &#46;= $locale&#91;'473'&#93;&#46;"<br />"; &#125;
  136. 103            if &#40;&#40;$panel_side == "2" &#124;&#124; $panel_side == "3"&#41; && $panel_display == "0" && $panel_url_list !== ""&#41; &#123;
  137. 104                $error &#46;= $locale&#91;'475'&#93;&#46;"<br />";
  138. 105            &#125;
  139. 106            if &#40;!check_admin_pass&#40;isset&#40;$_POST&#91;'admin_password'&#93;&#41; ? stripinput&#40;$_POST&#91;'admin_password'&#93;&#41; &#58; ""&#41;&#41; &#123;
  140. 107                $error &#46;= $locale&#91;'474'&#93;&#46;"<br />";
  141. 108            &#125;
  142. 109            if &#40;!$error&#41; &#123;
  143. 110                $result = dbquery&#40;"SELECT panel_order FROM "&#46;DB_PANELS&#46;" WHERE panel_side='"&#46;$panel_side&#46;"' ORDER BY panel_order DESC LIMIT 1"&#41;;
  144. 111                if &#40;dbrows&#40;$result&#41; != 0&#41; &#123; $data = dbarray&#40;$result&#41;; $neworder = $data&#91;'panel_order'&#93;+ 1; &#125; else &#123; $neworder = 1; &#125;
  145. 112                $result = dbquery&#40;
  146. 113                    "INSERT INTO "&#46;DB_PANELS&#46;" &#40;
  147. 114                        panel_name, panel_filename, panel_url_list, panel_restriction, panel_content,
  148. 115                        panel_side, panel_order, panel_type, panel_access, panel_display, panel_status
  149. 116                    &#41; VALUES &#40;
  150. 117                        '"&#46;$panel_name&#46;"', '"&#46;$panel_filename&#46;"', '"&#46;$panel_url_list&#46;"', '"&#46;$panel_restriction&#46;"',
  151. 118                        '"&#46;$panel_content&#46;"', '"&#46;$panel_side&#46;"', '"&#46;$neworder&#46;"', '"&#46;$panel_type&#46;"', '"&#46;$panel_access&#46;"',
  152. 119                        '"&#46;$panel_display&#46;"', '0'
  153. 120                    &#41;"
  154. 121                &#41;;
  155. 122            &#125;
  156. 123            opentable&#40;$locale&#91;'483'&#93;&#41;;
  157. 124            echo "<div style='text-align&#58;center'><br />\n";
  158. 125            if &#40;$error&#41; &#123;
  159. 126                echo $locale&#91;'484'&#93;&#46;"<br /><br />\n"&#46;$error&#46;"<br />\n";
  160. 127            &#125; else &#123;
  161. 128                echo $locale&#91;'485'&#93;&#46;"<br /><br />\n";
  162. 129            &#125;
  163. 130            echo "<a href='panels&#46;php"&#46;$aidlink&#46;"'>"&#46;$locale&#91;'486'&#93;&#46;"</a><br /><br />\n";
  164. 131            echo "<a href='index&#46;php"&#46;$aidlink&#46;"'>"&#46;$locale&#91;'487'&#93;&#46;"</a><br /><br />\n";
  165. 132            echo "</div>\n";
  166. 133            closetable&#40;&#41;;
  167. 134            set_admin_pass&#40;isset&#40;$_POST&#91;'admin_password'&#93;&#41; ? stripinput&#40;$_POST&#91;'admin_password'&#93;&#41; &#58; ""&#41;;
  168. 135        &#125;
  169. 136    &#125; else &#123;
  170. 137        if &#40;isset&#40;$_POST&#91;'preview'&#93;&#41;&#41; &#123;
  171. 138            $panel_name = stripinput&#40;$_POST&#91;'panel_name'&#93;&#41;;
  172. 139            $panel_url_list = stripinput&#40;$_POST&#91;'panel_url_list'&#93;&#41;;
  173. 140            $exclude_check = $_POST&#91;'panel_restriction'&#93;== "1" ? " checked='checked'" &#58; "";
  174. 141            $include_check = $_POST&#91;'panel_restriction'&#93;== "0" ? " checked='checked'" &#58; "";
  175. 142            $panel_filename = $_POST&#91;'panel_filename'&#93;;
  176. 143            $panel_content = isset&#40;$_POST&#91;'panel_content'&#93;&#41; ? stripslash&#40;$_POST&#91;'panel_content'&#93;&#41; &#58; "";
  177. 144            $panel_access = $_POST&#91;'panel_access'&#93;;
  178. 145            $panelon = isset&#40;$_POST&#91;'panel_display'&#93;&#41; ? " checked='checked'" &#58; "";
  179. 146            $panelopts = $panel_side == "1" &#124;&#124; $panel_side == "4" ? " style='display&#58;none'" &#58; " style='display&#58;block'";
  180. 147            $panel_type = $panel_filename == "none" ? "php" &#58; "file";
  181. 148            if &#40;check_admin_pass&#40;isset&#40;$_POST&#91;'admin_password'&#93;&#41; ? stripinput&#40;$_POST&#91;'admin_password'&#93;&#41; &#58; ""&#41;&#41; &#123;
  182. 149                opentable&#40;$panel_name&#41;;
  183. 150                if &#40;$panel_type == "file"&#41; &#123;
  184. 151                    @include INFUSIONS&#46;$panel_filename&#46;"/"&#46;$panel_filename&#46;"&#46;php";
  185. 152                &#125; else &#123;
  186. 153                    eval&#40;$panel_content&#41;;
  187. 154                &#125;
  188. 155                $panel_content = phpentities&#40;$panel_content&#41;;
  189. 156                closetable&#40;&#41;;
  190. 157                set_admin_pass&#40;isset&#40;$_POST&#91;'admin_password'&#93;&#41; ? stripinput&#40;$_POST&#91;'admin_password'&#93;&#41; &#58; ""&#41;;
  191. 158            &#125; else &#123;
  192. 159                echo "<div id='close-message'><div class='admin-message'>"&#46;$locale&#91;'global_182'&#93;&#46;"</div></div>\n";
  193. 160                $panel_content = phpentities&#40;$panel_content&#41;;
  194. 161            &#125;
  195. 162        &#125;
  196. 163        if &#40;&#40;isset&#40;$_GET&#91;'action'&#93;&#41; && $_GET&#91;'action'&#93;== "edit"&#41; && &#40;isset&#40;$_GET&#91;'panel_id'&#93;&#41; && isnum&#40;$_GET&#91;'panel_id'&#93;&#41;&#41;&#41; &#123;
  197. 164            $result = dbquery&#40;
  198. 165                "SELECT panel_name, panel_filename, panel_content, panel_type, panel_side,
  199. 166                    panel_access, panel_display, panel_url_list, panel_restriction
  200. 167                FROM "&#46;DB_PANELS&#46;" WHERE panel_id='"&#46;$_GET&#91;'panel_id'&#93;&#46;"'"
  201. 168            &#41;;
  202. 169            if &#40;dbrows&#40;$result&#41;&#41; &#123;
  203. 170                $data = dbarray&#40;$result&#41;;
  204. 171                $panel_name = $data&#91;'panel_name'&#93;;
  205. 172                $panel_url_list = $data&#91;'panel_url_list'&#93;;
  206. 173                $exclude_check = $data&#91;'panel_restriction'&#93;== "1" ? " checked='checked'" &#58; "";
  207. 174                $include_check = $data&#91;'panel_restriction'&#93;== "0" ? " checked='checked'" &#58; "";
  208. 175                $panel_filename = $data&#91;'panel_filename'&#93;;
  209. 176                $panel_content = phpentities&#40;stripslashes&#40;$data&#91;'panel_content'&#93;&#41;&#41;;
  210. 177                $panel_type = $data&#91;'panel_type'&#93;;
  211. 178                $panel_side = $data&#91;'panel_side'&#93;;
  212. 179                $panel_access = $data&#91;'panel_access'&#93;;
  213. 180                $panelon = $data&#91;'panel_display'&#93;== "1" ? " checked='checked'" &#58; "";
  214. 181                $panelopts = $panel_side == "1" &#124;&#124; $panel_side == "4" ? " style='display&#58;none'" &#58; " style='display&#58;block'";
  215. 182            &#125; else &#123;
  216. 183                redirect&#40;FUSION_SELF&#46;$aidlink&#41;;
  217. 184            &#125;
  218. 185        &#125;
  219. 186        if &#40;isset&#40;$_GET&#91;'panel_id'&#93;&#41; && isnum&#40;$_GET&#91;'panel_id'&#93;&#41;&#41; &#123;
  220. 187            $action = FUSION_SELF&#46;$aidlink&#46;"&amp;panel_id="&#46;$_GET&#91;'panel_id'&#93;&#46;"&amp;panel_side="&#46;$panel_side;
  221. 188            opentable&#40;$locale&#91;'450'&#93;&#41;;
  222. 189        &#125; else &#123;
  223. 190            if &#40;!isset&#40;$_POST&#91;'preview'&#93;&#41;&#41; &#123;
  224. 191                $panel_name = "";
  225. 192                $panel_url_list = "";
  226. 193                $exclude_check = " checked='checked'";
  227. 194                $include_check = "";
  228. 195                $panel_filename = "";
  229. 196                $panel_content = &#40;&#40;$panel_side == 1 &#124;&#124; $panel_side == 4&#41; ? "openside&#40;\"name\"&#41;;\n"&#46;"echo \"Content\";\n"&#46;"closeside&#40;&#41;;" &#58;
  230.                 "opentable&#40;\"name\"&#41;;\n"&#46;"echo \"Content\";\n"&#46;"closetable&#40;&#41;;"&#41;;
  231. 197                $panel_type = "";
  232. 198                $panel_access = "";
  233. 199                $panelon = "";
  234. 200                $panelopts = $panel_side == "1" &#124;&#124; $panel_side == "4" ? " style='display&#58;none'" &#58; " style='display&#58;block'";
  235. 201            &#125;
  236. 202            $action = FUSION_SELF&#46;$aidlink&#46;"&amp;panel_side="&#46;$panel_side;
  237. 203            opentable&#40;$locale&#91;'451'&#93;&#41;;
  238. 204        &#125;
  239. 205        $user_groups = getusergroups&#40;&#41;; $access_opts = "";
  240. 206        while&#40;list&#40;$key, $user_group&#41; = each&#40;$user_groups&#41;&#41;&#123;
  241. 207            $sel = &#40;isset&#40;$panel_access&#41; && $panel_access == $user_group&#91;'0'&#93;? " selected='selected'" &#58; ""&#41;;
  242. 208            $access_opts &#46;= "<option value='"&#46;$user_group&#91;'0'&#93;&#46;"'$sel>"&#46;$user_group&#91;'1'&#93;&#46;"</option>\n";
  243. 209        &#125;
  244. 210        echo "<form name='editform' method='post' action='$action'>\n";
  245. 211        echo "<table cellpadding='0' cellspacing='0' class='center'>\n<tr>\n";
  246. 212        echo "<td class='tbl'>"&#46;$locale&#91;'452'&#93;&#46;"</td>\n";
  247. 213        echo "<td colspan='2' class='tbl'><input type='text' name='panel_name' value='$panel_name' class='textbox' style='width&#58;200px;' /></td>\n";
  248. 214        echo "</tr>\n";
  249. 215        if &#40;isset&#40;$_GET&#91;'panel_id'&#93;&#41; && isnum&#40;$_GET&#91;'panel_id'&#93;&#41;&#41; &#123;
  250. 216            if &#40;$panel_type == "file"&#41; &#123;
  251. 217                echo "<tr>\n<td class='tbl'>"&#46;$locale&#91;'453'&#93;&#46;"</td>\n";
  252. 218                echo "<td colspan='2' class='tbl'><select name='panel_filename' class='textbox' style='width&#58;200px;'>\n";
  253. 219                for &#40;$i=0;$i < count&#40;$panel_list&#41;;$i++&#41; &#123;
  254. 220                    echo "<option"&#46;&#40;$panel_filename == $panel_list&#91;$i&#93;? " selected='selected'" &#58; ""&#41;&#46;">"&#46;$panel_list&#91;$i&#93;&#46;"</option>\n";
  255. 221                &#125;
  256. 222                echo "</select></td>\n</tr>\n";
  257. 223            &#125;
  258. 224        &#125; else &#123;
  259. 225            echo "<tr>\n<td class='tbl'>"&#46;$locale&#91;'453'&#93;&#46;"</td>\n";
  260. 226            echo "<td colspan='2' class='tbl'><select name='panel_filename' class='textbox' style='width&#58;200px;'>\n";
  261. 227            for &#40;$i=0;$i < count&#40;$panel_list&#41;;$i++&#41; &#123;
  262. 228                echo "<option"&#46;&#40;$panel_filename == $panel_list&#91;$i&#93;? " selected='selected'" &#58; ""&#41;&#46;">"&#46;$panel_list&#91;$i&#93;&#46;"</option>\n";
  263. 229            &#125;
  264. 230            echo "</select>&nbsp;&nbsp;<span class='small2'>"&#46;$locale&#91;'454'&#93;&#46;"</span></td>\n</tr>\n";
  265. 231        &#125;
  266. 232        if &#40;isset&#40;$_GET&#91;'panel_id'&#93;&#41; && isnum&#40;$_GET&#91;'panel_id'&#93;&#41;&#41; &#123;
  267. 233            if &#40;$panel_type == "php"&#41; &#123;
  268. 234                echo "<tr>\n<td valign='top' class='tbl'>"&#46;$locale&#91;'455'&#93;&#46;"</td>\n";
  269. 235                echo "<td colspan='2' class='tbl'><textarea name='panel_content' cols='95' rows='15' class='textbox'
  270.                 style='width&#58;98%'>"&#46;$panel_content&#46;"</textarea></td>\n";
  271. 236                echo "</tr>\n";
  272. 237            &#125;
  273. 238        &#125; else &#123;
  274. 239            echo "<tr>\n<td valign='top' class='tbl'>"&#46;$locale&#91;'455'&#93;&#46;"</td>\n";
  275. 240            echo "<td colspan='2' class='tbl'><textarea name='panel_content' cols='95' rows='15' class='textbox'
  276.             style='width&#58;98%'>"&#46;$panel_content&#46;"</textarea></td>\n";
  277. 241            echo "</tr>\n";
  278. 242        &#125;
  279. 243        echo "<tr>\n";
  280. 244        echo "<td valign='top' class='tbl'>"&#46;$locale&#91;'462'&#93;&#46;"<br />\n";
  281. 245        echo "<span class='small2'><em>"&#46;$locale&#91;'463'&#93;&#46;"<br />/news&#46;php<br />/forum/index&#46;php</em></span>";
  282. 246        echo "</td>\n<td width='200' valign='top' class='tbl'>";
  283. 247        echo "<textarea name='panel_url_list' cols='50' rows='5' class='textbox' style='width&#58;300px;'>"&#46;$panel_url_list&#46;"</textarea>";
  284. 248        echo "</td>\n<td valign='top' class='tbl'>";
  285. 249        echo "<label><input type='radio' name='panel_restriction' value='1'"&#46;$exclude_check&#46;" /> "&#46;$locale&#91;'464'&#93;&#46;"</label><br />\n";
  286. 250        echo "<label><input type='radio' name='panel_restriction' value='0'"&#46;$include_check&#46;" /> "&#46;$locale&#91;'465'&#93;&#46;"</label><br />\n";
  287. 251        echo "</td>\n</tr>\n";
  288. 252        if &#40;!check_admin_pass&#40;isset&#40;$_POST&#91;'admin_password'&#93;&#41; ? stripinput&#40;$_POST&#91;'admin_password'&#93;&#41; &#58; ""&#41;&#41; &#123;
  289. 253            echo "<tr>\n<td class='tbl'>"&#46;$locale&#91;'456'&#93;&#46;"</td>\n";
  290. 254            echo "<td colspan='2' class='tbl'><input type='password' name='admin_password' value='"&#46;&#40;isset&#40;$_POST&#91;'admin_password'&#93;&#41; ?
  291.             stripinput&#40;$_POST&#91;'admin_password'&#93;&#41; &#58; ""&#41;&#46;"' class='textbox' style='width&#58;150px;' autocomplete='off' /></td>\n";
  292. 255            echo "</tr>\n";
  293. 256        &#125;
  294. 257        echo "<tr>\n<td class='tbl'>"&#46;$locale&#91;'458'&#93;&#46;"</td>\n";
  295. 258        echo "<td colspan='2' class='tbl'><select name='panel_access' class='textbox' style='width&#58;150px;'>\n"&#46;$access_opts&#46;"</select></td>\n";
  296. 259        echo "</tr>\n<tr>\n";
  297. 260        echo "<td align='center' colspan='3' class='tbl'>\n";
  298. 261        echo "<div id='panelopts'"&#46;$panelopts&#46;"><input type='checkbox' id='panel_display' name='panel_display' value='1'"&#46;$panelon&#46;" />
  299.         "&#46;$locale&#91;'459'&#93;&#46;"</div>\n";
  300. 262        echo "<br />\n";
  301. 263        if &#40;isset&#40;$_GET&#91;'panel_id'&#93;&#41; && isnum&#40;$_GET&#91;'panel_id'&#93;&#41;&#41; &#123;
  302. 264            if &#40;$panel_type == "php"&#41; &#123;
  303. 265                echo "<input type='hidden' name='panel_filename' value='none' />\n";
  304. 266            &#125;
  305. 267        &#125;
  306. 268        echo "<input type='submit' name='preview' value='"&#46;$locale&#91;'460'&#93;&#46;"' class='button' />\n";
  307. 269        echo "<input type='submit' name='save' value='"&#46;$locale&#91;'461'&#93;&#46;"' class='button' /></td>\n";
  308. 270        echo "</tr>\n</table>\n</form>\n";
  309. 271        closetable&#40;&#41;;
  310. 272    &#125;
  311. 273    
  312. 274    require_once THEMES&#46;"templates/footer&#46;php";
  313. 275    ?>
  314. Zum Seitenanfang
  315.  
 
www.tbgc.deWeb
Manuel
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
 
https://phpfusion-4you.deWeb
granatze
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.
 
www.tbgc.deWeb
Inflames
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 Smile
 
http://black-angel-radio.co.de/news.phpWeb
granatze
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.
 
www.tbgc.deWeb
Inflames
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 Smile
Inflames hat folgende Datei angehängt:
Du hast nicht die Berechtigung die Anhäge dieses Themas zu sehen.
 
http://black-angel-radio.co.de/news.phpWeb
matt

>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!
Download Code  GeSHi: 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: member_cflag_include.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 http://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. if (!defined("IN_FUSION")) { die("Access Denied"); }
  19.  
  20. if (file_exists(INFUSIONS."zwar_warscript/locale/".$settings&#91;'locale'&#93;."member_cflag_include.php")) {
  21. include_once INFUSIONS."zwar_warscript/locale/".$settings&#91;'locale'&#93;."member_cflag_include.php";
  22. } else {
  23. include_once INFUSIONS."zwar_warscript/locale/English.php";
  24. }
  25.  
  26. if ($profile_method == "input") {
  27. require_once INFUSIONS."zwar_warscript/zwar_functions.php";
  28. require_once INFUSIONS."zwar_warscript/locale/ccodes.php";
  29. $user_cflag_files = makefilelist(INFUSIONS."zwar_warscript/locale/flags/", ".|..|index.php|Unknown.gif", true);
  30. $user_cflag_list = "";
  31. $user_cflag = isset($user_data&#91;'user_cflag'&#93;) ? $user_data&#91;'user_cflag'&#93; : "";
  32. $sel="";
  33. for ($i = 0; $i < count($user_cflag_files); $i++) {
  34. $ccode = preg_replace("/\.gif$/","",$user_cflag_files&#91;$i&#93;);
  35. $cflag_sortarray&#91;$i&#93;&#91;'file'&#93; = $user_cflag_files&#91;$i&#93;;
  36. $cflag_sortarray&#91;$i&#93;&#91;'name'&#93; = isset($zwar_countrycodes_array&#91;strtoupper($ccode)&#93;) ? $zwar_countrycodes_array&#91;strtoupper($ccode)&#93; : $ccode;
  37. }
  38. usort($cflag_sortarray, 'sort_cflagarray');
  39. for ($i = 0; $i < count($cflag_sortarray); $i++) {
  40. $sel = ($user_cflag == $cflag_sortarray&#91;$i&#93;&#91;'file'&#93; ? " selected='selected'" : "");
  41. $user_cflag_list .= "<option value='".$cflag_sortarray&#91;$i&#93;&#91;'file'&#93;."'$sel>".$cflag_sortarray&#91;$i&#93;&#91;'name'&#93;."</option>\n";
  42. }
  43. echo "<tr>\n";
  44. echo "<td class='tbl' valign='top'>".$locale&#91;'zwar_4133'&#93;."</td>\n";
  45. echo "<td class='tbl'><select name='user_cflag' class='textbox' style='width:150px;' onchange=\"zwar_show_cflag();\">
  46. <option value=''>---</option>".$user_cflag_list."</select>
  47. <img id='user_cflag_img' src='".INFUSIONS."zwar_warscript/locale/flags/".($user_cflag != "" ? $user_cflag : "Unknown.gif")."' alt='zwar-image'/></td>\n";
  48. echo "</tr>\n";
  49. $replacestring = "<script type=\"text/javascript\">
  50. function zwar_show_cflag() {
  51. imgsrc = document.inputform.user_cflag.value;
  52. document.images&#91;\"user_cflag_img\"&#93;.src = \"".INFUSIONS."zwar_warscript/locale/flags/\" + imgsrc;
  53. }
  54. </script>";
  55. replace_in_output("</body>", "</body>\n".$replacestring."\n");
  56. } elseif ($profile_method == "display") {
  57. require_once INFUSIONS."zwar_warscript/zwar_functions.php";
  58. echo "<tr>\n";
  59. echo "<td width='1%' class='tbl1' style='white-space:nowrap' valign='top'>".$locale&#91;'zwar_4133'&#93;.":</td>\n";
  60. echo "<td align='right' class='tbl1'>".display_zwar_flag($user_data&#91;'user_cflag'&#93;)."</td>\n";
  61. echo "</tr>\n";
  62. } elseif ($profile_method == "validate_insert") {
  63. $db_fields .= ", user_cflag";
  64. $db_values .= ", '".(isset($_POST&#91;'user_cflag'&#93;) && file_exists(INFUSIONS."zwar_warscript/locale/flags/".$_POST&#91;'user_cflag'&#93;)? $_POST&#91;'user_cflag'&#93; : "")."'";
  65. } elseif ($profile_method == "validate_update") {
  66. $db_values .= ", user_cflag='".(isset($_POST&#91;'user_cflag'&#93;) && file_exists(INFUSIONS."zwar_warscript/locale/flags/".$_POST&#91;'user_cflag'&#93;)? $_POST&#91;'user_cflag'&#93; : "")."'";
  67. }
  68. ?>
gewandelt in 0.023 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.
Download Code  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
 
http://fusion-mods.deWeb
21Matze
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.
 
http://fusion-club24.deWeb

Thema verlinken
Soziale Netzwerke: Facebook Google Windows-Live Twitter Yahoo
URL:
BBcode:
HTML:
Facebook Like:


Springe ins Forum: