WebWork Magazin - Design, Gestaltung, Online Medien, html

Webhosting Provider Domain

Home | Registrieren | Einloggen | Suchen | Aktuelles | GSL-Webservice | Suleitec Webhosting
Reparatur-Forum | Elektro forum | Ersatzteilshop Haushalt und Elektronik



Im Homepage und Webhosting-Forum --- PHP datei bearbeiten ?

Scripte und Programme für PHP, MYSQL. Diskussionen zur Programmierung im Web. FRagen zu CMS, Blogsoftware, Shops, Newsletter und vielen weiteren Scripten.

Forum » PHP & MySQL » PHP datei bearbeiten ? - 21 Nov 2017 Antworten
im Forum für Webhosting Homepage gefunden:
PHP datei bearbeiten ?
MobBarley
Pixelschubser
Threadstarter




Beiträge: 5

Hallo Profi's,

ich habe ein gästebuch was auf php basiert, möchte den teil "add entry" an mein gästebuch - iframe anpassen, dieser teil des gästebuchs wird durch eine entry.php datei gesteuert, ich müsste die spalten für name, email usw. etwas verschieben, das eingabefeld und die smilies näher rannrücken, da mein iframe wo es rein soll etwas kleiner ist und sein soll - im admin bereich des gb gibt es keine möglichkeit dafür, und die php datei kann ich irgendwie nicht im frontpage öffnen, ich kenne mich auch nicht mit php codes aus, also mit hilfe des win-editors bekomme ich es also nicht hin, ich suche nun ein programm, welches mir die php datei anzeigt wie vom webserver, mit der möglichkeit das sichbare dann ähnlich wie zb. in frontpage oder dreamweaver optisch einzuteilen mit der maus durch verschieben etc. pp, zumindest was eingabespalten betrifft & farben, gibt es da ein tool ???

danke für jeden tip !

cu
MobBarley


---
Jedes Dasein ist einmalig und endet tötlich

Diese Nachricht wurde geändert von: MobBarley
  Profil   Editieren   Zitieren
languitar
Foren-Team




Beiträge: 2795

So etwas gibt es nicht. Du musst dir da schon den Code zu Herzen nehmen.

  Profil   Editieren   Zitieren
MobBarley
Pixelschubser
Threadstarter




Beiträge: 5

Hi,

hier mal der code, ich wüsste gern welche stellen im code für das layout (breite & länge der eingabefelder, position der smilies & position der felder) zuständig sind:

Php code:

<?php
session_start();

include("config.inc.php");
include("functions.inc.php");
connect();
$count_entries = "";
include("lang.inc.php");

$sql_properties = mysql_query("SELECT
admin_email,
antiflood_ban,
bbcode,
captcha,
check_email,
check_homepage,
check_icq,
deactivate_html,
default_style,
default_template,
entry_length_limit,
entry_length_maximum,
entry_length_minimum,
guestbook_status,
guestbook_title,
max_word_length,
notification_entries,
release_entries,
show_ip,
smilies,
statistic,
statistic_ban,
thanks_email
FROM
".$table."_properties");

$properties = mysql_fetch_assoc($sql_properties);
$default_style = $properties['default_style'];

if ($properties['statistic']) {
include("stats.inc.php");
}

$sql_template = mysql_query("SELECT
bgcolor,
bgimage,
border,
cellpadding,
cellspacing,
html,
image_email,
image_homepage,
tablealign,
tablewidth,
tdcolor,
td2color
FROM
".$table."_template
WHERE
id='".$properties['default_template']."'");

$template = mysql_fetch_assoc($sql_template);

if (isset($_POST['send']) OR isset($_POST['preview'])) {
if (isset($_POST['save_settings']) AND $_POST['save_settings'] == 1) {
$life_time = time() + 3600;
setcookie("name", $_POST['name'], $life_time);
setcookie("email", $_POST['email'], $life_time);
setcookie("homepage", $_POST['homepage'], $life_time);
setcookie("icq", $_POST['icq'], $life_time);
setcookie("save_settings", 1, $life_time);
} else {
setcookie("name");
setcookie("email");
setcookie("homepage");
setcookie("icq");
setcookie("save_settings");
}
}

echo "<?xml version=\"1.0\" encoding=\"".$encoding."\" ?>
<!DOCTYPE html
PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"".$lang_short."\" lang=\"".$lang_short."\">
<head>
<style type=\"text/css\">
<!-- ";

getStyle();

echo " //-->
</style>
<script type=\"text/javascript\" src=\"functions.js\"></script>
<title>".$properties['guestbook_title']."</title>
</head>";

if ($template['bgimage'] == "") {
echo "<body bgcolor=\"".$template['bgcolor']."\" onload=\"NewWindow\"><div>";
}

if ($template['bgimage'] != "") {
echo "<body background=\"".$template['bgimage']."\" onload=\"NewWindow\"><div>";
}

if ($properties['guestbook_status']) {
if (isset($_POST['send']) OR isset($_POST['preview'])) {
$error_msg = "";

if ($_POST['name'] == "") {
$error_msg .= "<b>- ".$ms[3]."</b><br />";
}

if ($_POST['text'] == "") {
$error_msg .= "<b>- ".$ms[4]."</b><br />";
}

if ($properties['check_email'] AND !checkMail($_POST['email'])) {
$error_msg .= "<b>- ".$ms[5]."</b><br />";
}

if ($properties['check_homepage']) {
if ($_POST['homepage'] == "" OR $_POST['homepage'] == "http://") {
$error_msg .= "<b>- ".$ms[24]."</b><br />";
} else if (!checkHomepage($_POST['homepage'])){
$error_msg .= "<b>- ".$ms[217]."</b><br />";
}
}

if ($properties['check_icq']) {
if (!preg_match("/^[0-9]*$/is", $_POST['icq']) OR $_POST['icq'] == "") {
$error_msg .= "<b>- ".$ms[208]."</b><br />";
}
}

if (isset($_POST['icq']) AND $_POST['icq'] != "") {
if (!preg_match("/^[0-9]*$/is", $_POST['icq'])) {
$error_msg .= "<b>- ".$ms[208]."</b><br />";
}
}

if ($properties['entry_length_limit']) {
$text_length = strlen($_POST['text']);

if ($text_length > $properties['entry_length_maximum']) {
$error_msg .= "<b>- ".$ms[187]." ".$properties['entry_length_maximum']."</b><br />";
}

if ($text_length < $properties['entry_length_minimum']) {
$error_msg .= "<b>- ".$ms[188]." ".$properties['entry_length_minimum']."</b><br />";
}
}

if (extension_loaded("gd") AND $properties['captcha'] == 1 AND isset($_POST['send'])) {
if ($_POST['captcha'] == "") {
$error_msg .= "<b>- ".$ms[223]."</b><br />";
} else {
if (strtoupper($_POST['captcha']) != $_SESSION['captcha']) {
$error_msg .= "<b>- ".$ms[224]."</b><br />";
}
}
}

if (!$error_msg == "") {
echo "".$error_msg."<br />";
} else {
if (isset($_POST['send'])) {
$_POST['email'] = mysql_escape_string($_POST['email']);
$_POST['name'] = mysql_escape_string($_POST['name']);
$_POST['text'] = mysql_escape_string($_POST['text']);

$time = time();
$old_time = $time-$properties['antiflood_ban'];

mysql_query("DELETE FROM
".$table."_ip_ban
WHERE
time <= '$old_time' AND type='entry'");

$sql_select_ip = mysql_query("SELECT
ip
FROM
".$table."_ip_ban
WHERE
ip='".$_SERVER['REMOTE_ADDR']."' AND type='entry'");

$select_ip = mysql_num_rows($sql_select_ip);

if ($select_ip > 0) {
echo "<b>".$ms[15]."</b>";
} else {
mysql_query("INSERT INTO
".$table."_ip_ban (ip, time, type)
VALUES
('".$_SERVER['REMOTE_ADDR']."',
'$time',
'entry')");

mt_srand((double)microtime()*1000000);
$activation_code = mt_rand(1000000,9999999);
$activation_hashcode = md5($activation_code);

if ($properties['notification_entries'] == 1 OR $properties['thanks_email'] == 1) {
$header = "MIME-Version: 1.0\n";
$header .= "Content-type: text/plain; charset=iso-8859-1\n";
$header .= "Content-Transfer-Encoding: 8bit\n";
$header .= "X-Mailer: PHP\n";
$header .= "From: \"".$properties['guestbook_title']."\" <".$properties['admin_email'].">\n";

if ($properties['notification_entries'] == 1) {
if ($properties['release_entries']) {
$release_text = "\n\n".$ms['222']."\n".$url."/admin/admin.php?action=activate_entry&code=".$activation_hashcode."";
} else {
$release_text = "";
}

mail($properties['admin_email'], $ms['7'], "".$ms['8']."\n\n".$ms['9']." ".$_POST['name']."\n".$ms['10']." ".$_POST['email']."\n".$ms['11']." ".$_POST['homepage']."\nICQ: ".$_POST['icq']."\n\n".$ms['12']."\n".$_POST['text']."\n".$release_text."", $header);
}

if ($properties['thanks_email'] == 1) {
mail($_POST['email'], $ms['220'], $ms['221'], $header);
}
}

$sql_insert_entry = mysql_query("INSERT INTO
".$table."_entries (activation_code, date, email, homepage, icq, id, ip, name, status, text, time)
VALUES
('$activation_hashcode',
'".date("d.m.Y")."',
'".$_POST['email']."',
'',
'".$_SERVER['REMOTE_ADDR']."',
'".$_POST['name']."',
'0',
'".$_POST['text']."',
'".date("H:i")."')");

if ($sql_insert_entry AND !$properties['release_entries']) {
echo "<meta http-equiv=\"Refresh\" content=\"0; url=".$url."/index.php";

if (isset($get_lang)) {
echo "?lang=".$_GET['lang']."";
}

echo "\">";
} elseif ($properties['release_entries']) {
echo "<meta http-equiv=\"Refresh\" content=\"4; url=".$url."/index.php";

if (isset($get_lang)) {
echo "?lang=".$_GET['lang']."";
}

echo "\"><b>".$ms['13']."</b>";
} else {
echo "<b>".$ms[14]."</b>";
}
}
}

if (isset($_POST['preview'])) {
$text = $_POST['text'];

if ($properties['deactivate_html']) {
$text = htmlentities($text);
}

$_POST['email'] = htmlentities($_POST['email']);
$_POST['email'] = stripslashes($_POST['email']);
$_POST['email'] = strip_tags($_POST['email']);
$_POST['name'] = htmlentities($_POST['name']);
$_POST['name'] = stripslashes($_POST['name']);
$_POST['name'] = strip_tags($_POST['name']);
$text = badwords($text);
$text = shortWords($text, $properties['max_word_length']);
$text = nl2br($text);
$text = stripslashes($text);

if ($properties['bbcode']) {
$text = bbcode($text);
}

if ($properties['smilies']) {
$text = smilies($text);
}

if (isset($properties['release_entries']) AND $properties['release_entries'] == 1) {
$sql_count_entries = mysql_query("SELECT
id
FROM
".$table."_entries
WHERE
status='1'");
} else {
$sql_count_entries = mysql_query("SELECT
id
FROM
".$table."_entries");
}

$count_entries = mysql_num_rows($sql_count_entries);
$count_entries = $count_entries+1;
$template_data = $template['html'];
$template_data = str_replace("<\$border\$>", $template['border'], $template_data);
$template_data = str_replace("<\$cellpadding\$>", $template['cellpadding'], $template_data);
$template_data = str_replace("<\$cellspacing\$>", $template['cellspacing'], $template_data);
$template_data = str_replace("<\$comment\$>", "", $template_data);
$template_data = str_replace("<\$date\$>", date("d.m.Y"), $template_data);
$template_data = str_replace("<\$id\$>", $count_entries, $template_data);
$template_data = str_replace("<\$name\$>", $_POST['name'], $template_data);
$template_data = str_replace("<\$tablealign\$>", $template['tablealign'], $template_data);
$template_data = str_replace("<\$tablewidth\$>", $template['tablewidth'], $template_data);
$template_data = str_replace("<\$tdcolor\$>", $template['tdcolor'], $template_data);
$template_data = str_replace("<\$td2color\$>", $template['td2color'], $template_data);
$template_data = str_replace("<\$text\$>", $text, $template_data);
$template_data = str_replace("<\$time\$>", date("H:i"), $template_data);

if ($properties['show_ip']) {
$template_data = str_replace("<\$ip\$>", "IP: ".$_SERVER['REMOTE_ADDR']."<br />", $template_data);
} else {
$template_data = str_replace("<\$ip\$>", "", $template_data);
}

if ($_POST['email'] == "") {
$template_data = str_replace("<\$email\$>", "", $template_data);
$template_data = str_replace("<\$email_icon\$>", "", $template_data);
} else {
$template_data = str_replace("<\$email\$>", "<a href=\"mailto:".$_POST['email']."\" title=\"".$_POST['email']."\">".$_POST['email']."</a>", $template_data);
$template_data = str_replace("<\$email_icon\$>", "<a href=\"mailto:".$_POST['email']."\"><img src=\"".$url."/images/icons/email/".$template['image_email']."\" border=\"0\" alt=\"".$_POST['email']."\" /></a>", $template_data);
}

echo "<div align=\"".$template['tablealign']."\">
<br /><br /><br /><br />
".$template_data."
</div>";
}
}
}

echo "<br /><br /><br /> <br /><br />
<form action=\"".$url."/insert.php";

if (isset($get_lang)) {
echo "?lang=".$_GET['lang']."";
}

echo "\" method=\"post\">
<table width=\"490\" align=\"".$template['tablealign']."\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" class=\"guestbook_table2\">
<tr>
<td width=\"69\" align=\"left\">".$ms[9]."*</td><td width=\"200\" align=\"left\"><input type=\"text\" name=\"name\" size=\"28\" maxlength=\"27\" value=\"";

if (isset($_COOKIE['name']) AND $_COOKIE['name'] != "") {
echo "".$_COOKIE['name']."";
} elseif (isset($_POST['name']) AND $_POST['name'] != "") {
echo "".$_POST['name']."";
}

echo "\" tabindex=\"1\" /></td>
<td width=\"150\" rowspan=\"5\"><table width=\"109\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" class=\"guestbook_table2\">";

if ($properties['bbcode']) {
echo "<tr>
<td colspan=\"6\" align=\"center\">BBCodes:</td>
</tr>
<tr>
<td colspan=\"6\" align=\"center\"><b>Text</b> = Text</td>
</tr>
<tr>
<td colspan=\"6\" align=\"center\"><i>Text</i> = Text</td>
</tr>
<tr>
<td colspan=\"6\" align=\"center\"><u>Text</u> = Text</td>
</tr>
<tr>
<td colspan=\"6\" align=\"center\"><b><a href=\"javascript:NewWindow('".$url."/bbcodes.php";

if (isset($get_lang)) {
echo "?lang=".$_GET['lang']."";
}

echo "','BBCodes','260','495','custom','front');\">".$ms[19]."</a></b></td>
</tr>
<tr>
<td colspan=\"6\">&nbsp;</td>
</tr>";
}

if ($properties['smilies']) {
$sql_smilies_count = mysql_query("SELECT
id
FROM
".$table."_smilies");

$count_smilies = mysql_num_rows($sql_smilies_count);

if ($count_smilies > 0) {
echo "<tr>
<td colspan=\"6\" align=\"center\">".$ms[46].":</td>
</tr>
<tr>";
}

$sql_smilies = mysql_query("SELECT
bbcode,
filename,
height,
name,
width
FROM
".$table."_smilies
LIMIT
0,5");

while ($smilies = mysql_fetch_assoc($sql_smilies)) {
echo "<td align=\"center\"><img src=\"".$url."/images/smilies/".$smilies['filename']."\" width=\"".$smilies['width']."\" height=\"".$smilies['height']."\" alt=\"".$smilies['name']."\" onclick=\"document.getElementById('text').value += '".$smilies['bbcode']."'\" /></td>";
}

if ($count_smilies > 0) {
echo "</tr><tr>";
}

$sql_smilies = mysql_query("SELECT
bbcode,
filename,
height,
name,
width
FROM
".$table."_smilies
LIMIT
5,5");

while ($smilies = mysql_fetch_assoc($sql_smilies)) {
echo "<td align=\"center\"><img src=\"".$url."/images/smilies/".$smilies['filename']."\" width=\"".$smilies['width']."\" height=\"".$smilies['height']."\" alt=\"".$smilies['name']."\" onclick=\"document.getElementById('text').value += '".$smilies['bbcode']."'\" /></td>";
}

if ($count_smilies > 0) {
echo "</tr><tr>";
}


$sql_smilies = mysql_query("SELECT
bbcode,
filename,
height,
name,
width
FROM
".$table."_smilies
LIMIT
10,5");

while ($smilies = mysql_fetch_assoc($sql_smilies)) {
echo "<td align=\"center\"><img src=\"".$url."/images/smilies/".$smilies['filename']."\" width=\"".$smilies['width']."\" height=\"".$smilies['height']."\" alt=\"".$smilies['name']."\" onclick=\"document.getElementById('text').value += '".$smilies['bbcode']."'\" /></td>";
}

if ($count_smilies >= 10) {
echo "</tr>";
}

if ($count_smilies > 15) {
echo "<tr>
<td colspan=\"6\" align=\"center\"><b><a href=\"javascript:NewWindow('".$url."/smilies.php";

if (isset($get_lang)) {
echo "?lang=".$_GET['lang']."";
}

echo "','Smilies','215','200','custom','front');\">".$ms[19]."</a></b></td>
</tr>";
}
}

echo "</table>
</td>
</tr>
<tr>
<td align=\"left\">".$ms[10]."";

if (isset($properties['check_email']) AND $properties['check_email'] == 1) {
echo "*";
}

echo "</td><td align=\"left\"><input type=\"text\" name=\"email\" size=\"28\" maxlength=\"50\" value=\"";

if (isset($_COOKIE['email']) AND $_COOKIE['email'] != "") {
echo "".$_COOKIE['email']."";
} elseif (isset($_POST['email']) AND $_POST['email'] != "") {
echo "".$_POST['email']."";
}

echo"\" tabindex=\"2\" /></td>
</tr>
<tr>
<td colspan=\"2\" align=\"left\"><textarea rows=\"13\" id=\"text\" name=\"text\" cols=\"44\" tabindex=\"5\" >";

if (isset($_POST['text'])) {
echo stripslashes($_POST['text']);
}

echo "</textarea></td>
</tr>
<tr>
<td colspan=\"2\" align=\"left\"><input type=\"checkbox\" name=\"save_settings\"";

if (isset($_COOKIE['save_settings']) AND $_COOKIE['save_settings'] == 1) {
echo " checked=\"checked\"";
}

echo " value=\"1\" /> ".$ms[205]."";

if (extension_loaded("gd") AND $properties['captcha'] == 1) {
echo "<br /><br /><img src=\"".$url."/captcha.php\" width=\"100\" height=\"40\" id=\"captcha\" alt=\"Captcha\" /> &nbsp;<input type=\"text\" name=\"captcha\" size=\"6\" maxlength=\"5\" tabindex=\"6\" />";
}

echo "</td>
</tr>
<tr>
<td colspan=\"2\" align=\"left\"><input type=\"submit\" name=\"send\" value=\"".$ms[20]."\" tabindex=\"7\" /> <input type=\"submit\" name=\"preview\" value=\"".$ms[189]."\" tabindex=\"8\" /></td>
</tr>
</table>
</form>";
} else {
echo "<b>".$ms[34]."</b>";
}

echo "</div>
</body>
</html>";
?>

---
Jedes Dasein ist einmalig und endet tötlich

Diese Nachricht wurde geändert von: MobBarley
  Profil   Editieren   Zitieren
 

Antworten


Forum » PHP & MySQL » PHP datei bearbeiten ?

Aktuelle Beiträge zur Hilfe im Forum für Homepage - PHP datei bearbeiten ? im Forum Homepage Hosting AntwortenLetztes Posting
Top 10 Forex Brokers and Trading Platforms to trade online
in "PHP & MySQL"
0 16.11.2017 09:37 von Pelelliki
Schnell viel Geld ohne Aufwand verdienen, mit dem Smartphone
in "PHP & MySQL"
5 07.09.2017 19:25 von Angel26
Rangliste (Ohne Mysql) (Kompliziertes Ordner System)
in "PHP & MySQL"
0 03.09.2017 22:01 von Tainor
CMS für Online Shop
in "PHP & MySQL"
20 07.08.2017 05:54 von Isasimon
Visual Composer selber programmieren?
in "PHP & MySQL"
0 22.01.2017 23:45 von Redji
php preg_replace_callback für dynamischen Link
in "PHP & MySQL"
0 05.07.2016 11:02 von Rm21
PHP Code verschlüsseln
in "PHP & MySQL"
20 21.02.2016 21:25 von Kilian1
migrierter WP-Blog läuft nicht ...
in "PHP & MySQL"
0 04.02.2016 02:01 von Oxygon
migrierter WP-Blog läuft nicht ...
in "PHP & MySQL"
0 04.02.2016 02:01 von Oxygon
Fertige PHP Scripte für Ihre Homepage
in "PHP & MySQL"
0 16.12.2015 12:02 von PHP-Script-Shop
Callback Befehl ++ Session ID Eintrag +++
in "PHP & MySQL"
2 16.12.2015 11:57 von PHP-Script-Shop
PHP befehl ausführen
in "PHP & MySQL"
9 16.12.2015 11:52 von PHP-Script-Shop
suche online community script
in "PHP & MySQL"
3 16.12.2015 11:51 von PHP-Script-Shop
Text basierender Chat
in "PHP & MySQL"
5 16.12.2015 11:51 von PHP-Script-Shop



Besucher : 5376099    Heute : 467     Gestern : 1431     Online : 24     21.11.2017    9:18      0 Besucher in den letzten 60 Sekunden        
Die letzten 30 Referrer :

1 4:17 - google.com/search - content
2 4:15 - google.com/search - content
3 3:57 - google.com/search - content
4 3:13 - google.com/search - content
5 2:41 - google.com/search - content
6 2:22 - google.com/search - content
7 2:18 - google.com/search - content
8 2:16 - google.com/search - content
9 2:13 - google.com/search - content
10 2:12 - google.com/search - content
11 2:10 - google.com/search - content
12 2:09 - google.com/search - content
13 2:05 - google.com/search - content
14 2:02 - google.com/search - content
15 1:25 - google.com/search - content
16 1:02 - google.com/search - content
17 23:32 - google.com/search - content
18 22:58 - google.com/search - content
19 21:09 - google.com/search - content
20 21:00 - google.com/search - content
21 20:51 - bing.com/search - patchday november 2017
22 18:04 - google.com/search - content
23 18:03 - google.com/search - content
24 18:00 - google.com/search - content
25 17:34 - google.com/search - content
26 17:30 - google.com/search - content
27 16:08 - google.com/search - content
28 15:44 - bing.com/search - knistern boxen pc
29 15:13 - google.com/search - content
30 14:30 - google.com/search - content

Nach oben