Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 1165
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ??? Sitem deki Haberleri ..
(25357 okuma, 26 yanıt)
 Free Hosta Php Nuke Kurul..
(16447 okuma, 14 yanıt)
 EKLENTİ: Misafire mesajın..
(36856 okuma, 38 yanıt)
 Php Nuke 9.0 Geliyor..
(20848 okuma, 19 yanıt)
 Bu başlık için mesaj bulu..
(14007 okuma, 15 yanıt)
 Facebook Sohbet Tipi Sohb..
(17736 okuma, 15 yanıt)
 üye aktivasyon..
(10630 okuma, 8 yanıt)
 Facebook tarzı altbar... ..
(6257 okuma, 1 yanıt)
 kaldırmak istediğim bölüm..
(6530 okuma, 2 yanıt)
 Resimli RSS..
(23217 okuma, 25 yanıt)
 Onay linkini kaldirmak..
(11065 okuma, 8 yanıt)
 Yardım :( Site açılırken ..
(6633 okuma, 2 yanıt)
 .Htaccess ile uzantıda ke..
(8257 okuma, 4 yanıt)
 block genişliği..
(5701 okuma, 1 yanıt)
 Haber Resimleri ve Slide ..
(14373 okuma, 12 yanıt)
 Foruma büyük boyutlu resi..
(7296 okuma, 3 yanıt)
 Php-Nuke 8.0 Paket..
(9419 okuma, 6 yanıt)
 Hangi sürümü önerirsiniz?..
(10481 okuma, 8 yanıt)
 ethai1 3..
(13136 okuma, 10 yanıt)
 Yeni PEHASPESEO..
(69800 okuma, 82 yanıt)
 Türkçe Karakter sorunu ?..
(37702 okuma, 36 yanıt)
 tek modul için sağ ve sol..
(11393 okuma, 8 yanıt)
 Php-nuke8.0 başlıklarda t..
(10574 okuma, 8 yanıt)
 Phpden iyi anlayan..
(5411 okuma, 1 yanıt)
 Php nuke 7.6 - 3.1 patch ..
(73154 okuma, 89 yanıt)
 Mp3 Üst Player Yardım..
(29478 okuma, 40 yanıt)
 Toplu üyelik silme?..
(11105 okuma, 8 yanıt)
 Çözümleyemediğim hata.....
(12366 okuma, 11 yanıt)
 bloğu kayan hale getirmek..
(5960 okuma, 2 yanıt)
 Makale modulu..
(8573 okuma, 5 yanıt)
 PHP-Nuke Haber V.1 Paylas..
(85164 okuma, 121 yanıt)
 title değiştirme..
(10289 okuma, 6 yanıt)
 Arkadaşlar bu sorunun çöz..
(10023 okuma, 6 yanıt)
 Php Nuke 8.1..
(4339 okuma, 0 yanıt)
 merhaba..
(10262 okuma, 9 yanıt)
 Anasayfa için boş modül o..
(13477 okuma, 13 yanıt)
 admin panelinde Access De..
(6375 okuma, 2 yanıt)
 Bu başlığa hiç cevap gelm..
(26361 okuma, 25 yanıt)
 Nuke Tema yapilisi..
(17094 okuma, 16 yanıt)
 Mavisce-net temasina bann..
(8714 okuma, 6 yanıt)
 PHP-Nuke wTeam - eklentil..
(6629 okuma, 2 yanıt)
 coppermine hata..
(10672 okuma, 8 yanıt)
 içerik tanıtımı..
(6270 okuma, 2 yanıt)
 Haber Ve İçeriğe Resim Ek..
(7154 okuma, 3 yanıt)
 google keywords..
(8949 okuma, 6 yanıt)
 8.0'da html sorunu..
(5492 okuma, 1 yanıt)
 PHP-Nuke_8.1.3.5+NukeSent..
(53988 okuma, 76 yanıt)
 üye olunurken gereksiz is..
(10001 okuma, 7 yanıt)
 Arkadaşlar kolifa haber s..
(6348 okuma, 2 yanıt)
 Hesabınız'a tıklayınca te..
(10482 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - arkadaşlar sorun çok,acemilik de çok.....?
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


arkadaşlar sorun çok,acemilik de çok.....?
Sayfaya git 1, 2  Sonraki
 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-09, 13:24:40    Mesaj konusu: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

Arkadaşlar,forum yönetimde iken "forum önizlemeye" tıklayınca:
Fatal error: Call to undefined function: opentable() in /home/divrigli/public_html/mainfile.php on line 236
böyle çıkıyor.Bu satır numarası nasıl bulunuyor,gerçi bulsam nasıl düzeltecem bilmiyorum.

Kent Rehberi yükledim önce her şey normaldi.sonra editör ekliyeyim dedim kent rehberi için editör eklemeye çalıştığımda baktımki rehber yönetici düzenlenin içinde yok.Kent rehberinden sonra şiir modülü yükledim ondanmı acaba böyle oldu yönetici düzenlede şiir yönetimi var rehber yok.

başaka bir sorun,moderator ekledim,data center bloğunda mod admin gözüküyor.

Radyo dinlenin içinden memleketimin radyosunu pop-up pencere içinde göstereyim dedim,olmuyor. java sorunu var galiba.java nasıl siteye ekleniyor,pop-up pencere nasıl yapılıyor.Gerçi bir kaç sitede hazır kod yazma yeri var orada yapıyorum atıyorum bloğa sanki o bloğu hiç yüklememiş gibi oluyor.

Siteye yeni üye olanlarda foruma yazı yazanlarda yıldız otamatik gelmiyor,forum yönetiminden hepsine yeni üye olanlara ben kendim atıyorum.burada forum yönetiminde üye,aktif....falan bunlar nasıl ayarlanıyor mesaj sayısı girip özel rütbe olarak ata dediğim zaman otomatik yıldızlar gelirmi.?

Birde dönüşümlü reklam nasıl oluyor.Mesala elimde üç tane reklam var üstte veya yan bloklarda o üçünüde veya ikisini de 20 şer saniye ara ile nasıl gösteririm.java script olmadığı için reklam swf olursa gösterilemez mi hatamı verir ? dönüşümlü reklam nasıl ayarlanır ?

Her zaman, aynı zamanda hostumun sahibide olan, netopsiyon forumlarını dolaşıyorum,tam anlayacağım şekilde sorunlarıma cevap alamıyorum.Bazen tam buldum derken forum yöneticisi bu konuda başlık açılmıştı mesajı yazıyor ,dolaşıyorum bulamıyorum.

Şöyle bir fikrim var forumlar için arama kutusu konabilirmi? belki de var ben bilmiyorum.?

Yani anlayacağınız sorun çok,bende ariflik yok.

Lütfen arkadaşlar,bana yardımcı olun.
İlgilenecek arkadaşlar asiteye bakabilirler.Kolay gelsin.
www.memleketimdivrigi.com


En son ARCAN tarafından 2005-07-09, 13:31:16 tarihinde değiştirildi, toplam 2 kere değiştirildi
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-01, 10:57:16    Mesaj konusu: Forum Arası Reklamlar


Başa dön
hsa2
Mesaj: 100+
Mesaj: 100+





Kayıt: Jan 31, 2005
Mesajlar: 161
Konum: Konya

MesajTarih: 2005-07-09, 13:26:57    Mesaj konusu: Re: ARKADAŞLAR SORUN ÇOK,ACEMİLİK DE ÇOK,HELP? Alıntıyla Cevap Gönder

Sorunu anlayamdım. Ancak başlığı küçük harf yapmazsan başlığın silinir!
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-09, 13:33:21    Mesaj konusu: Alıntıyla Cevap Gönder

"hsa2 " kardeşim,

hangi soruyu anlayamadın?
zaten ben anlatmasını beceremem ?her zaman ki halim........
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-09, 18:45:01    Mesaj konusu: Alıntıyla Cevap Gönder

arkadaşlar,sorunlarım hakkında herhangi bir fikri olan yokmu ?
Hadi bu acemi,uzun zamandır takip ediyorum forumları o kadar usta abiler var ki,bari onlar bir el atsalar...............

Neyse bu gün meşgul herkes,bekliyorum...!
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
seyranli
Mesaj: 1000+
Mesaj: 1000+





Kayıt: May 16, 2005
Mesajlar: 3511
Konum: oradan

MesajTarih: 2005-07-11, 18:31:48    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

arcan hemşerim bak o satırı bulmak için o hata veren dosyayı dreamweaver da açarsan direk yanda yazar satır satır hangisinde oluğun. yok ben onu yükleyemem bulamam edemem dersen notepadde açar tek tek sayarsın. her sıra bi sayı Very Happy eğer o satırı verirsen daha iyi olur gibi. sence de öyle değilmi. hadi hemşerim kolay gelsin
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-11, 20:48:23    Mesaj konusu: Alıntıyla Cevap Gönder

sağol kardeşim,ama bende dreamwear yok ancak notepadde yapacam daha öncede öyle yaptım ama yanlış yaparım diye vazgeçtim.

Seyranlı"eğer o satırı verirsen daha iyi olur gibi. sence de öyle değilmi."
abi ne demek istedin nereye verirsem satırı daha iyi olur.

abi genede tşk.ler
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
mutluedin
Mesaj: 200+
Mesaj: 200+





Kayıt: Aug 31, 2003
Mesajlar: 234
Konum: Kırklareli

MesajTarih: 2005-07-11, 22:45:37    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

crimson editor tavsiye ederim. satır numaraları var.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder E-posta gönder Yazarın web sitesini ziyaret et
saho
Forum Yöneticisi
Forum Yöneticisi





Kayıt: Mar 18, 2005
Mesajlar: 2176
Konum: istanbul-tokat

MesajTarih: 2005-07-11, 22:55:40    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

kalvyenden
windows+r tuşna bas gelen kutuya edit yaz sonra dosya menüsünden dosyayı aç a gel dizinin belirt karakter sırası ve no su vs çıkıyor
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-01, 10:57:16    Mesaj konusu: Forum Arası Reklamlar


Başa dön
saho
Forum Yöneticisi
Forum Yöneticisi





Kayıt: Mar 18, 2005
Mesajlar: 2176
Konum: istanbul-tokat

MesajTarih: 2005-07-11, 23:03:23    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

opentable() in /home/divrigli/public_html/mainfile.php on line 236
bu satırı yazarsan diyor ama
sanırım sorun temanda
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
KarYureKLi
Mesaj: 300+
Mesaj: 300+





Kayıt: Jun 28, 2004
Mesajlar: 347
Konum: istanbul

MesajTarih: 2005-07-12, 01:11:53    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

Norpedde Satırı bulmak için öncelikle (Xp) Kullanıyorsan Ctrl+G ye tıkla ve satır numarasını yaz o satıra kendısı gider ..
(öncelikle Notpedde açtıgında bak yazılar 10 15 satırlık ise kapat Wordpad de ac ve en basına ... koy kaydet kapat bu sefer Notped te ac ve eklediğin noktalari ... sil ve dediğim sekilde Ctrl + G ile satır numaraısnı arat bulursun...


2 nci sorun
Rütbe olayı
öncelikle Forum admın yönetiminden Rütbeler kısmına gelip kendıne Bir kaç rütbe belirt ( Yeni Üye , Üye , Aktif Üye ) ve yalnız bunlari yaratırken orda sana sorulan mesaj sayılarınıda yazmayı unutma
Örnek : Yeni Üye
Buna 25 dedin diyelim bu üye 25 mesaj yazmayana kadar o rütbeyi alamaz
Şimdi yıldızlara gelince modules/Forums/images/ranks/1star.gif vs gibi resimler vardır bunlari yaratacagın rütbeler uygun sekilde dağit
simdilik anca bu kadar yazabildim
yapamazsan tekrar yaz tekrara cevap veririm
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-12, 16:39:24    Mesaj konusu: Alıntıyla Cevap Gönder

tşk.ler

hepsini tek tek deneyeceğim

yapamadıklarımı,sizlere müracat edecem,

Başınızı ağrıtıyorum,bağışlayın,acemilik işte.....

Boza boza siteyi bu hale getirdim tabi "ihvan" abimin YARDIMıyla.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-12, 18:26:18    Mesaj konusu: Alıntıyla Cevap Gönder

arkadaşlar,
pop-up pencere için ,

netopsiyon.com dan,kaynağı görüntüle yaparak şu kodları aldım.Bunları benim siteye eklersem,sadece tema adını değiştirirsem olur mu?
Bir de bunları nereye eklerim.........

arkadaşlar kodu ekleyemedim.

script type="text"java........diye başlayan ve retun true..../script diye biten bölümü,
sitenin kaynağı görüntülendiğinde başlarında yer alan kodları.

Kodu kopyalayıp yapıştımadığım için böyle yazmak zorunda kaldım.
özürdilerim.Anlatamadım galiba.


Kod:
buraya yapıştırdım ama olmadı
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-16, 18:36:11    Mesaj konusu: Alıntıyla Cevap Gönder

arkadaşlar sağlam bir mainfile 236 satır nasıl oluyor
lütfen buraya o satırı yazın

Fatal error: Call to undefined function: opentable() in /home/divrigli/public_html/mainfile.php on line 236
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
yilmaz68
Mesaj: 50+
Mesaj: 50+





Kayıt: Oct 21, 2003
Mesajlar: 81

MesajTarih: 2005-07-16, 18:50:26    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

mainfile.php icndeki kodeleri kopyala buraya postala bakalim 236 ci sirada ne varmis?
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-16, 19:24:43    Mesaj konusu: Alıntıyla Cevap Gönder

yılmaz abi buyur,bir bak sana zahmet,versiyon 6,5 nuke

<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

$phpver = phpversion();
if ($phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if ($phpver > '4.0') {
if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
//header('Content-Encoding: gzip');
}
}
}

$phpver = explode(".", $phpver);
$phpver = "$phpver[0]$phpver[1]";
if ($phpver >= 41) {
$PHP_SELF = $_SERVER['PHP_SELF'];
}

if (!ini_get("register_globals")) {
import_request_variables('GPC');
}

foreach ($_GET as $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*i f r a m e*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*m e t a*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
(eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
(eregi("\"", $secvalue))) {
die ("I don't like you...");
}
}

foreach ($_POST as $secvalue) {
if (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) {
Header("Location: index.php");
die();
}
}

if (eregi("mainfile.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}

if ($forum_admin == 1) {
require_once("../../../config.php");
require_once("../../../db/db.php");
} elseif (inside_mod == 1) {
require_once("../../config.php");
require_once("../../db/db.php");
} else {
require_once("config.php");
require_once("db/db.php");
/* FOLLOWING TWO LINES ARE DEPRECATED BUT ARE HERE FOR OLD MODULES COMPATIBILITY */
/* PLEASE START USING THE NEW SQL ABSTRACTION LAYER. SEE MODULES DOC FOR DETAILS */
require_once("includes/sql_layer.php");
$dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
}

$mainfile = 1;
$sql = "SELECT sitename, nukeurl, site_logo, slogan, startdate, adminmail, anonpost, Default_Theme, foot1, foot2, foot3, commentlimit, anonymous, minpass, pollcomm, articlecomm, broadcast_msg, my_headlines, top, storyhome, user_news, oldnum, ultramode, banners, backend_title, backend_language, language, locale, multilingual, useflags, notify, notify_email, notify_subject, notify_message, notify_from, footermsgtxt, email_send, attachmentdir, attachments, attachments_view, download_dir, defaultpopserver, singleaccount, singleaccountname, numaccounts, imgpath, filter_forward, moderate, admingraphic, httpref, httprefmax, CensorMode, CensorReplace, copyright, Version_Num FROM ".$prefix."_config";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$sitename = $row[sitename];
$nukeurl = $row[nukeurl];
$site_logo = $row[site_logo];
$slogan = $row[slogan];
$startdate = $row[startdate];
$adminmail = $row[adminmail];
$anonpost = $row[anonpost];
$Default_Theme = $row[Default_Theme];
$foot1 = $row[foot1];
$foot2 = $row[foot2];
$foot3 = $row[foot3];
$commentlimit = $row[commentlimit];
$anonymous = $row[anonymous];
$minpass = $row[minpass];
$pollcomm = $row[pollcomm];
$articlecomm = $row[articlecomm];
$broadcast_msg = $row[broadcast_msg];
$my_headlines = $row[my_headlines];
$top = $row[top];
$storyhome = $row[storyhome];
$user_news = $row[user_news];
$oldnum = $row[oldnum];
$ultramode = $row[ultramode];
$banners = $row[banners];
$backend_title = $row[backend_title];
$backend_language = $row[backend_language];
$language = $row[language];
$locale = $row[locale];
$multilingual = $row[multilingual];
$useflags = $row[useflags];
$notify = $row[notify];
$notify_email = $row[notify_email];
$notify_subject = $row[notify_subject];
$notify_message = $row[notify_message];
$notify_from = $row[notify_from];
$footermsgtxt = $row[footermsgtxt];
$email_send = $row[email_send];
$attachmentdir = $row[attachmentdir];
$attachments = $row[attachments];
$attachments_view = $row[attachments_view];
$download_dir = $row[download_dir];
$defaultpopserver = $row[defaultpopserver];
$singleaccount = $row[singleaccount];
$singleaccountname = $row[singleaccountname];
$numaccounts = $row[numaccounts];
$imgpath = $row[imgpath];
$filter_forward = $row[filter_forward];
$moderate = $row[moderate];
$admingraphic = $row[admingraphic];
$httpref = $row[httpref];
$httprefmax = $row[httprefmax];
$CensorMode = $row[CensorMode];
$CensorReplace = $row[CensorReplace];
$copyright = $row[copyright];
$Version_Num = $row[Version_Num];
$domain = eregi_replace("http://", "", $nukeurl);
$tipath = "images/topics/";
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$start_time = $mtime;

if ($forum_admin != 1) {
if (isset($newlang) AND !eregi("\.","$newlang")) {
if (file_exists("language/lang-$newlang.php")) {
setcookie("lang",$newlang,time()+31536000);
include("language/lang-$newlang.php");
$currentlang = $newlang;
} else {
setcookie("lang",$language,time()+31536000);
include("language/lang-$language.php");
$currentlang = $language;
}
} elseif (isset($lang)) {
include("language/lang-$lang.php");
$currentlang = $lang;
} else {
setcookie("lang",$language,time()+31536000);
include("language/lang-$language.php");
$currentlang = $language;
}
}

function get_lang($module) {
global $currentlang, $language;
if (file_exists("modules/$module/language/lang-$currentlang.php")) {
if ($module == admin) {
include_once("admin/language/lang-$currentlang.php");
} else {
include_once("modules/$module/language/lang-$currentlang.php");
}
} else {
if ($module == admin) {
include_once("admin/language/lang-$currentlang.php");
} else {
include_once("modules/$module/language/lang-$language.php");
}
}
}

function is_admin($admin) {
global $prefix, $db;
if(!is_array($admin)) {
$admin = base64_decode($admin);
$admin = explode(":", $admin);
$aid = "$admin[0]";
$pwd = "$admin[1]";
} else {
$aid = "$admin[0]";
$pwd = "$admin[1]";
}
if ($aid != "" AND $pwd != "") {
$sql = "SELECT pwd FROM ".$prefix."_authors WHERE aid='$aid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$pass = $row[pwd];
if($pass == $pwd && $pass != "") {
return 1;
}
}
return 0;
}

function is_user($user) {
global $prefix, $db, $user_prefix;
if(!is_array($user)) {
$user = base64_decode($user);
$user = explode(":", $user);
$uid = "$user[0]";
$pwd = "$user[2]";
} else {
$uid = "$user[0]";
$pwd = "$user[2]";
}
if ($uid != "" AND $pwd != "") {
$sql = "SELECT user_password FROM ".$user_prefix."_users WHERE user_id='$uid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$pass = $row[user_password];
if($pass == $pwd && $pass != "") {
return 1;
}
}
return 0;
}


function title($text) {
OpenTable();
echo "<center><font class=\"title\"><b>$text</b></font></center>";
CloseTable();
echo "<br>";
}

function is_active($module) {
global $prefix, $db;
$sql = "SELECT active FROM ".$prefix."_modules WHERE title='$module'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$act = $row[active];
if (!$result OR $act == 0) {
return 0;
} else {
return 1;
}
}

function render_blocks($side, $blockfile, $title, $content, $bid, $url) {
if ($url == "") {
if ($blockfile == "") {
if ($side == "c") {
themecenterbox($title, $content);
} elseif ($side == "d") {
themecenterbox($title, $content);
} else {
themesidebox($title, $content);
}
} else {
if ($side == "c") {
blockfileinc($title, $blockfile, 1);
} elseif ($side == "d") {
blockfileinc($title, $blockfile, 1);
} else {
blockfileinc($title, $blockfile);
}
}
} else {
if ($side == "c" OR $side == "d") {
headlines($bid,1);
} else {
headlines($bid);
}
}
}

function blocks($side) {
global $storynum, $prefix, $multilingual, $currentlang, $db, $admin, $user;
if ($multilingual == 1) {
$querylang = "AND (blanguage='$currentlang' OR blanguage='')";
} else {
$querylang = "";
}
if (strtolower($side[0]) == "l") {
$pos = "l";
} elseif (strtolower($side[0]) == "r") {
$pos = "r";
} elseif (strtolower($side[0]) == "c") {
$pos = "c";
} elseif (strtolower($side[0]) == "d") {
$pos = "d";
}
$side = $pos;
$sql = "SELECT bid, bkey, title, content, url, blockfile, view FROM ".$prefix."_blocks WHERE bposition='$pos' AND active='1' $querylang ORDER BY weight ASC";
$result = $db->sql_query($sql);
while($row = $db->sql_fetchrow($result)) {
$bid = $row[bid];
$title = $row[title];
$content = $row[content];
$url = $row[url];
$blockfile = $row[blockfile];
$view = $row[view];
if ($row[bkey] == admin) {
adminblock();
} elseif ($row[bkey] == userbox) {
userblock();
} elseif ($row[bkey] == "") {
if ($view == 0) {
render_blocks($side, $blockfile, $title, $content, $bid, $url);
} elseif ($view == 1 AND is_user($user) || is_admin($admin)) {
render_blocks($side, $blockfile, $title, $content, $bid, $url);
} elseif ($view == 2 AND is_admin($admin)) {
render_blocks($side, $blockfile, $title, $content, $bid, $url);
} elseif ($view == 3 AND !is_user($user) || is_admin($admin)) {
render_blocks($side, $blockfile, $title, $content, $bid, $url);
}
}
}
}

function message_box() {
global $bgcolor1, $bgcolor2, $user, $admin, $cookie, $textcolor2, $prefix, $multilingual, $currentlang, $db;
if ($multilingual == 1) {
$querylang = "AND (mlanguage='$currentlang' OR mlanguage='')";
} else {
$querylang = "";
}
$sql = "SELECT mid, title, content, date, expire, view FROM ".$prefix."_message WHERE active='1' $querylang";
$result = $db->sql_query($sql);
if ($numrows = $db->sql_numrows($result) == 0) {
return;
} else {
while ($row = $db->sql_fetchrow($result)) {
$mid = $row[mid];
$title = $row[title];
$content = $row[content];
$mdate = $row[date];
$expire = $row[expire];
$view = $row[view];
if ($title != "" && $content != "") {
if ($expire == 0) {
$remain = _UNLIMITED;
} else {
$etime = (($mdate+$expire)-time())/3600;
$etime = (int)$etime;
if ($etime < 1) {
$remain = _EXPIRELESSHOUR;
} else {
$remain = ""._EXPIREIN." $etime "._HOURS."";
}
}
if ($view == 4 AND is_admin($admin)) {
OpenTable();
echo "<center><font class=\"option\" color=\"$textcolor2\"><b>$title</b></font></center><br>\n"
."<font class=\"content\">$content</font>"
."<br><br><center><font class=\"content\">[ "._MVIEWADMIN." - $remain - <a href=\"admin.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
CloseTable();
echo "<br>";
} elseif ($view == 3 AND is_user($user) || is_admin($admin)) {
OpenTable();
echo "<center><font class=\"option\" color=\"$textcolor2\"><b>$title</b></font></center><br>\n"
."<font class=\"content\">$content</font>";
if (is_admin($admin)) {
echo "<br><br><center><font class=\"content\">[ "._MVIEWUSERS." - $remain - <a href=\"admin.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
}
CloseTable();
echo "<br>";
} elseif ($view == 2 AND !is_user($user) || is_admin($admin)) {
OpenTable();
echo "<center><font class=\"option\" color=\"$textcolor2\"><b>$title</b></font></center><br>\n"
."<font class=\"content\">$content</font>";
if (is_admin($admin)) {
echo "<br><br><center><font class=\"content\">[ "._MVIEWANON." - $remain - <a href=\"admin.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
}
CloseTable();
echo "<br>";
} elseif ($view == 1) {
OpenTable();
echo "<center><font class=\"option\" color=\"$textcolor2\"><b>$title</b></font></center><br>\n"
."<font class=\"content\">$content</font>";
if (is_admin($admin)) {
echo "<br><br><center><font class=\"content\">[ "._MVIEWALL." - $remain - <a href=\"admin.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
}
CloseTable();
echo "<br>";
}
if ($expire != 0) {
$past = time()-$expire;
if ($mdate < $past) {
$db->sql_query("UPDATE ".$prefix."_message SET active='0' WHERE mid='$mid'");
}
}
}
}
}
}

function online() {
global $user, $cookie, $prefix, $db;
cookiedecode($user);
$ip = $_SERVER["REMOTE_ADDR"];
$uname = $cookie[1];
if (!isset($uname)) {
$uname = "$ip";
$guest = 1;
}
$past = time()-1800;
$sql = "DELETE FROM ".$prefix."_session WHERE time < $past";
$db->sql_query($sql);
$sql = "SELECT time FROM ".$prefix."_session WHERE uname='$uname'";
$result = $db->sql_query($sql);
$ctime = time();
if ($row = $db->sql_fetchrow($result)) {
$sql = "UPDATE ".$prefix."_session SET uname='$uname', time='$ctime', host_addr='$ip', guest='$guest' WHERE uname='$uname'";
$db->sql_query($sql);
} else {
$sql = "INSERT INTO ".$prefix."_session (uname, time, host_addr, guest) VALUES ('$uname', '$ctime', '$ip', '$guest')";
$db->sql_query($sql);
}
}

function blockfileinc($title, $blockfile, $side=0) {
$blockfiletitle = $title;
$file = @file("blocks/$blockfile");
if (!$file) {
$content = _BLOCKPROBLEM;
} else {
include("blocks/$blockfile");
}
if ($content == "") {
$content = _BLOCKPROBLEM2;
}
if ($side == 1) {
themecenterbox($blockfiletitle, $content);
} elseif ($side == 2) {
themecenterbox($blockfiletitle, $content);
} else {
themesidebox($blockfiletitle, $content);
}
}

function selectlanguage() {
global $useflags, $currentlang;
if ($useflags == 1) {
$title = _SELECTLANGUAGE;
$content = "<center><font class=\"content\">"._SELECTGUILANG."<br><br>";
$langdir = dir("language");
while($func=$langdir->read()) {
if(substr($func, 0, 5) == "lang-") {
$menulist .= "$func ";
}
}
closedir($langdir->handle);
$menulist = explode(" ", $menulist);
sort($menulist);
for ($i=0; $i < sizeof($menulist); $i++) {
if($menulist[$i]!="") {
$tl = ereg_replace("lang-","",$menulist[$i]);
$tl = ereg_replace(".php","",$tl);
$altlang = ucfirst($tl);
$content .= "<a href=\"index.php?newlang=$tl\"><img src=\"images/language/flag-$tl.png\" border=\"0\" alt=\"$altlang\" title=\"$altlang\" hspace=\"3\" vspace=\"3\"></a> ";
}
}
$content .= "</font></center>";
themesidebox($title, $content);
} else {
$title = _SELECTLANGUAGE;
$content = "<center><font class=\"content\">"._SELECTGUILANG."<br><br></font>";
$content .= "<form action=\"index.php\" method=\"get\"><select name=\"newlanguage\" onChange=\"top.location.href=this.options[this.selectedIndex].value\">";
$handle=opendir('language');
while ($file = readdir($handle)) {
if (preg_match("/^lang\-(.+)\.php/", $file, $matches)) {
$langFound = $matches[1];
$languageslist .= "$langFound ";
}
}
closedir($handle);
$languageslist = explode(" ", $languageslist);
sort($languageslist);
for ($i=0; $i < sizeof($languageslist); $i++) {
if($languageslist[$i]!="") {
$content .= "<option value=\"index.php?newlang=$languageslist[$i]\" ";
if($languageslist[$i]==$currentlang) $content .= " selected";
$content .= ">".ucfirst($languageslist[$i])."</option>\n";
}
}
$content .= "</select></form></center>";
themesidebox($title, $content);
}
}

function ultramode() {
global $prefix, $db;
$ultra = "ultramode.txt";
$file = fopen("$ultra", "w");
fwrite($file, "General purpose self-explanatory file with news headlines\n");
$sql = "SELECT sid, aid, title, time, comments, topic FROM ".$prefix."_stories ORDER BY time DESC LIMIT 0,10";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$sql = "select topictext, topicimage from ".$prefix."_topics where topicid='$row[topic]'";
$result = $db->sql_query($result);
$row2 = $db->sql_fetchrow($result);
$topictext = $row2[topictext];
$topicimage = $row2[topicimage];
$content = "%%\n$row[title]\n/modules.php?name=News&file=article&sid=$row[sid]\n$row[time]\n$row[aid]\n$row2[topictext]\n$row[comments]\n$row2[topicimage]\n";
fwrite($file, $content);
}
fclose($file);
}

function cookiedecode($user) {
global $cookie, $prefix, $db, $user_prefix;
$user = base64_decode($user);
$cookie = explode(":", $user);
$sql = "SELECT user_password FROM ".$user_prefix."_users WHERE username='$cookie[1]'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$pass = $row[user_password];
if ($cookie[2] == $pass && $pass != "") {
return $cookie;
} else {
unset($user);
unset($cookie);
}
}

function getusrinfo($user) {
global $userinfo, $user_prefix, $db;
$user2 = base64_decode($user);
$user3 = explode(":", $user2);
$sql = "SELECT * FROM ".$user_prefix."_users WHERE username='$user3[1]' AND user_password='$user3[2]'";
$result = $db->sql_query($sql);
if ($db->sql_numrows($result) == 1) {
$userinfo = $db->sql_fetchrow($result);
}
return $userinfo;
}

function FixQuotes ($what = "") {
$what = ereg_replace("'","''",$what);
while (eregi("\\\\'", $what)) {
$what = ereg_replace("\\\\'","'",$what);
}
return $what;
}

/*********************************************************/
/* text filter */
/*********************************************************/

function check_words($Message) {
global $EditedMessage;
include("config.php");
$EditedMessage = $Message;
if ($CensorMode != 0) {
if (is_array($CensorList)) {
$Replace = $CensorReplace;
if ($CensorMode == 1) {
for ($i = 0; $i < count($CensorList); $i++) {
$EditedMessage = eregi_replace("$CensorList[$i]([^a-zA-Z0-9])","$Replace\\1",$EditedMessage);
}
} elseif ($CensorMode == 2) {
for ($i = 0; $i < count($CensorList); $i++) {
$EditedMessage = eregi_replace("(^|[^[:alnum:]])$CensorList[$i]","\\1$Replace",$EditedMessage);
}
} elseif ($CensorMode == 3) {
for ($i = 0; $i < count($CensorList); $i++) {
$EditedMessage = eregi_replace("$CensorList[$i]","$Replace",$EditedMessage);
}
}
}
}
return ($EditedMessage);
}

function delQuotes($string){
/* no recursive function to add quote to an HTML tag if needed */
/* and delete duplicate spaces between attribs. */
$tmp=""; # string buffer
$result=""; # result string
$i=0;
$attrib=-1; # Are us in an HTML attrib ? -1: no attrib 0: name of the attrib 1: value of the atrib
$quote=0; # Is a string quote delimited opened ? 0=no, 1=yes
$len = strlen($string);
while ($i<$len) {
switch($string[$i]) { # What car is it in the buffer ?
case "\"": #" # a quote.
if ($quote==0) {
$quote=1;
} else {
$quote=0;
if (($attrib>0) && ($tmp != "")) { $result .= "=\"$tmp\""; }
$tmp="";
$attrib=-1;
}
break;
case "=": # an equal - attrib delimiter
if ($quote==0) { # Is it found in a string ?
$attrib=1;
if ($tmp!="") $result.=" $tmp";
$tmp="";
} else $tmp .= '=';
break;
case " ": # a blank ?
if ($attrib>0) { # add it to the string, if one opened.
$tmp .= $string[$i];
}
break;
default: # Other
if ($attrib<0) # If we weren't in an attrib, set attrib to 0
$attrib=0;
$tmp .= $string[$i];
break;
}
$i++;
}
if (($quote!=0) && ($tmp != "")) {
if ($attrib==1) $result .= "=";
/* If it is the value of an atrib, add the '=' */
$result .= "\"$tmp\""; /* Add quote if needed (the reason of the function ;-) */
}
return $result;
}

function check_html ($str, $strip="") {
/* The core of this code has been lifted from phpslash */
/* which is licenced under the GPL. */
include("config.php");
if ($strip == "nohtml")
$AllowableHTML=array('');
$str = stripslashes($str);
$str = eregi_replace("<[[:space:]]*([^>]*)[[:space:]]*>",
'<\\1>', $str);
// Delete all spaces from html tags .
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",
'<a href="\\1">', $str); # "
// Delete all attribs from Anchor, except an href, double quoted.
$str = eregi_replace("<[[:space:]]* img[[:space:]]*([^>]*)[[:space:]]*>", '', $str);
// Delete all img tags
$tmp = "";
while (ereg("<(/?[[:alpha:]]*)[[:space:]]*([^>]*)>",$str,$reg)) {
$i = strpos($str,$reg[0]);
$l = strlen($reg[0]);
if ($reg[1][0] == "/") $tag = strtolower(substr($reg[1],1));
else $tag = strtolower($reg[1]);
if ($a = $AllowableHTML[$tag])
if ($reg[1][0] == "/") $tag = "</$tag>";
elseif (($a == 1) || ($reg[2] == "")) $tag = "<$tag>";
else {
# Place here the double quote fix function.
$attrb_list=delQuotes($reg[2]);
// A VER
$attrb_list = ereg_replace("&","&amp;",$attrb_list);
$tag = "<$tag" . $attrb_list . ">";
} # Attribs in tag allowed
else $tag = "";
$tmp .= substr($str,0,$i) . $tag;
$str = substr($str,$i+$l);
}
$str = $tmp . $str;
return $str;
exit;
/* Squash PHP tags unconditionally */
$str = ereg_replace("<\?","",$str);
return $str;
}

function filter_text($Message, $strip="") {
global $EditedMessage;
check_words($Message);
$EditedMessage=check_html($EditedMessage, $strip);
return ($EditedMessage);
}

/*********************************************************/
/* formatting stories */
/*********************************************************/

function formatTimestamp($time) {
global $datetime, $locale;
setlocale (LC_TIME, $locale);
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2})Sad[0-9]{1,2})Sad[0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
return($datetime);
}

function formatAidHeader($aid) {
global $prefix, $db;
$sql = "SELECT url, email FROM ".$prefix."_authors WHERE aid='$aid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$url = $row[url];
$email = $row[email];
if (isset($url)) {
$aid = "<a href=\"$url\">$aid</a>";
} elseif (isset($email)) {
$aid = "<a href=\"mailto:$email\">$aid</a>";
} else {
$aid = $aid;
}
echo "$aid";
}

function get_author($aid) {
global $prefix, $db;
$sql = "SELECT url, email FROM ".$prefix."_authors WHERE aid='$aid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if (isset($row[url])) {
$aid = "<a href=\"$row[url]\">$aid</a>";
} elseif (isset($row[email])) {
$aid = "<a href=\"mailto:$row[email]\">$aid</a>";
} else {
$aid = $aid;
}
return($aid);
}

function themepreview($title, $hometext, $bodytext="", $notes="") {
echo "<b>$title</b><br><br>$hometext";
if ($bodytext != "") {
echo "<br><br>$bodytext";
}
if ($notes != "") {
echo "<br><br><b>"._NOTE."</b> <i>$notes</i>";
}
}

function adminblock() {
global $admin, $prefix, $db;
if (is_admin($admin)) {
$sql = "SELECT title, content FROM ".$prefix."_blocks WHERE bkey='admin'";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$content = "<font class=\"content\">$row[content]</font>";
themesidebox($row[title], $row[content]);
}
$title = ""._WAITINGCONT."";
$num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_queue"));
$content = "<font class=\"content\">";
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=submissions\">"._SUBMISSIONS."</a>: $num<br>";
$num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_reviews_add"));
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=reviews\">"._WREVIEWS."</a>: $num<br>";
$num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_newlink"));
$brokenl = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_modrequest WHERE brokenlink='1'"));
$modreql = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_modrequest WHERE brokenlink='0'"));
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=Links\">"._WLINKS."</a>: $num<br>";
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=LinksListModRequests\">"._MODREQLINKS."</a>: $modreql<br>";
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=LinksListBrokenLinks\">"._BROKENLINKS."</a>: $brokenl<br>";
$num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_newdownload"));
$brokend = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_modrequest WHERE brokendownload='1'"));
$modreqd = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_modrequest WHERE brokendownload='0'"));
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=downloads\">"._UDOWNLOADS."</a>: $num<br>";
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=DownloadsListModRequests\">"._MODREQDOWN."</a>: $modreqd<br>";
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=DownloadsListBrokenDownloads\">"._BROKENDOWN."</a>: $brokend<br></font>";
themesidebox($title, $content);
}
}

function loginbox() {
global $user;
if (!is_user($user)) {
$title = _LOGIN;
$boxstuff = "<form action=\"modules.php?name=Your_Account\" method=\"post\">";
$boxstuff .= "<center><font class=\"content\">"._NICKNAME."<br>";
$boxstuff .= "<input type=\"text\" name=\"username\" size=\"8\" maxlength=\"25\"><br>";
$boxstuff .= ""._PASSWORD."<br>";
$boxstuff .= "<input type=\"password\" name=\"user_password\" size=\"8\" maxlength=\"20\"><br>";
$boxstuff .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
$boxstuff .= "<input type=\"submit\" value=\""._LOGIN."\"></font></center></form>";
$boxstuff .= "<center><font class=\"content\">"._ASREGISTERED."</font></center>";
themesidebox($title, $boxstuff);
}
}

function userblock() {
global $user, $cookie, $db, $user_prefix;
if((is_user($user)) AND ($cookie[8])) {
$sql = "SELECT ublock FROM ".$user_prefix."_users WHERE user_id='$cookie[0]'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$title = ""._MENUFOR." $cookie[1]";
themesidebox($title, $row[ublock]);
}
}

function getTopics($s_sid) {
global $topicname, $topicimage, $topictext, $prefix, $db;
$sid = $s_sid;
$sql = "SELECT topic FROM ".$prefix."_stories WHERE sid='$sid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$sql = "SELECT topicid, topicname, topicimage, topictext FROM ".$prefix."_topics WHERE topicid='$row[topic]'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$topicid = $row[topicid];
$topicname = $row[topicname];
$topicimage = $row[topicimage];
$topictext = $row[topictext];
}

function headlines($bid, $cenbox=0) {
global $prefix, $db;
$sql = "SELECT title, content, url, refresh, time FROM ".$prefix."_blocks WHERE bid='$bid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$title = $row[title];
$content = $row[content];
$url = $row[url];
$refresh = $row[refresh];
$otime = $row[otime];
$past = time()-$refresh;
if ($otime < $past) {
$btime = time();
$rdf = parse_url($url);
$fp = fsockopen($rdf['host'], 80, $errno, $errstr, 15);
if (!$fp) {
$content = "";
$sql = "UPDATE ".$prefix."_blocks SET content='$content', time='$btime' WHERE bid='$bid'";
$db->sql_query($sql);
$cont = 0;
if ($cenbox == 0) {
themesidebox($title, $content);
} else {
themecenterbox($title, $content);
}
return;
}
if ($fp) {
fputs($fp, "GET " . $rdf['path'] . "?" . $rdf['query'] . " HTTP/1.0\r\n");
fputs($fp, "HOST: " . $rdf['host'] . "\r\n\r\n");
$string = "";
while(!feof($fp)) {
$pagetext = fgets($fp,300);
$string .= chop($pagetext);
}
fputs($fp,"Connection: close\r\n\r\n");
fclose($fp);
$items = explode("</item>",$string);
$content = "<font class=\"content\">";
for ($i=0;$i<10;$i++) {
$link = ereg_replace(".*<link>","",$items[$i]);
$link = ereg_replace("</link>.*","",$link);
$title2 = ereg_replace(".*<title>","",$items[$i]);
$title2 = ereg_replace("</title>.*","",$title2);
if ($items[$i] == "" AND $cont != 1) {
$content = "";
$sql = "UPDATE ".$prefix."_blocks SET content='$content', time='$btime' WHERE bid='$bid'";
$db->sql_query($sql);
$cont = 0;
if ($cenbox == 0) {
themesidebox($title, $content);
} else {
themecenterbox($title, $content);
}
return;
} else {
if (strcmp($link,$title2) AND $items[$i] != "") {
$cont = 1;
$content .= "<strong><big>&middot;</big></strong><a href=\"$link\" target=\"new\">$title2</a><br>\n";
}
}
}

}
$sql = "UPDATE ".$prefix."_blocks SET content='$content', time='$btime' WHERE bid='$bid'";
$db->sql_query($sql);
}
$siteurl = ereg_replace("http://","",$url);
$siteurl = explode("/",$siteurl);
if (($cont == 1) OR ($content != "")) {
$content .= "<br><a href=\"http://$siteurl[0]\" target=\"blank\"><b>"._HREADMORE."</b></a></font>";
} elseif (($cont == 0) OR ($content == "")) {
$content = "<font class=\"content\">"._RSSPROBLEM."</font>";
}
if ($cenbox == 0) {
themesidebox($title, $content);
} else {
themecenterbox($title, $content);
}
}

function automated_news() {
global $prefix, $multilingual, $currentlang, $db;
if ($multilingual == 1) {
$querylang = "WHERE (alanguage='$currentlang' OR alanguage='')"; /* the OR is needed to display stories who are posted to ALL languages */
} else {
$querylang = "";
}
$today = getdate();
$day = $today[mday];
if ($day < 10) {
$day = "0$day";
}
$month = $today[mon];
if ($month < 10) {
$month = "0$month";
}
$year = $today[year];
$hour = $today[hours];
$min = $today[minutes];
$sec = "00";
$sql = "SELECT anid, time FROM ".$prefix."_autonews $querylang";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$anid = $row[anid];
$time = $row[time];
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2})Sad[0-9]{1,2})Sad[0-9]{1,2})", $time, $date);
if (($date[1] <= $year) AND ($date[2] <= $month) AND ($date[3] <= $day)) {
if (($date[4] < $hour) AND ($date[5] >= $min) OR ($date[4] <= $hour) AND ($date[5] <= $min)) {
$sql2 = "SELECT * FROM ".$prefix."_autonews WHERE anid='$anid'";
$result2 = $db->sql_query($sql2);
while ($row2 = $db->sql_fetchrow($result2)) {
$title = stripslashes(FixQuotes($row2[title]));
$hometext = stripslashes(FixQuotes($row2[hometext]));
$bodytext = stripslashes(FixQuotes($row2[bodytext]));
$notes = stripslashes(FixQuotes($row2[notes]));
$sql = "INSERT INTO ".$prefix."_stories VALUES (NULL, '$row2[catid]', '$row2[aid]', '$title', '$row2[time]', '$hometext', '$bodytext', '0', '0', '$row2[topic]', '$row2[informant]', '$notes', '$row2[ihome]', '$row2[alanguage]', '$row2[acomm]', '0', '0', '0', '0')";
$db->sql_query($sql);
$sql = "DELETE FROM ".$prefix."_autonews WHERE anid='$anid'";
$db->sql_query($sql);
}
}
}
}
}

function themecenterbox($title, $content) {
OpenTable();
echo "<center><font class=\"option\"><b>$title</b></font></center><br>"
."$content";
CloseTable();
echo "<br>";
}

function public_message() {
global $prefix, $user_prefix, $db, $user, $admin, $p_msg, $cookie, $broadcast_msg;
if ($broadcast_msg == 1) {
if (is_user($user)) {
cookiedecode($user);
$sql = "SELECT broadcast FROM ".$user_prefix."_users WHERE username='$cookie[1]'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$upref = $row[broadcast];
if ($upref == 1) {
$t_off = "<br><p align=\"right\">[ <a href=\"modules.php?name=Your_Account&amp;op=edithome\"><font color=\"FFFFFF\" size=\"2\">"._TURNOFFMSG."</font></a> ]</font>";
$pm_show = 1;
} else {
$pm_show = 0;
}
} else {
$t_off = "";
}
if (!is_user($user) OR (is_user($user) AND ($pm_show == 1))) {
$c_mid = base64_decode($p_msg);
$sql = "SELECT mid, content, date, who FROM ".$prefix."_public_messages WHERE mid > '$c_mid' ORDER BY date ASC LIMIT 1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$mid = $row[mid];
$content = $row[content];
$tdate = $row[date];
$who = $row[who];
if ((!isset($c_mid)) OR ($c_mid = $mid)) {
$public_msg = "<br><table width=\"90%\" border=\"1\" cellspacing=\"2\" cellpadding=\"0\" bgcolor=\"FFFFFF\" align=\"center\"><tr><td>\n";
$public_msg .= "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"FF0000\"><tr><td>\n";
$public_msg .= "<font color=\"FFFFFF\" size=\"3\"><b>"._BROADCASTFROM." <a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$who\"><font color=\"FFFFFF\" size=\"3\">$who</font></a>: \"$content\"</b>";
$public_msg .= "$t_off";
$public_msg .= "</td></tr></table>";
$public_msg .= "</td></tr></table>";
$ref_date = $tdate+600;
$actual_date = time();
if ($actual_date >= $ref_date) {
$public_msg = "";
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_public_messages"));
if ($numrows == 1) {
$db->sql_query("DELETE FROM ".$prefix."_public_messages");
$mid = 0;
} else {
$db->sql_query("DELETE FROM ".$prefix."_public_messages WHERE mid='$mid'");
}
}
if ($mid == 0 OR $mid == "") {
setcookie("p_msg");
} else {
$mid = base64_encode($mid);
setcookie("p_msg",$mid,time()+600);
}
}
}
} else {
$public_msg = "";
}
return($public_msg);
}

function get_theme() {
global $user, $cookie, $Default_Theme;
if(is_user($user)) {
$user2 = base64_decode($user);
$t_cookie = explode(":", $user2);
if($t_cookie[9]=="") $t_cookie[9]=$Default_Theme;
if(isset($theme)) $t_cookie[9]=$theme;
if(!$tfile=@opendir("themes/$t_cookie[9]")) {
$ThemeSel = $Default_Theme;
} else {
$ThemeSel = $t_cookie[9];
}
} else {
$ThemeSel = $Default_Theme;
}
return($ThemeSel);
}

function removecrlf($str) {
// Function for Security Fix by Ulf Harnhammar, VSU Security 2002
// Looks like I don't have so bad track record of security reports as Ulf believes
// He decided to not contact me, but I'm always here, digging on the net
return strtr($str, "\015\012", ' ');
}

?>
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
yilmaz68
Mesaj: 50+
Mesaj: 50+





Kayıt: Oct 21, 2003
Mesajlar: 81

MesajTarih: 2005-07-16, 19:41:29    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

Bunu bul

Kod:
function title($text) {
OpenTable();
echo "<center><font class=\"title\">$text</font></center>";
CloseTable();
echo "<br>";
}



Bunla degistir

Kod:
function title($text) {
//OpenTable();
echo "<center><font class=\"title\">$text</font></center>";
//CloseTable();
echo "<br>";
}
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-17, 13:05:52    Mesaj konusu: Alıntıyla Cevap Gönder

yılmaz abi tşk.ler

hemen deniyorum.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-17, 13:47:08    Mesaj konusu: Alıntıyla Cevap Gönder

Fatal error: Call to undefined function: opentable() in /home/divrigli/public_html/includes/page_header.php on line 80

yılmaz abi bu seferde includes içindeki header.php hatası veriyor,
şaşırdım kaldım.

Kod:
<?php
/***************************************************************************
 *                              page_header.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: page_header.php,v 1.106.2.11 2002/12/19 17:17:39 psotfx Exp $
 *
 *
 ***************************************************************************/
/***************************************************************************
* phpbb2 forums port version 2.1 (c) 2003 - Nuke Cops (http://nukecops.com)
*
* Ported by Paul Laudanski (Zhen-Xjell) to phpbb2 standalone 2.0.4. Test
* and debugging completed by the Elite Nukers at Nuke Cops: ArtificialIntel,
* Chatserv, MikeM, sixonetonoffun, Zhen-Xjell. Thanks to some heavy debug
* work by AI in Nuke 6.5.
*
* You run this package at your sole risk. Nuke Cops and affiliates cannot
* be held liable if anything goes wrong. You are advised to test this
* package on a development system. Backup everything before implementing
* in a production environment. If something goes wrong, you can always
* backout and restore your backups.
*
* Installing and running this also means you agree to the terms of the AUP
* found at Nuke Cops.
*
* This is version 2.1 of the phpbb2 forum port for PHP-Nuke. Work is based
* on Tom Nitzschner's forum port version 2.0.6. Tom's 2.0.6 port was based
* on the phpbb2 standalone version 2.0.3. Our version 2.1 from Nuke Cops is
* now reflecting phpbb2 standalone 2.0.4 that fixes some major SQL
* injection exploits.
***************************************************************************/
/***************************************************************************
 *   This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
 *   by Tom Nitzschner (tom@toms-home.com)
 *   http://bbtonuke.sourceforge.net (or http://www.toms-home.com)
 *
 *   As always, make a backup before messing with anything. All code
 *   release by me is considered sample code only. It may be fully
 *   functual, but you use it at your own risk, if you break it,
 *   you get to fix it too. No waranty is given or implied.
 *
 *   Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,
 *   then on my site. All original header code and copyright messages will be maintained
 *   to give credit where credit is due. If you modify this, the only requirement is
 *   that you also maintain all original copyright messages. All my work is released
 *   under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
   die("Hacking attempt");
}

global $name, $sitename, $is_inline_review;

$sql = "SELECT custom_title from ".$prefix."_modules where name='$name'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ($row[custom_name] == "") {
    $mod_name = ereg_replace("_", " ", $name);
} else {
    $mod_name = $row[custom_name];
}
if (!$is_inline_review) {
    title("$sitename: $mod_name");
    OpenTable();
}
define('HEADER_INC', TRUE);

//
// gzip_compression
//
$do_gzip_compress = FALSE;
if ( $board_config['gzip_compress'] )
{
   $phpver = phpversion();

   $useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;

   if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )
   {
      if ( extension_loaded('zlib') )
      {
         ob_start('ob_gzhandler');
      }
   }
   else if ( $phpver > '4.0' )
   {
      if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
      {
         if ( extension_loaded('zlib') )
         {
            $do_gzip_compress = TRUE;
            ob_start();
            ob_implicit_flush(0);

            header('Content-Encoding: gzip');
         }
      }
   }
}

//
// Parse and show the overall header.
//
// It'll supress the forum header for the PM and Member List.
// It's turned off for now, but you can turn it on if needed.
// if you do turn it on, also enable part 2 at the end of this file.
//

//    if ($show_header AND (is_active("Forums"))) {
//   $template->set_filenames(array(
//      'forum_header' => ( empty($gen_simple_header) ) ? 'forum_header.tpl' : 'simple_header.tpl')
//   );
//    } else {
   $template->set_filenames(array(
      'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
   );
//    }

//
// Generate logged in/logged out status
//
if ( $userdata['session_logged_in'] )
{
        $u_login_logout = 'modules.php?name=Your_Account&op=logout&redirect=Forums';
        $l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';
}
else
{
        $u_login_logout = 'modules.php?name=Your_Account&redirect=index';
        $l_login_logout = $lang['Login'];
}

$s_last_visit = ( $userdata['session_logged_in'] ) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : '';

//
// Get basic (usernames + totals) online
// situation
//
$logged_visible_online = 0;
$logged_hidden_online = 0;
$guests_online = 0;
$online_userlist = '';

if (defined('SHOW_ONLINE'))
{

   $user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : '';
   $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip
      FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
      WHERE u.user_id = s.session_user_id
         AND s.session_time >= ".( time() - 300 ) . "
         $user_forum_sql
      ORDER BY u.username ASC, s.session_ip ASC";
   if( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql);
   }

   $userlist_ary = array();
   $userlist_visible = array();

   $prev_user_id = 0;
   $prev_user_ip = '';

   while( $row = $db->sql_fetchrow($result) )
   {
      // User is logged in and therefor not a guest
      if ( $row['session_logged_in'] )
      {
         // Skip multiple sessions for one user
         if ( $row['user_id'] != $prev_user_id )
         {
            $style_color = '';
            if ( $row['user_level'] == ADMIN )
            {
               $row['username'] = '<b>' . $row['username'] . '</b>';
               $style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
            }
            else if ( $row['user_level'] == MOD )
            {
               $row['username'] = '<b>' . $row['username'] . '</b>';
               $style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
            }

            if ( $row['user_allow_viewonline'] )
            {
               $user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
               $logged_visible_online++;
            }
            else
            {
               $user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';
               $logged_hidden_online++;
            }

            if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
            {
               $online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link;
            }
         }

         $prev_user_id = $row['user_id'];
      }
      else
      {
         // Skip multiple sessions for one user
         if ( $row['session_ip'] != $prev_session_ip )
         {
            $guests_online++;
         }
      }

      $prev_session_ip = $row['session_ip'];
   }
   $db->sql_freeresult($result);

   if ( empty($online_userlist) )
   {
      $online_userlist = $lang['None'];
   }
   $online_userlist = ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Registered_users'] ) . ' ' . $online_userlist;

   $total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online;

   if ( $total_online_users > $board_config['record_online_users'])
   {
      $board_config['record_online_users'] = $total_online_users;
      $board_config['record_online_date'] = time();

      $sql = "UPDATE " . CONFIG_TABLE . "
         SET config_value = '$total_online_users'
         WHERE config_name = 'record_online_users'";
      if ( !$db->sql_query($sql) )
      {
         message_die(GENERAL_ERROR, 'Could not update online user record (nr of users)', '', __LINE__, __FILE__, $sql);
      }

      $sql = "UPDATE " . CONFIG_TABLE . "
         SET config_value = '" . $board_config['record_online_date'] . "'
         WHERE config_name = 'record_online_date'";
      if ( !$db->sql_query($sql) )
      {
         message_die(GENERAL_ERROR, 'Could not update online user record (date)', '', __LINE__, __FILE__, $sql);
      }
   }

   if ( $total_online_users == 0 )
   {
      $l_t_user_s = $lang['Online_users_zero_total'];
   }
   else if ( $total_online_users == 1 )
   {
      $l_t_user_s = $lang['Online_user_total'];
   }
   else
   {
      $l_t_user_s = $lang['Online_users_total'];
   }

   if ( $logged_visible_online == 0 )
   {
      $l_r_user_s = $lang['Reg_users_zero_total'];
   }
   else if ( $logged_visible_online == 1 )
   {
      $l_r_user_s = $lang['Reg_user_total'];
   }
   else
   {
      $l_r_user_s = $lang['Reg_users_total'];
   }

   if ( $logged_hidden_online == 0 )
   {
      $l_h_user_s = $lang['Hidden_users_zero_total'];
   }
   else if ( $logged_hidden_online == 1 )
   {
      $l_h_user_s = $lang['Hidden_user_total'];
   }
   else
   {
      $l_h_user_s = $lang['Hidden_users_total'];
   }

   if ( $guests_online == 0 )
   {
      $l_g_user_s = $lang['Guest_users_zero_total'];
   }
   else if ( $guests_online == 1 )
   {
      $l_g_user_s = $lang['Guest_user_total'];
   }
   else
   {
      $l_g_user_s = $lang['Guest_users_total'];
   }

   $l_online_users = sprintf($l_t_user_s, $total_online_users);
   $l_online_users .= sprintf($l_r_user_s, $logged_visible_online);
   $l_online_users .= sprintf($l_h_user_s, $logged_hidden_online);
   $l_online_users .= sprintf($l_g_user_s, $guests_online);
}

//
// Obtain number of new private messages
// if user is logged in
//
if ( $userdata['session_logged_in'] )
{
   if ( $userdata['user_new_privmsg'] )
   {
      $l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];
      $l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);

      if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] )
      {
         $sql = "UPDATE " . USERS_TABLE . "
            SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
            WHERE user_id = " . $userdata['user_id'];
         if ( !$db->sql_query($sql) )
         {
            message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
         }

         $s_privmsg_new = 1;
         $icon_pm = $images['pm_new_msg'];
      }
      else
      {
         $s_privmsg_new = 0;
         $icon_pm = $images['pm_new_msg'];
      }
   }
   else
   {
      $l_privmsgs_text = $lang['No_new_pm'];

      $s_privmsg_new = 0;
      $icon_pm = $images['pm_no_new_msg'];
   }

   if ( $userdata['user_unread_privmsg'] )
   {
      $l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms'];
      $l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']);
   }
   else
   {
      $l_privmsgs_text_unread = $lang['No_unread_pm'];
   }
}
else
{
   $icon_pm = $images['pm_no_new_msg'];
   $l_privmsgs_text = $lang['Login_check_pm'];
   $l_privmsgs_text_unread = '';
   $s_privmsg_new = 0;
}

//
// Generate HTML required for Mozilla Navigation bar
//
$nav_links_html = '';
$nav_link_proto = '<link rel="%s" href="%s" title="%s" />' . "\n";
while( list($nav_item, $nav_array) = @each($nav_links) )
{
   if ( !empty($nav_array['url']) )
   {
      $nav_links_html .= sprintf($nav_link_proto, $nav_item, append_sid($nav_array['url']), $nav_array['title']);
   }
   else
   {
      // We have a nested array, used for items like <link rel='chapter'> that can occur more than once.
      while( list(,$nested_array) = each($nav_array) )
      {
         $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
      }
   }
}

//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
$template->assign_vars(array(
   'SITENAME' => $board_config['sitename'],
   'SITE_DESCRIPTION' => $board_config['site_desc'],
   'PAGE_TITLE' => $page_title,
   'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit),
   'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])),
   'TOTAL_USERS_ONLINE' => $l_online_users,
   'LOGGED_IN_USER_LIST' => $online_userlist,
   'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])),
   'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,
   'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,
   'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,

   'PRIVMSG_IMG' => $icon_pm,

   'L_USERNAME' => $lang['Username'],
   'L_PASSWORD' => $lang['Password'],
   'L_LOGIN_LOGOUT' => $l_login_logout,
   'L_LOGIN' => $lang['Login'],
   'L_LOG_ME_IN' => $lang['Log_me_in'],
   'L_AUTO_LOGIN' => $lang['Log_me_in'],
   'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
   'L_REGISTER' => $lang['Register'],
   'L_PROFILE' => $lang['Profile'],
   'L_SEARCH' => $lang['Search'],
   'L_PRIVATEMSGS' => $lang['Private_Messages'],
   'L_WHO_IS_ONLINE' => $lang['Who_is_Online'],
   'L_MEMBERLIST' => $lang['Memberlist'],
   'L_FAQ' => $lang['FAQ'],
   'L_USERGROUPS' => $lang['Usergroups'],
   'L_SEARCH_NEW' => $lang['Search_new'],
   'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'],
   'L_SEARCH_SELF' => $lang['Search_your_posts'],
   'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'),
   'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),

   'U_SEARCH_UNANSWERED' => append_sid('search.'.$phpEx.'?search_id=unanswered'),
   'U_SEARCH_SELF' => append_sid('search.'.$phpEx.'?search_id=egosearch'),
   'U_SEARCH_NEW' => append_sid('search.'.$phpEx.'?search_id=newposts'),
   'U_INDEX' => append_sid('index.'.$phpEx),
   'U_REGISTER' => append_sid('profile.'.$phpEx.'?mode=register'),
   'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'),
   'U_PRIVATEMSGS' => append_sid('privmsg.'.$phpEx.'?folder=inbox'),
   'U_PRIVATEMSGS_POPUP' => append_sid('privmsg.'.$phpEx.'?mode=newpm&popup=1'),
   'U_SEARCH' => append_sid('search.'.$phpEx),
   'U_MEMBERLIST' => append_sid('memberlist.'.$phpEx),
   'U_MODCP' => append_sid('modcp.'.$phpEx),
   'U_FAQ' => append_sid('faq.'.$phpEx),
   'U_VIEWONLINE' => append_sid('viewonline.'.$phpEx),
   'U_LOGIN_LOGOUT' => append_sid($u_login_logout),
   'U_MEMBERSLIST' => append_sid('memberlist.'.$phpEx),
   'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

   'S_CONTENT_DIRECTION' => $lang['DIRECTION'],
   'S_CONTENT_ENCODING' => $lang['ENCODING'],
   'S_CONTENT_DIR_LEFT' => $lang['LEFT'],
   'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'],
   'S_TIMEZONE' => sprintf($lang['All_times'], $lang[number_format($board_config['board_timezone'])]),
   'S_LOGIN_ACTION' => append_sid('login.'.$phpEx),

   'T_HEAD_STYLESHEET' => $theme['head_stylesheet'],
   /*
   'T_BODY_BACKGROUND' => $theme['body_background'],
   'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'],
   'T_BODY_TEXT' => '#'.$theme['body_text'],
   'T_BODY_LINK' => '#'.$theme['body_link'],
   'T_BODY_VLINK' => '#'.$theme['body_vlink'],
   'T_BODY_ALINK' => '#'.$theme['body_alink'],
   'T_BODY_HLINK' => '#'.$theme['body_hlink'],
   */
   'T_TR_COLOR1' => '#'.$theme['tr_color1'],
   'T_TR_COLOR2' => '#'.$theme['tr_color2'],
   'T_TR_COLOR3' => '#'.$theme['tr_color3'],
   'T_TR_CLASS1' => $theme['tr_class1'],
   'T_TR_CLASS2' => $theme['tr_class2'],
   'T_TR_CLASS3' => $theme['tr_class3'],
   'T_TH_COLOR1' => '#'.$theme['th_color1'],
   'T_TH_COLOR2' => '#'.$theme['th_color2'],
   'T_TH_COLOR3' => '#'.$theme['th_color3'],
   'T_TH_CLASS1' => $theme['th_class1'],
   'T_TH_CLASS2' => $theme['th_class2'],
   'T_TH_CLASS3' => $theme['th_class3'],
   'T_TD_COLOR1' => '#'.$theme['td_color1'],
   'T_TD_COLOR2' => '#'.$theme['td_color2'],
   'T_TD_COLOR3' => '#'.$theme['td_color3'],
   'T_TD_CLASS1' => $theme['td_class1'],
   'T_TD_CLASS2' => $theme['td_class2'],
   'T_TD_CLASS3' => $theme['td_class3'],
   'T_FONTFACE1' => $theme['fontface1'],
   'T_FONTFACE2' => $theme['fontface2'],
   'T_FONTFACE3' => $theme['fontface3'],
   'T_FONTSIZE1' => $theme['fontsize1'],
   'T_FONTSIZE2' => $theme['fontsize2'],
   'T_FONTSIZE3' => $theme['fontsize3'],
   'T_FONTCOLOR1' => '#'.$theme['fontcolor1'],
   'T_FONTCOLOR2' => '#'.$theme['fontcolor2'],
   'T_FONTCOLOR3' => '#'.$theme['fontcolor3'],
   'T_SPAN_CLASS1' => $theme['span_class1'],
   'T_SPAN_CLASS2' => $theme['span_class2'],
   'T_SPAN_CLASS3' => $theme['span_class3'],

   'NAV_LINKS' => $nav_links_html)
);

//
// Login box?
//
if ( !$userdata['session_logged_in'] )
{
   $template->assign_block_vars('switch_user_logged_out', array());
}
else
{
   $template->assign_block_vars('switch_user_logged_in', array());

   if ( !empty($userdata['user_popup_pm']) )
   {
      $template->assign_block_vars('switch_enable_pm_popup', array());
   }
}
//
// Part 2 of header switching is below.
//

//    if ($show_header AND (is_active("Forums"))) {
//   $template->pparse('forum_header');
//    } else {
   $template->pparse('overall_header');
//    }


?>
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
yilmaz68
Mesaj: 50+
Mesaj: 50+





Kayıt: Oct 21, 2003
Mesajlar: 81

MesajTarih: 2005-07-17, 15:25:34    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

Yukarda yaptigimiz degisiklikleri geri eski haline getri ve

/modules/Forums/admin/index.php i ac icinden

80. satirda olmali bu kodeyi bul

"U_FORUM_PREINDEX" => append_sid("index.$phpEx&popup=1"),

ve bunula degis

"U_FORUM_PREINDEX" => append_sid("modules.$phpEx?name=Forums&file=index"),
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-17, 15:59:38    Mesaj konusu: Alıntıyla Cevap Gönder

yılmaz abi,

harikasın,son verdiğini denedim oldu.tşk.ler

yılmaz abi,birde şu pop-up açılan pencere için

var windows......falanla başlayan bir okd var o kod nasıl bir şey ve hangi dosyanın içine atılıyor.

yani divrigifm sitesinden aldığım kodu,kaynağı görüntüle olarak aldım
Kod:
}
function radyoyuAc(){
   var radyo = window.open("http://www.radyodinle.com/player.php?rd=19","radyo","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=1,width=420,height=216");
}
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
saho
Forum Yöneticisi
Forum Yöneticisi





Kayıt: Mar 18, 2005
Mesajlar: 2176
Konum: istanbul-tokat

MesajTarih: 2005-07-17, 16:41:30    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

arnıza girdim ama :d
Kod:

function radyoyuAc() {
   var radyo = window.open("http://www.radyodinle.com/player.php?rd=19","radyo","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=1,width=420,height=216");
}


bu satırı mainfale.php ye ekle en alta ekle mesala
sonra header.php yi aç
<?php den sonra
Kod:

 radyoyuAc();

bunu koy kayıt et iki dosyayı servere yolla
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
yilmaz68
Mesaj: 50+
Mesaj: 50+





Kayıt: Oct 21, 2003
Mesajlar: 81

MesajTarih: 2005-07-17, 17:31:37    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

Kod:
<?php
if (eregi("block-RadyoDivrig.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<script Language=\"JavaScript\">";
$content  .= "function Radyoac(url){";
$content  .= "self.name=\"mainpage\";";
$content  .= "window.open(url, \"Terimler\",\"resizable=no,scrollbars=no,toolbar=no,width=420, height=150, top=0, left=0\");";
$content  .= "}";
$content  .= "</script>";
$content  .= "<a href=\"j a v a s c r i p t:void(0);\" Onclick=\"j a v a s c r i p t:Radyoac('http://www.radyodinle.com/player.php?rd=19');\">Divrigi Fm</a>";
?>


Yukradaki kodeleri block-RadyoDivrig.php ismi altinda kaydet servere gönde blok admin alanidan aktif et

Divrigi Fm yazan link ismine grafik kulanabilirsin yapman gerekm img komutu ile uygun bir resim eklemendir.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-17, 17:34:53    Mesaj konusu: Alıntıyla Cevap Gönder

saho abi dediklerini yaptım ama
hata verdi ,hiç bir sayfa açılmadı
mainfile hatası verdi.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
saho
Forum Yöneticisi
Forum Yöneticisi





Kayıt: Mar 18, 2005
Mesajlar: 2176
Konum: istanbul-tokat

MesajTarih: 2005-07-17, 17:42:04    Mesaj konusu: Re: arkadaşlar sorun çok,acemilik de çok.....? Alıntıyla Cevap Gönder

popup açmak istiyorsun sandım kodda bakmadım
block yapacaksan hizmetlerden yap ya da
saho@dunyali.com a yolla block yapıp veriyim
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
ARCAN
Mesaj: 100+
Mesaj: 100+





Kayıt: May 01, 2005
Mesajlar: 116
Konum: DİVRİĞİ

MesajTarih: 2005-07-17, 17:43:53    Mesaj konusu: Alıntıyla Cevap Gönder

Yılmaz abi,tşk.ler

yaptım,şu anda blokta sorun var diyor.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et MSN Messenger
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke Tüm zamanlar GMT + 3 Saat
Sayfaya git 1, 2  Sonraki
1. sayfa (Toplam 2 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok siir bölümünde ilginc bir sorun atakanxx Php Nuke Sorunlarınız 1 2010-07-14, 08:50:40 Son Mesajı Görüntüle
Yeni mesaj yok Tema sorun hakan10 Php Nuke Tema Paylaşımları 0 2010-07-12, 16:42:38 Son Mesajı Görüntüle
Yeni mesaj yok coppermine resim galerisi thumbnail s... calkan Php Nuke Modülleri 1 2010-06-24, 12:54:40 Son Mesajı Görüntüle
Yeni mesaj yok Pm Gönderiminde Sorun DursunKaptan Php Nuke Sorunlarınız 1 2010-06-22, 11:12:35 Son Mesajı Görüntüle
Yeni mesaj yok picasa foto albüm sorun emrahtavsan İnternet Üzerine 1 2010-06-14, 17:13:15 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright