
Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
Kaip padaryt kai pateikia man reklama ir pasirenka reklamos dydi tarkim 468 X 60 tada pateikia ta reklama ir buna saved bet kaip padaryt kad skirtingu reklamos dydziu rasytu skirtinga teksta stai pridejimo kodas tie dydziai yra "banner_razmer"
Code
/*---------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| 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 www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+----------------------------------------------------+
| Created for PHP-FUSION 6.01.xx or 7.00.xx
| \Uffffffff 2007-2009 by AlexALX
| http://alex-php.net/
| E-mail: admin@alex-php.net
+----------------------------------------------------*/
require_once \"../../maincore.php\";
require_once \"core.php\";
if (ereg(\"^[6.01]+[0-9]\", FUS_VER)) {
require_once BASEDIR.\"subheader.php\";
require_once BASEDIR.\"side_left.php\";
} else {
require_once THEMES.\"templates/header.php\";
}
include B_INCLUDES.\"function_send_pm_mail.php\";
require_once B_BASEDIR.\"nav.php\";
if (file_exists(B_LOCALE.B_LANG.\"/global.php\")) {
include B_LOCALE.B_LANG.\"/global.php\";
} else {
include B_LOCALE.\"English/global.php\";
}
if (isset($status)) {
if ($status == \"saved\") {
$title = \"Reklamos prid\Uffffffffmo blankas\";
$message = \"\".$locale['saved2'].\"\";
opentable($title);
echo \"\n\";
closetable();
tablebreak();
}elseif ($status == \"error\") {
$title = $locale['error'];
$message = \"\".$locale['error2'].\"\";
opentable($title);
echo \"\".$message.\" \n\";
closetable();
tablebreak();
}elseif ($status == \"error_email\") {
$title = $locale['error'];
$message = \"\".$locale['error_email'].\"\";
opentable($title);
echo \"\".$message.\" \n\";
closetable();
tablebreak();
}
}
if (!isset($step)) $step = \"\";
if (isset($_POST['admin'])) {
if (checkrights($be_access_right)) {
redirect(B_BASEDIR.\"admin/index.php\".$aidlink);
}
}
if (isset($_POST['submit_baner'])) {
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"banner_exchange_setting\");
$data = dbarray($result);
if ($data['banner_code'] == \"1\") {
if (!b_check_captcha($_POST['captcha_encode'], $_POST['captcha_code'])) {
redirect(FUSION_SELF.\"?status=error\");
die;
}
}
$banner_status = 1;
$banner_summary = stripinput($_POST['banner_summary']);
$banner_email = stripinput($_POST['banner_email']);
$banner_razmer = stripinput($_POST['banner_razmer']);
$banner_version = stripinput($_POST['banner_version']);
$banner_description = stripinput($_POST['banner_description']);
$banner_kod = stripinput($_POST['banner_kod']);
$banner_url = stripinput($_POST['banner_url']);
$banner_link = stripinput($_POST['banner_link']);
$banner_tic = stripinput($_POST['banner_tic']);
$banner_ip = USER_IP;
$banner_pr = stripinput($_POST['banner_pr']);
$banner_icq = stripinput($_POST['banner_icq']);
if (isset($_POST['banner_url']) && $_POST['banner_url'] != \"\") {
$banner_url2 = \"http://\".str_replace('http://', '', stripinput($_POST['banner_url']));
} if (isset($_POST['banner_link']) && $_POST['banner_link'] != \"\") {
$banner_link2 = \"http://\".str_replace('http://', '', stripinput($_POST['banner_link']));
}
if (empty($banner_icq)) { $banner_icq = \"\"; }
if (empty($banner_summary)) {
$title = $locale['error'];
$message = \"\".$locale['error_summary'].\"\";
opentable($title);
echo \"\".$message.\" \n\";
closetable();
tablebreak();
} else if (empty($banner_url)) {
$title = $locale['error'];
$message = \"\".$locale['error_url'].\"\";
opentable($title);
echo \"\".$message.\" \";
closetable();
tablebreak();
} else if (empty($banner_email)) {
$title = $locale['error'];
$message = \"\".$locale['error_email2'].\"\";
opentable($title);
echo \"\".$message.\" \";
closetable();
tablebreak();
} else if (!preg_match(\"/^[-0-9A-Z_\.]{1,50}@([-0-9A-Z_\.]+\.){1,50}([0-9A-Z]){2,4}$/i\", $banner_email)) {
redirect(FUSION_SELF.\"?status=error_email\");
die;
} else {
if ($banner_summary != \"\" && $banner_description != \"\") {
$result = dbquery(\"INSERT INTO \".$db_prefix.\"banner_exchange (banner_user, banner_summary, banner_email, banner_icq, banner_razmer, banner_version, banner_kod, banner_url, banner_link, banner_tic, banner_pr, banner_description, banner_response, banner_status, banner_datestamp, banner_ip) VALUES('\".$userdata['user_id'].\"', '$banner_summary', '$banner_email', '$banner_icq', '$banner_razmer', '$banner_version', '$banner_kod', '$banner_url2', '$banner_link2', '$banner_tic', '$banner_pr', '$banner_description', '', '\".$banner_status.\"', '\".time().\"', '\".$banner_ip.\"')\");
$banner_id = mysql_insert_id();
if ($b_sets['c_user'] != \"0\" && $b_sets['c_user'] != \"\") {
$c_user = $b_sets['c_user'];
send_pm_mail($c_user);
}
}
redirect(FUSION_SELF.\"?banner_id=\".$banner_id.\"&status=saved\");
die;
}
}
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"banner_exchange_setting\");
$data = dbarray($result);
opentable($locale['baners_130']);
if ( defined(\"COPR\") && COPR != \"© 2007-2009 by AlexALX\") die(\"System Error.\");
echo \"\n\";
echo \" \";
if (!defined(\"COPR\")) define(\"COPR\",\"© 2007-2009 by AlexALX\");
copr ();
closetable();
echo \"\n\";
if (ereg(\"^[6.01]+[0-9]\", FUS_VER)) {
require_once BASEDIR.\"side_right.php\";
require_once BASEDIR.\"footer.php\";
} else {
require_once THEMES.\"templates/footer.php\";
}
?>
Mastau kazka su post bet nelabai isivaizduoju kaip turetu atrodyt
Redagavo Wyciokazz 2010-02-28 16:29
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img] |