Und ich habe das Problem das Gmail z.B. die Bilder nicht anzeigt die eigentlich geladen werden.
Muss ich da was einstellen?
Und ich habe das Problem das Gmail z.B. die Bilder nicht anzeigt die eigentlich geladen werden.
Muss ich da was einstellen?
Okay, nur noch was kurz.
Die Variable Message geht nach rechts raus weil es nicht mehr unter dem Div ist dem ich bei Css ein Width zugeteilt habe.
Wie klinke ich den da wieder ein?
SUPERRR!!!"!!!!
hat alles geklappt. Habe das ganze auch jetzt bei Google gemeldet so das nichts geblockt wird.
Danke!
Kann jetzt wirklich geclosed werden!
Hay,
Mal als Frage,
Wie mache ich es in Php das ich zwischen HTML kurz eine Variable abfrage als Text?
$message = '
<!DOCTYPE html>
<html>
<body>
<!--WRAP-->
<!--CONTAINER-->
<div class="container">
<div id="wrap">
<div class="text">
<font class="strich" color="#eb01b2"><strong>|>> </font> <font color="white"><i> From: </i></strong>
'$message2 .=" $name";'
<br>
Alles anzeigen
Das geht nicht.
Wie kann ich sozusagen dazwischen php setzten?
MFG
## Kann geclosed werden, habe es alleine neu geschrieben
Ich habe geschrieben das ich es auch auf Nitrado getestet habe.
...
Habe kein Nitrado.
Ich sende rein per php.
Habs geschafft,
Allerdings wenn ich die Mail bekomme sagt er Spam oder Junk.
Die sagen alle man muss das Bild ALT. Allerdings bringt das nichts wenn ich im img tag ein alt einfüge mit Smiley z.B.
Hast du ne Ahnung?
Okay, habs gefixt.
Wie kann ich z.B. HTML ( Bild ) in die Nachricht einbinden kann?
<?php $name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent= ?>"<center><img src="BILD"><center>"<?php;
$recipient = "[email protected]";
$subject = "Contact Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "Thank You!";
?>
Alles anzeigen
Hier sagt er mir:
Parse error: syntax error, unexpected '?>' in /var/customers/webs/ni221073_3/html_form_send.php on line 6
MFG
lösch Zeile 4 und probier nochmal
Kann es nicht löschen, dort wird die Abfrage gemacht an wen die Mail geschickt wird.
Habe sowohl die Notz, die Email Abfrage gelöscht.
Parse error: syntax error, unexpected ' ' (T_STRING) in /var/customers/webs/ni221073_3/html_form_send.php on line 4
##EDIT
Auf meinem Nitrado Webspace sagt er das:
Parse error: syntax error, unexpected ' ' (T_STRING) in /var/customers/webs/ni221073_3/html_form_send.php on line 4
->
// CHANGE THE TWO LINES BELOW
$email_to = "[email protected]";
Hallo,
in den Logs steht nur sowas:
PHP Parse error: syntax error, unexpected '\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0' (T_STRING) in /var/www/html/send.php on line 4, referer:
Im Internet steht Php Version, meine ist 5.6
Ich weiß nicht weiter, das hat früher immer funktioniert, auf meinem Root nicht auf Lokal auch nicht.
Hallo,
habe hier ein Formular und es funzt nicht. Hat wer Ahnung was am Skript falsch ist?
<?php
if(isset($_POST['email'])) {
// CHANGE THE TWO LINES BELOW
$email_to = "[email protected]";
$email_subject = "website html form submissions";
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "These errors appear below.<br /><br />";
echo $error."<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();
}
// validation expected data exists
if(!isset($_POST['first_name']) ||
!isset($_POST['last_name']) ||
!isset($_POST['email']) ||
!isset($_POST['telephone']) ||
!isset($_POST['comments'])) {
died('We are sorry, but there appears to be a problem with the form you submitted.');
}
$first_name = $_POST['first_name']; // required
$last_name = $_POST['last_name']; // required
$email_from = $_POST['email']; // required
$telephone = $_POST['telephone']; // not required
$comments = $_POST['comments']; // required
$error_message = "";
$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
if(!preg_match($email_exp,$email_from)) {
$error_message .= 'The Email Address you entered does not appear to be valid.<br />';
}
$string_exp = "/^[A-Za-z .'-]+$/";
if(!preg_match($string_exp,$first_name)) {
$error_message .= 'The First Name you entered does not appear to be valid.<br />';
}
if(!preg_match($string_exp,$last_name)) {
$error_message .= 'The Last Name you entered does not appear to be valid.<br />';
}
if(strlen($comments) < 2) {
$error_message .= 'The Comments you entered do not appear to be valid.<br />';
}
if(strlen($error_message) > 0) {
died($error_message);
}
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
$email_message .= "First Name: ".clean_string($first_name)."\n";
$email_message .= "Last Name: ".clean_string($last_name)."\n";
$email_message .= "Email: ".clean_string($email_from)."\n";
$email_message .= "Telephone: ".clean_string($telephone)."\n";
$email_message .= "Comments: ".clean_string($comments)."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
<!-- place your own success html below -->
Thank you for contacting us. We will be in touch with you very soon.
<?php
}
die();
?>
Alles anzeigen
Liegt es vielleicht auch an Debian selber? Php ist installiert. Braucht man sonst was?
Danke im voraus!
Wie wäre es denn, wenn du den Autor anschreibst?!
Das erste was man machen sollte ist den Autor anschreiben, der hat am besten Ahnung.
Das geht aber ich glaube umständlich und nur mit kosten.
Die Map wird meist mit L3DT gemacht und da kannst du einstellen ob außen Wasser ist oder nicht.
-> Importier die Map in L3DT PREMIUM
Einstellen
Ok, ich teste
allerdings wurde mir das so vom Editor ausgeschmissen von Shinji.
Hallo
habe da ein Problem, ich habe meine SpawnSelection neu gemacht
Warning Message: File mpmissions\LazarusProtocol_v1.Altis\dialog\spawnSelection.hpp, line 8: Config: '0' encountered instead of '{'
line 8: Config: '0' encountered instead of '{'Unsupported language English in stringtable
Warning Message: Config : some input after EndOfFile.
class life_spawn_selection {
idd = 38500;
movingEnable = 0;
enableSimulation = 1;
class controlsBackground {
class MainBackground: life_RscPicture
{
idc = -1;
colorbackground[] = 0.0.0.0;
colortext[] = 1.1.1.1;
text = "images/spawn.png";
x = -0.0140624999999996 * safezoneW + safezoneX;
y = 0.0147492625368732 * safezoneH + safezoneY;
w = 1.01822916666667 * safezoneW;
h = 0.993117010816124 * safezoneH;
tooltipcolortext[] = 1.1.1.1;
tooltipcolorbox[] = 1.1.1.1;
tooltipcolorshade[] = 0.0.0.0.65;
};
};
class controls {
class RscButton0 : Life_RscButton
{
colortext[] = {1,1,1,0};
colordisabled[] = {1,1,1,0};
colorbackground[] = {1,1,1,0};
colorbackgrounddisabled[] = {1,1,1,0};
colorbackgroundactive[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
colorborder[] = {1,1,1,0};
x = 0.170434666666667 * safezoneW + safezoneX;
y = 0.416970171091446 * safezoneH + safezoneY;
w = 0.214982 * safezoneW;
h = 0.103187154375615 * safezoneH;
onButtonClick = "[] call life_fnc_spawnConfirm";
idc = -1;
};
class RscButton00 : Life_RscButton
{
colortext[] = {1,1,1,0};
colordisabled[] = {1,1,1,0};
colorbackground[] = {1,1,1,0};
colorbackgrounddisabled[] = {1,1,1,0};
colorbackgroundactive[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
colorborder[] = {1,1,1,0};
x = 0.170434666666667 * safezoneW + safezoneX;
y = 0.520677809242871 * safezoneH + safezoneY;
w = 0.1665445 * safezoneW;
h = 0.0909249439528021 * safezoneH;
onButtonClick = "endMission ""NotWhitelisted""";
idc = -1;
};
class MapView : Life_RscMapControl
{
idc = 38502;
colorbackground[] = {1,1,1,0};
coloroutside[] = {1,1,1,0};
colortext[] = {0.941176470588235,0.972549019607843,1,1};
font = puristamedium;
x = 0.4140625 * safezoneW + safezoneX;
y = 0.406096361848574 * safezoneH + safezoneY;
w = 0.4 * safezoneW;
h = 0.221238938053097 * safezoneH;
};
};
};
Alles anzeigen
Danke im voraus!
Ich weiß echt nicht weiter. Manchmal gibt es echt so komische Fehler.
Ich sehe keinen
LG
apt-get update && apt-get upgrade
habe das probiert. Sollte es damit gehen?
Servus,
wir haben ein Problem mit unserer Datenbank bezüglich A3.
Wir kriegen stetig diesen Error:
"correct table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE claus"
Das ist seit dem mysql Update soweit wir wissen allerdings haben wir null Ahnung wie man das hier ändert.
Rauslöschen bringt nichts auf lange Zeit
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Compatible with newer MySQL versions. (After MySQL-5.5)
-- This SQL uses utf8mb4 and has CURRENT_TIMESTAMP function.
--
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `lazarusprotocol`
-- Default Schema
--
CREATE DATABASE IF NOT EXISTS `lazarusprotocol` DEFAULT CHARACTER SET utf8mb4;
USE `lazarusprotocol`;
--
-- Drop procedures to ensure no conflicts
--
DROP PROCEDURE IF EXISTS `resetLifeVehicles`;
DROP PROCEDURE IF EXISTS `deleteDeadVehicles`;
DROP PROCEDURE IF EXISTS `deleteOldHouses`;
DROP PROCEDURE IF EXISTS `deleteOldGangs`;
DROP PROCEDURE IF EXISTS `deleteOldContainers`;
DROP PROCEDURE IF EXISTS `deleteOldWanted`;
DELIMITER $$
--
-- Procedures
-- Edit root to match a user in MySQL
-- For external databases: Edit localhost to match rootserver IP
--
CREATE DEFINER=`root`@`localhost` PROCEDURE `resetLifeVehicles`()
BEGIN
UPDATE `vehicles` SET `active`= 0;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteDeadVehicles`()
BEGIN
DELETE FROM `vehicles` WHERE `alive` = 0;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteOldHouses`()
BEGIN
DELETE FROM `houses` WHERE `owned` = 0;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteOldGangs`()
BEGIN
DELETE FROM `gangs` WHERE `active` = 0;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteOldContainers`()
BEGIN
DELETE FROM `containers` WHERE `owned` = 0;
END$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteOldWanted`()
BEGIN
DELETE FROM `wanted` WHERE `active` = 0;
END$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `players`
--
CREATE TABLE IF NOT EXISTS `players` (
`uid` int(6) NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
`aliases` text NOT NULL,
`pid` varchar(17) NOT NULL,
`cash` int(100) NOT NULL DEFAULT '0',
`bankacc` int(100) NOT NULL DEFAULT '0',
`coplevel` enum('0','1','2','3','4','5','6','7') NOT NULL DEFAULT '0',
`mediclevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
`civ_licenses` text NOT NULL,
`cop_licenses` text NOT NULL,
`med_licenses` text NOT NULL,
`civ_gear` text NOT NULL,
`cop_gear` text NOT NULL,
`med_gear` text NOT NULL,
`civ_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
`cop_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
`med_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
`arrested` tinyint(1) NOT NULL DEFAULT '0',
`adminlevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
`donorlevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
`blacklist` tinyint(1) NOT NULL DEFAULT '0',
`civ_alive` tinyint(1) NOT NULL DEFAULT '0',
`civ_position` varchar(64) NOT NULL DEFAULT '"[]"',
`playtime` varchar(32) NOT NULL DEFAULT '"[0,0,0]"',
`insert_time` timestamp DEFAULT CURRENT_TIMESTAMP,
`last_seen` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`uid`),
UNIQUE KEY `pid` (`pid`),
KEY `name` (`name`),
KEY `blacklist` (`blacklist`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=12 ;
-- --------------------------------------------------------
--
-- Table structure for table `vehicles`
--
CREATE TABLE IF NOT EXISTS `vehicles` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`side` varchar(16) NOT NULL,
`classname` varchar(64) NOT NULL,
`type` varchar(16) NOT NULL,
`pid` varchar(17) NOT NULL,
`alive` tinyint(1) NOT NULL DEFAULT '1',
`blacklist` tinyint(1) NOT NULL DEFAULT '0',
`active` tinyint(1) NOT NULL DEFAULT '0',
`plate` int(20) NOT NULL,
`color` int(20) NOT NULL,
`inventory` text NOT NULL,
`gear` text NOT NULL,
`fuel` double NOT NULL DEFAULT '1',
`damage` varchar(256) NOT NULL,
`insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `side` (`side`),
KEY `pid` (`pid`),
KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=2 ;
-- --------------------------------------------------------
--
-- Table structure for table `houses`
-- Needed for extDB latest update on git
--
CREATE TABLE IF NOT EXISTS `houses` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`pid` varchar(17) NOT NULL,
`pos` varchar(64) DEFAULT NULL,
`owned` tinyint(1) DEFAULT '0',
`garage` tinyint(1) NOT NULL DEFAULT '0',
`insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`,`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=4 ;
-- --------------------------------------------------------
--
-- Table structure for table `gangs`
-- Needed for extDB latest update on git
--
CREATE TABLE IF NOT EXISTS `gangs` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`owner` varchar(32) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL,
`members` text,
`maxmembers` int(3) DEFAULT '8',
`bank` int(100) DEFAULT '0',
`active` tinyint(1) DEFAULT '1',
`insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `name_UNIQUE` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `containers`
-- Needed for extDB latest update on git
--
CREATE TABLE IF NOT EXISTS `containers` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`pid` varchar(17) NOT NULL,
`classname` varchar(32) NOT NULL,
`pos` varchar(64) DEFAULT NULL,
`inventory` text NOT NULL,
`gear` text NOT NULL,
`dir` varchar(128) DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT '0',
`owned` tinyint(1) DEFAULT '0',
`insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`,`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=4;
-- --------------------------------------------------------
--
-- Table structure for table `wanted`
-- Needed for extDB latest update on git
--
CREATE TABLE IF NOT EXISTS `wanted` (
`wantedID` varchar(64) NOT NULL,
`wantedName` varchar(32) NOT NULL,
`wantedCrimes` text NOT NULL,
`wantedBounty` int(100) NOT NULL,
`active` tinyint(1) NOT NULL DEFAULT '0',
`insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`wantedID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Alles anzeigen
Danke im voraus!
MFG
~LazarusProtocol