/usr/bin/php /path/to/your/script
? <style>
.square {
width:50%;
height:50%;
}
.center {
width:50%
margin:25%;
}
</style>
<div class = "square">
<img class = "center">
</div>
<?php
if(isset($_POST['btn']) and !empty($_POST['email']))
{
$email = $_POST['email'].PHP_EOL;
file_put_contents ("maillist.txt", $email,FILE_APPEND);
}
?>
<?php
if (isset($_POST['btn']) AND iiset ($_POST['email']) ) {
$text = file_get_contents("maillist.php");
$email = $_POST['email'];
$newcontent = str_replace($email, '', $text);
file_put_contents ("maillist.php",$newcontent);
}
?>
<?php echo get_template_directory_uri(); ?>
стандартную функцию <?php bloginfo('template_directory') ?>
?<head>
<meta charset="utf-8">
<title>Супер шаблон</title>
<<link rel='stylesheet' href='<?php bloginfo('template_directory') ?>/css/bootstrap.min.css'>
<link rel='stylesheet' href='<?php bloginfo('template_directory') ?>/css/main.css'>
</head>
* Код для подключения шрифта в /css/stylename.css */
/* font-family: "ImpactRegular"; */
@font-face {
font-family: "ImpactRegular";
src: url("fonts/ImpactRegular/ImpactRegular.eot");
src: url("fonts/ImpactRegular/ImpactRegular.eot?#iefix")format("embedded-opentype"),
url("fonts/ImpactRegular/ImpactRegular.woff") format("woff"),
url("/onts/ImpactRegular/ImpactRegular.ttf") format("truetype");
font-style: normal;
font-weight: normal;
}
.biglabel {
font-family: "ImpactRegular";
}
cd /var/cache/debconf
rm *.dat
apt-get update && apt-get upgrade
$dostavka = $_POST['dostavka'];
//если выбрана Почта России
if ($dostavka == 'Po4ta') {
echo '<script>location.replace("http://url1");</script>'; exit;
}
//если выбрана компания "Деловые линии"
if ($dostavka == 'DL') {
echo '<script>location.replace("http://url2");</script>'; exit;
}
//если выбрана компания ПЭК
if ($dostavka == 'PEC') {
echo '<script>location.replace("http://url3");</script>'; exit;
}