Witam mam mod exstrime sms, nie działa w nim bramka sms ale znalazłem inną i mam jej kod tylko jeśli wkleję go do pliku sms.php zamiast kodu tamtej bramki to mod się psuje! Proszę o pomoc w wstawieniu tego kodu!
Moja strona to www.emedia.xt.pl
A plik sms.php wygląda tak:
<?
/*--------------------------------------------+
| PHP-Fusion 5 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
@include_once "../../config.php";
include_once "../../maincore.php";
include_once BASEDIR."subheader.php";
include_once BASEDIR."side_left.php";
if (file_exists(INFUSIONS."eXtreme_sms/locale/".$settings['locale'].".php")) {
include INFUSIONS."eXtreme_sms/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."eXtreme_sms/locale/English.php";
}
if (isset($joke_id)) {
$result = dbquery("UPDATE ".$db_prefix."joke SET joke_count=joke_count+1 WHERE joke_id='$joke_id'");
$result = dbquery("SELECT joke_url FROM ".$db_prefix."joke WHERE joke_id='$joke_id'");
$data = dbarray($result);
header ("Location:".$data['joke_url']);
}
if (!isset($cat_id)) {
opentable($locale['EJ_400']);
$result = dbquery("SELECT * FROM ".$db_prefix."joke_cat ORDER BY joke_cat_name");
$rows = dbrows($result);
if ($rows != 0) {
$columns = 2; $counter = 0;
echo "<table width='100%' cellspacing='12' cellpadding='1' class='tbl'>\n<tr>\n";
while($data = dbarray($result)) {
if ($counter != 0) if ($counter % $columns == 0) echo "</tr>\n<tr>\n";
$num = dbcount("(joke_cat)", "joke", "joke_cat='".$data['joke_cat_id']."'");
echo "<td align='left' valign='top'><a href='$PHP_SELF?cat_id=".$data['joke_cat_id']."'>".$data['joke_cat_name']."<br></a><span class='small2'><font color='green'>(sms'ów <font color='red'>$num</font color>)</font color></span>";
if ($data['joke_cat_description'] != "") echo "<br>\n<span class='small'>".$data['joke_cat_description']."</span>";
echo "</td>\n";
$counter++;
}
echo "</tr>\n</table>\n";
} else {
echo "<center><br>\n".$locale['EJ_430']."<br><br>\n</center>\n";
}
closetable();
} else {
if (!isNum($cat_id)) { header("Location:".$PHP_SELF); exit; }
if ($data = dbarray(dbquery("SELECT * FROM ".$db_prefix."joke_cat WHERE joke_cat_id='$cat_id'"))) {
opentable($locale['EJ_400'].": ".$data['joke_cat_name']);
$rows = dbcount("(*)", "joke", "joke_cat='$cat_id'");
if (!$rowstart) $rowstart = 0;
if ($rows != 0) {
$result = dbquery("SELECT * FROM ".$db_prefix."joke WHERE joke_cat='$cat_id' ORDER BY joke_name LIMIT $rowstart,8");
$numrows = dbrows($result); $i = 1;
while ($data = dbarray($result)) {
if ($data['joke_datestamp']+604800 > time()+($settings['timeoffset']*3600)) {
$new = " <span class='small'>".$locale['EJ_410']."</span>";
} else {
$new = "";
}
echo "<b>".$data['joke_name']."</b>$new\n";
if (iADMIN) {
echo " <span class='small'>(<a href='".INFUSIONS."eXtreme_sms/sms_admin.php?step=edit&joke_cat_id=".$data['joke_cat_id']."&joke_id=".$data['joke_id']."'>".$locale['EJ_2010']."</a>)</span>";
}
if ($data['joke_description'] != "")
$joke_joke = $data['joke_description'];
$joke_joke = nl2br($joke_joke);
echo "<br>".$joke_joke."<br><br>\n";
echo "<span class='small'><font class='alt'>".$locale['EJ_2003']." </font><a href='mailto:".$data['joke_mail']."'>";
if ($data['joke_nick'] != "") echo $data['joke_nick']."</a> ";
echo "<font class='alt'>".$locale['EJ_411']."</font> ".showdate("%d.%m.%y", $data['joke_datestamp'])."\n";
echo ($i != $numrows ? "<hr>\n" : "\n"); $i++;
}
closetable();
echo " <a href=\"javascript:history.go(-1)\"><b>".$locale['EJ_2009']."</b></a><br><div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,8,$rows,3,"$PHP_SELF?cat_id=$cat_id&")."\n</div>\n
<br><br>
<center>Aby Wysłać Gotowego Sms'a Skopiuj Go i wklej niżej:<br>
[color=red]<SCRIPT LANGUAGE='JavaScript' SRC='http://vbs.pl/bramka/users/sms/bramka.php?username=drakoo&&bramka_id=59841&&
ks=white&&sb=22&&wb=4&&sp=10&&wt=69&&st=199&&licz_znaki=t'> </SCRIPT></center>";[/color]
} else {
echo "<center><br>".$locale['EJ_2004']." <a href='sms_add.php'>".$locale['EJ_2005']."</a><br><br></center>\n";
closetable();
}
} else {
header("Location:".$PHP_SELF); exit;
}
}
include_once "../../side_right.php";
include_once "../../footer.php";
?>
Kolorem czerwonym zaznaczyłem kod dawnej bramki, a tu podaje kod nowej jaki uzyskałem na stronie: http://bramka.sms...
<iframe name="I1" scrolling="no" border="0" frameborder="0" width="240" height="282" marginwidth="1" marginheight="1" src="http://www.logosik.pl/gate.php?bc=191919&fc=fbfbfb&br=e9e9e9&frm=e9e9e9&btc=3399ff&www=">
</iframe><noscript><a title="bramka sms" href="http://www.logosik.pl">bramka sms</a></noscript>
PW od moderatora:
- Odświeżenie Tematu - Pieka 12.11 - 15:06
- Odświeżenie Tematu - Pieka 15.11 - 15:35
Edytowane przez szpiegss dnia 16.11.2007 14:50:12
|