Peržiūrėti temą
v7 themes.php padekit
|
vadeiva |
parašyta 2012-12-06 16:34
|

Apšylantis

Reputacija:
0
Pranešimai: 71
Įstojo: 2012-06-02
|
sveiki kuriu tema tam kad padetumet man ir tikrai manau sita tema daug kam pades kas nori facebook padarit naujenose ir stripsniose taigi imesiu savo themes.php jus man padesit imest viena koda nes man vis klaida meta o as jums dosiu facebook kodus naujenoms ir stripsniams ir pasakisiu mazdauk kur ka kist taigi,
acidarome themes.php >
beveik paciame virsui ira eilute Codefunction render_page($license = false) {
ir po ja ikisam sita koda >
Codeecho \"\n\";
echo \"\n\";
add_to_head(\"\");
tada beveik pacioja apacioja randame Code function render_news($subject, $news, $info) {
ir sitoj vietoj reikia kaskaip ikist sita koda man nesigauna tai padekit
kodas kur terpti po Codefunction render_news($subject, $news, $info) {
va
Codeif (SHAREING) {
//Share Buttons
echo \"\";
//FB Like button
echo \" \";
//Twitter
echo \" \";
echo \"\";
echo \" \";
//Google+
echo \" \";
//End share buttons
echo \" \";
}
closetable();
}
mano themes.php biski kitos del to negaliu iterpt ant kito dizaino puikeu veikia
va mano themes.php
Code
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }
define(\"THEME_BULLET\", \"�\");
require_once INCLUDES.\"theme_functions_include.php\";
function render_page($license = false) {
echo \"\n\";
echo \"\n\";
add_to_head(\"\");
add_to_head('
');
add_to_head(\"\");
function getnextstring(&$data)
{
$temp=\"\";
$counter=0;
while (ord($data[$counter++])!=0) $temp.=$data[$counter-1];
$data=substr($data,strlen($temp)+1);
return $temp;
}
function getnextbytevalue(&$data)
{
$temp=ord($data[0]);
$data=substr($data,1);
return $temp;
}
function serveris($ip,$port,$idas) {
$ip = $ip;
$port = $port;
$packet = \"\xFF\xFF\xFF\xFFTSource Engine Query\x00\";
$live_server = fsockopen(\"udp://\".$ip.\":\".$port.\"\");
if(!$live_server)
{
$output = \"Off\";
}
else
{
fwrite($live_server, $packet);
socket_set_timeout($live_server,1,0);
$junk = fread($live_server,5);
$status = socket_get_status($live_server);
$do = 1;
$server_info= \"\";
while($do)
{
$str_1 = fread($live_server,1);
$server_info .= $str_1;
$status = socket_get_status($live_server);
if($status[\"unread_bytes\"] == 0) {$do = 0;}
}
fclose($live_server);
if (strlen($server_info) > 0)
{
$success = 1;
$junk = getnextstring($server_info);
$servername = getnextstring($server_info);
$map = getnextstring($server_info);
$junk = getnextstring($server_info);
$junk = getnextstring($server_info);
$players = getnextbytevalue($server_info);
$maxplayers = getnextbytevalue($server_info);
}
if ($players != '') {
$players = $players;
} else {
$players = \"0\";
}
if ($maxplayers != '')
{
$maxplayers = $maxplayers;
}
else
{
$maxplayers = \"0\";
}
if ($players < $maxplayers)
{
$output = \"Ijungtas\";
}
else
{
$output = \"Full\";
}
if ($output != \"Full\" and $players != \"0\" or $maxplayers != \"0\")
{
$output = $output;
}
else
{
$output = \"Isjungtas\";
}
if ($map != '')
{
$map = $map;
}
else
{
$map = \"-----\";
}
if ($servername != '') {
$servername = $servername;
} else {
$servername = \"Serveris neveikia\";
}
echo \"
Server: \".$servername.\"
IP: \".$ip.\":\".$port.\"
Prisijungusiu zaideju: \".$players.\"
Zemelapis: \".$map.\"
Statusas: \".$output.\"
Balsuoti uz serveri\";
echo \"\";
}
}
global $settings, $main_style, $locale, $mysql_queries_time;
//Header
echo \"
\";
echo \"
\";
echo \"\n\n\";
echo\"\";
echo \"\n \n\";
echo \" |
\";
echo \"
\";
echo '';
echo ' ';
echo '
Taigi pagaliau sulaukeme 100 nario tai Baika. Sveikiname! ir tikime sulaukti daugiau.sia proga Medalis.
';
echo '
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type
specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of Lorem Ipsum.
';
echo '
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type
specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of Lorem Ipsum.
';
echo '
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type
specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of Lorem Ipsum.
';
echo '
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type
specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of Lorem Ipsum.
';
echo \" \";
echo \" |
\";
echo \"
\";
echo \"
\";
echo \"\";
if(LEFT){echo \"\";}
echo \"\";
if(RIGHT){echo \"\";}
echo \"
\".LEFT.\" | \".U_CENTER.CONTENT.L_CENTER.\" | \".RIGHT.\" |
\";
/////FOOTER
echo \"\";
}
/* New in v7.02 - render comments */
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
if (!empty($c_data)){
echo \"\n\";
} else {
echo $locale['c101'].\"\n\";
}
closetable();
}
function render_news($subject, $news, $info) {
echo \"\n\n\";
echo \"\n\";
echo \"\n\";
echo \"\n\";
echo \"\n\";
echo \"\n\";
echo \"\n | \".$subject.\" |
| \".$info['news_comments'].\" | | \n\";
echo \"\n\n\";
echo \"\n\";
echo \"\n\".$info['cat_image'].$news.\" | \n |
\n\n
\n\n\";
}
function render_article($subject, $article, $info) {
echo \"\n\n\";
echo \"\n\";
echo \"\n\";
echo \"\n\";
echo \"\n
\n\";
echo \"\n\n\";
echo \"\n\";
echo \"\n\n\";
echo \"\n\n
\".($info['article_breaks'] == \"y\" ? nl2br($article) : $article).\" |
|
\n\";
}
function opentable($title) {
echo \"\n\n\";
echo \"\n\";
echo \"\n\n\";
echo \"\n\";
echo \"\n\n
\n
\".$title.\" |
\n\";
}
function closetable() {
echo \" |
|
\n\";
}
function openside($title) {
echo \"
\n\n\";
echo \"\n\";
echo \"\n\";
echo \"\n\";
echo \"\n\n\";
echo \"\n\n\";
echo \"\n\n\";
}
function closeside() {
echo \" | \n |
\";
}
function prisijungimas($title) {
echo \"\n\n\";
echo \"\n\";
echo \"\n\n\";
echo \"\n\n
\".$title.\" |
\";
}
function endprisijungimas() {
echo \" |
\n
\";
}
?>
$c_makepagenav = '';
if ($c_info['c_makepagenav'] !== FALSE) {
echo $c_makepagenav = \"
}
foreach($c_data as $data) {
$comm_count = \"#\".$data['i'].\"\";
echo \"
if ($settings['comments_avatar'] == \"1\") { echo \"\".$data['user_avatar'].\"\n\"; }
echo \"\".$comm_count.\"\n\n\";
echo \"\".$data['comment_name'].\"\n
\n\";
echo \"\".$data['comment_datestamp'].\"\n\";
if ($data['edit_dell'] !== false) { echo \"
\n\".$data['edit_dell'].\"\n\n\"; }
echo \"
}
echo $c_makepagenav;
if ($c_info['admin_link'] !== FALSE) {
echo \"
}
echo \"