Seditio ve Ldu hakkında sınırsız arama yapın
 
 
> 1 <

Etiketler: yorumlar hakkında

Author Message

Xiao

Moderators


Online status

869 posts
http://www.seditione.com
Pagerank: 0

Location: Turkey Trabzon
Occupation: Orman Mühendisi
Age: 30

#176   2007-03-14 13:29 GMT      

page.tpl de yorumları alt tarafa aldığım zaman görünmüyor! http://www.genc-turk.org/page-id-9.php girdiğiniz zaman mesela yorum üstte çıkıyor.alt tarafa almak istediğim zaman da görünmüyor!ne yapmam lazım?
Hacca gittim.

Dvdbil

Administrator


Online status

2,253 posts
http://www.seditio-tr.com
Pagerank: 3

Location: Turkey istanbul
Occupation: Web Site(ler) İşletmeciliği
Age: 28

#177   2007-03-14 13:31 GMT      
page.inc.php ve page.(*).tpl dosyalarını ver..
Sitelerinize profesyonel anlamda hizmet verilir;

- Performans optimizasyonu,
- Üst düzey güvenlik yamaları,
- İsteğe bağlı eklentiler,
- Her çeşit bot (program, video, resim, arsiv, haber),
- Profesyonel görsel skin.

Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta.
 
*************************İSTATİSTİKLER*************************
Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23
Sadece Eklenti hazırladığım kişi sayısı: 22
Uygulama yaptığım toplam site sayısı: 39
-------------------------------------------------
Müşterinin isteği doğrultusunda hazırladığım;
- eklenti sayısı: 46
- skin sayısı: 8
- bot sayısı: 18
- özel güvenlik yamaları: 21
- Sql performans optimizasyonu: 13 (yüksek hitli siteler için)
- Portal genel cache ve materyal optimizasyonu: 15
***************************************************************

Xiao

Moderators


Online status

869 posts
http://www.seditione.com
Pagerank: 0

Location: Turkey Trabzon
Occupation: Orman Mühendisi
Age: 30

#178   2007-03-14 13:41 GMT      

page.inc.php
Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net
[BEGIN_SED]
File=page.inc.php
Version=110
Updated=2006-sep-25
Type=Core
Author=Neocrome
Description=Pages
[END_SED]
==================== */

if (!defined('SED_CODE')) { die('Wrong URL.'); }

list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('page', 'any');
sed_block($usr['auth_read']);

$id = sed_import('id','G','INT');
$al = sed_import('al','G','ALP');
$r = sed_import('r','G','ALP');
$c = sed_import('c','G','TXT');
$pg = sed_import('pg','G','INT');
$comments = sed_import('comments','G','BOL');
$ratings = sed_import('ratings','G','BOL');

/* === Hook === */
$extp = sed_getextplugins('page.first');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

if (!empty($al))
{ $sql = sed_sql_query("SELECT p.*, u.user_name, u.user_avatar FROM $db_pages AS p
LEFT JOIN $db_users AS u ON u.user_id=p.page_ownerid
WHERE page_alias='$al' LIMIT 1"); }
else
{ $sql = sed_sql_query("SELECT p.*, u.user_name, u.user_avatar FROM $db_pages AS p
LEFT JOIN $db_users AS u ON u.user_id=p.page_ownerid
WHERE page_id='$id'"); }

sed_die(sed_sql_numrows($sql)==0);
$pag = sed_sql_fetcharray($sql);

$pag['page_date'] = @date($cfg['dateformat'], $pag['page_date'] + $usr['timezone'] * 3600);
$pag['page_begin'] = @date($cfg['dateformat'], $pag['page_begin'] + $usr['timezone'] * 3600);
$pag['page_expire'] = @date($cfg['dateformat'], $pag['page_expire'] + $usr['timezone'] * 3600);
$pag['page_tab'] = (empty($pg)) ? 1 : $pg;
$pag['page_pageurl'] = (empty($pag['page_alias'])) ? "page.php?id=".$pag['page_id'] : "page.php?al=".$pag['page_alias'];

list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('page', $pag['page_cat']);
sed_block($usr['auth_read']);

if ($pag['page_state']==1 && !$usr['isadmin'])
{
sed_log("Attempt to directly access an un-validated page", 'sec');
header("Location: message.php?msg=930");
exit;
}

if (substr($pag['page_text'], 0, 6)=='redir:')
{
$redir = str_replace('redir:', '', trim($pag['page_text']));
$sql = sed_sql_query("UPDATE $db_pages SET page_filecount=page_filecount+1 WHERE page_id='".$pag['page_id']."'");
header("Location: ".$redir);
exit;
}
elseif (substr($pag['page_text'], 0, 8)=='include:')
{
$pag['page_text'] = sed_readraw('datas/html/'.trim(substr($pag['page_text'], 8, 255)));
}


if($pag['page_file'] && $a=='dl')
{
$file_size = @filesize($row['page_url']);
$pag['page_filecount']++;
$sql = sed_sql_query("UPDATE $db_pages SET page_filecount=page_filecount+1 WHERE page_id='".$pag['page_id']."'");
header("Location: ".$pag['page_url']);
echo("<script type='text/javascript'>location.href='".$pag['page_url']."';</script>Redirecting...");
exit;
}

$pag['page_count']++;
$sql = sed_sql_query("UPDATE $db_pages SET page_count='".$pag['page_count']."' WHERE page_id='".$pag['page_id']."'");

$pag['page_tabs'] = explode('[newpage]', $pag['page_text'], 99);
$pag['page_totaltabs'] = count($pag['page_tabs']);

if ($pag['page_totaltabs']>1)
{
if (empty($pag['page_tabs'][0]))
{
$remove = array_shift($pag['page_tabs']);
$pag['page_totaltabs']--;
}
$pag['page_tab'] = ($pag['page_tab']>$pag['page_totaltabs']) ? 1 : $pag['page_tab'];
$pag['page_tabtitles'] = array();

for ($i = 0; $i < $pag['page_totaltabs']; $i++)
{
$p1 = strpos($pag['page_tabs'][$i], '[title]');
$p2 = strpos($pag['page_tabs'][$i], '[/title]');

if ($p2>$p1 && $p1<4)
{
$pag['page_tabtitle'][$i] = substr ($pag['page_tabs'][$i], $p1+7, ($p2-$p1)-7);
if ($i+1==$pag['page_tab'])
{
$pag['page_tabs'][$i] = trim(str_replace('[title]'.$pag['page_tabtitle'][$i].'[/title]', '', $pag['page_tabs'][$i]));
}
}
else
{ $pag['page_tabtitle'][$i] = ''; }

$pag['page_tabtitles'][] .= "<a href=\"".$pag['page_pageurl']."&amp;pg=".($i+1)."\">".($i+1).". ".$pag['page_tabtitle'][$i]."</a>";
$pag['page_tabnav'] .= ($i+1==$pag['page_tab']) ? '> ' : '[';
$pag['page_tabnav'] .= "<a href=\"".$pag['page_pageurl']."&amp;pg=".($i+1)."\">".($i+1)."</a>";
$pag['page_tabnav'] .= ($i+1==$pag['page_tab']) ? ' < ' : '] ';
$pag['page_tabs'][$i] = trim(str_replace('[newpage]', '', $pag['page_tabs'][$i]));
}

$pag['page_tabtitles'] = implode('<br />', $pag['page_tabtitles']);
$pag['page_text'] = $pag['page_tabs'][$pag['page_tab']-1];
}


$catpath = sed_build_catpath($pag['page_cat'], "<a href=\"list.php?c=%1\$s\">%2\$s</a>");
$pag['page_fulltitle'] = $catpath." ".$cfg['separator']." <a href=\"".$pag['page_pageurl']."\">".$pag['page_title']."</a>";
$pag['page_fulltitle'] .= ($pag['page_totaltabs']>1 && !empty($pag['page_tabtitle'][$pag['page_tab']-1])) ? " (".$pag['page_tabtitle'][$pag['page_tab']-1].")" : '';

$item_code = 'p'.$pag['page_id'];

list($comments_link, $comments_display) = sed_build_comments($item_code, $pag['page_pageurl'], $comments);
list($ratings_link, $ratings_display) = sed_build_ratings($item_code, $pag['page_pageurl'], $ratings);

$out['subtitle'] = $pag['page_title'];

/* === Hook === */
$extp = sed_getextplugins('page.main');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

require("system/header.php");

$mskin = sed_skinfile(array('page', $sed_cat[$pag['page_cat']]['tpl']));
$t = new XTemplate($mskin);

$t->assign(array(
"PAGE_ID" => $pag['page_id'],
"PAGE_STATE" => $pag['page_state'],
"PAGE_EXECUTE" => $pag['page_execute'],
"PAGE_TITLE" => $pag['page_fulltitle'],
"PAGE_SHORTTITLE" => $pag['page_title'],
"PAGE_CAT" => $pag['page_cat'],
"PAGE_CATTITLE" => $sed_cat[$pag['page_cat']]['title'],
"PAGE_CATPATH" => $catpath,
"PAGE_CATDESC" => $sed_cat[$pag['page_cat']]['desc'],
"PAGE_CATICON" => $sed_cat[$pag['page_cat']]['icon'],
"PAGE_KEY" => $pag['page_key'],
"PAGE_EXTRA1" => $pag['page_extra1'],
"PAGE_EXTRA2" => $pag['page_extra2'],
"PAGE_EXTRA3" => $pag['page_extra3'],
"PAGE_EXTRA4" => $pag['page_extra4'],
"PAGE_EXTRA5" => $pag['page_extra5'],
"PAGE_DESC" => $pag['page_desc'],
"PAGE_AUTHOR" => $pag['page_author'],
"PAGE_OWNER" => sed_build_user($pag['page_ownerid'], sed_cc($pag['user_name'])),
"PAGE_AVATAR" => sed_build_userimage($pag['user_avatar']),
"PAGE_DATE" => $pag['page_date'],
"PAGE_BEGIN" => $pag['page_begin'],
"PAGE_EXPIRE" => $pag['page_expire'],
"PAGE_COMMENTS" => $comments_link,
"PAGE_COMMENTS_DISPLAY" => $comments_display,
"PAGE_RATINGS" => $ratings_link,
"PAGE_RATINGS_DISPLAY" => $ratings_display
));

if($pag['page_totaltabs']>1)
{
$t->assign(array(
"PAGE_MULTI_TABNAV" => $pag['page_tabnav'],
"PAGE_MULTI_TABTITLES" => $pag['page_tabtitles'],
"PAGE_MULTI_CURTAB" => $pag['page_tab'],
"PAGE_MULTI_MAXTAB" => $pag['page_totaltabs']
));
$t->parse("MAIN.PAGE_MULTI");
}

if ($usr['isadmin'])
{
$t-> assign(array(
"PAGE_ADMIN_COUNT" => $pag['page_count'],
"PAGE_ADMIN_UNVALIDATE" => "<a href=\"admin.php?m=page&amp;s=queue&amp;a=unvalidate&amp;id=".$pag['page_id']."&amp;".sed_xg()."\">".$L['Putinvalidationqueue']."</a>",
"PAGE_ADMIN_EDIT" => "<a href=\"page.php?m=edit&amp;id=".$pag['page_id']."&amp;r=list\">".$L['Edit']."</a>"
));

$t->parse("MAIN.PAGE_ADMIN");
}

switch($pag['page_type'])
{
case '1':
$t->assign("PAGE_TEXT", $pag['page_text']);
break;

case '2':

if ($cfg['allowphp_pages'] && $cfg['allowphp_override'])
{
ob_start();
eval($pag['page_text']);
$t->assign("PAGE_TEXT", ob_get_clean());
}
       else
{
$t->assign("PAGE_TEXT", "The PHP mode is disabled for pages.<br />Please see the administration panel, then \"Configuration\", then \"Parsers\".");
}
break;

default:
$t->assign("PAGE_TEXT",sed_parse(sed_cc($pag['page_text']), $cfg['parsebbcodepages'], $cfg['parsesmiliespages'], 1));
break;
}

if($pag['page_file'])
{
if (!empty($pag['page_url']))
{
$dotpos = strrpos($pag['page_url'],".")+1;
$pag['page_fileicon'] = "system/img/pfs/".strtolower(substr($pag['page_url'], $dotpos, 5)).".gif";
if (!file_exists($pag['page_fileicon']))
{ $pag['page_fileicon'] = "system/img/admin/page.gif"; }
$pag['page_fileicon'] = "<img src=\"".$pag['page_fileicon']."\" alt=\"\">";
}
else
{ $pag['page_fileicon'] = ''; }

$t->assign(array(
"PAGE_FILE_URL" => "page.php?id=".$pag['page_id']."&amp;a=dl",
"PAGE_FILE_SIZE" => $pag['page_size'],
"PAGE_FILE_COUNT" => $pag['page_filecount'],
"PAGE_FILE_ICON" => $pag['page_fileicon']
));
$t->parse("MAIN.PAGE_FILE");
}

/* === Hook === */
$extp = sed_getextplugins('page.tags');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */

$t->parse("MAIN");
$t->out("MAIN");

require("system/footer.php");

?>

page.tpl
Code:
<!-- BEGIN: MAIN -->
<!--Seditio Skin T3 Blaster 07 Copyright © 2007 T3-Design.Com. All rights Reserved. -->

<div id="title">

{PAGE_TITLE}

</div>

<div id="subtitle">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>{PHP.skinlang.page.File} {PAGE_SHORTTITLE}<br />
{PHP.skinlang.page.Desc} {PAGE_DESC}<br />
{PHP.skinlang.page.Author} {PAGE_AUTHOR}<br />
{PHP.skinlang.page.Date} {PAGE_DATE}<br /></td>
    {PHP.skinlang.page.Ratings} {PAGE_RATINGS} <br />

<!-- BEGIN: PAGE_ADMIN -->

{PAGE_ADMIN_UNVALIDATE} &nbsp; {PAGE_ADMIN_EDIT} &nbsp; ({PAGE_ADMIN_COUNT})<br />

<!-- END: PAGE_ADMIN -->
</td>
  </tr>
</table>
{PAGE_COMMENTS_DISPLAY}{PAGE_RATINGS_DISPLAY}
</div>

<div id="main">

{PAGE_TEXT}

<!-- BEGIN: PAGE_MULTI -->

<div class="paging">

{PAGE_MULTI_TABNAV}

</div>

<div class="block">
<h5>{PHP.skinlang.page.Summary}</h5>

{PAGE_MULTI_TABTITLES}

</div>

<!-- END: PAGE_MULTI -->
</div>
<!-- BEGIN: PAGE_FILE -->

<div class="download">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td class="centerall middleall" width="30"><a href="{PAGE_FILE_URL}"><img src="skins/{PHP.skin}/img/system/download.gif" alt=""/></a></td>
    <td class="middleall"> {PHP.skinlang.page.File} {PAGE_SHORTTITLE}<br />

{PHP.skinlang.page.Filesize} {PAGE_FILE_SIZE} {PHP.skinlang.page.FilesizeKB}<br/>
{PHP.skinlang.page.Downloads} {PAGE_FILE_COUNT} {PHP.skinlang.page.Times}<br/>
     <a href="{PAGE_FILE_URL}">{PHP.skinlang.page.Download}  {PAGE_SHORTTITLE}</a><br/>

    </td>
    <td>&nbsp;</td>
<td>{PHP.skinlang.page.Comments} {PAGE_COMMENTS} </td><br />
  </tr>
</table>
</div>

<!-- END: PAGE_FILE -->

<!--Seditio Skin T3 Blaster 07 Copyright © 2007 T3-Design.Com. All rights Reserved. -->
<!-- END: MAIN -->
Hacca gittim.

Dvdbil

Administrator


Online status

2,253 posts
http://www.seditio-tr.com
Pagerank: 3

Location: Turkey istanbul
Occupation: Web Site(ler) İşletmeciliği
Age: 28

#179   2007-03-14 13:49 GMT      
<!-- BEGIN: PAGE_FILE --> <!-- END: PAGE_FILE --> arasında olmamalı yorum etiketleri.

Yorum etiketini <!-- END: PAGE_FILE --> altına alırsan çalışacaktır ayrıca table div yapılarını da düzeltmen gerekecek.
Sitelerinize profesyonel anlamda hizmet verilir;

- Performans optimizasyonu,
- Üst düzey güvenlik yamaları,
- İsteğe bağlı eklentiler,
- Her çeşit bot (program, video, resim, arsiv, haber),
- Profesyonel görsel skin.

Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta.
 
*************************İSTATİSTİKLER*************************
Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23
Sadece Eklenti hazırladığım kişi sayısı: 22
Uygulama yaptığım toplam site sayısı: 39
-------------------------------------------------
Müşterinin isteği doğrultusunda hazırladığım;
- eklenti sayısı: 46
- skin sayısı: 8
- bot sayısı: 18
- özel güvenlik yamaları: 21
- Sql performans optimizasyonu: 13 (yüksek hitli siteler için)
- Portal genel cache ve materyal optimizasyonu: 15
***************************************************************

Xiao

Moderators


Online status

869 posts
http://www.seditione.com
Pagerank: 0

Location: Turkey Trabzon
Occupation: Orman Mühendisi
Age: 30

#180   2007-03-14 13:53 GMT      
teşekkürler şimdi çok güzel oldu
Hacca gittim.
> 1 <

Benzer konular (Similar topics) #BETA

Keywords (beta):

Forum Arşiv (beta):

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212] [213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225] [226] [227] [228] [229] [230] [231] [232] [233] [234] [235] [236] [237] [238] [239] [240] [241] [242] [243] [244] [245] [246] [247] [248] [249] [250] [251] [252] [253] [254] [255] [256] [257] [258] [259] [260] [261] [262] [263] [264] [265] [266] [267] [268] [269] [270] [271] [272] [273] [274] [275] [276] [277] [278] [279]