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

Etiketler: hata nerde

Author Message

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4188   2007-07-04 00:40 GMT      

Code:
<?PHP

/* ====================

[BEGIN_SED]
File=plugins/quickstats.php
Version=121
Updated=2004-apr-02
Type=Plugin.Index
Author=Neocrome
Description=Will display some stats in the home page.
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=quickstats
Part=main
File=quickstats
Hooks=index.tags
Tags=index.tpl:{INDEX_QUICKSTATS}
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

==================== */

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

$evil_p = sed_import('plu_quickstats','P','HTM');
$evil_g = sed_import('plu_quickstats','G','HTM');

if (!$plu_quickstats || !empty($evil_g) || !empty($evil_p))
{
$plu_count_pages = sed_sql_rowcount($db_pages);
$plu_count_news = sed_sql_rowcount($db_news);
$plu_count_comments = sed_sql_rowcount($db_com);
$plu_count_links = sed_sql_rowcount($db_links);
$plu_count_users = sed_sql_rowcount($db_users);
$plu_count_tpages = sed_sql_getstat('totalpages');
$plu_count_topics = sed_sql_rowcount($db_forum_topics);
$plu_count_posts = sed_sql_rowcount($db_forum_posts);
$sqltmp = sed_sql_query("SELECT SUM(fs_topiccount_pruned) FROM $db_forum_sections", "Plugin/statistics");
$plu_count_topics += mysql_result($sqltmp, 0, "SUM(fs_topiccount_pruned)");
$sqltmp = sed_sql_query("SELECT SUM(fs_postcount_pruned) FROM $db_forum_sections", "Plugin/statistics");
$plu_count_posts += mysql_result($sqltmp, 0, "SUM(fs_postcount_pruned)");
$sqltmp = sed_sql_query("SELECT stat_name FROM $db_stats WHERE stat_name LIKE '20%' ORDER BY stat_name ASC LIMIT 1", "Plugin/statistics");
$rowtmp = mysql_fetch_array($sqltmp);
$plu_since = $rowtmp['stat_name'];


$plu_quickstats .= "<center>»Site when«<strong><br /></strong></center><br />";
$plu_quickstats .= "» qqqq <strong>".$plu_count_users."</strong><br />";
$plu_quickstats .= "» qqqq <strong>".$plu_count_topics."</strong><br />";
$plu_quickstats .= "» message <strong>".$plu_count_posts."</strong><br />";
$plu_quickstats .= "» totalhit <strong>".$plu_count_tpages."</strong><br />";
$plu_quickstats .= "» qq <strong>".$plu_count_pages."</strong><br />";
$plu_quickstats .= "» qqqqq <strong>".$plu_count_news."</strong><br />";
$plu_quickstats .= "» aaaaaaaaak <strong>".$plu_count_links."</strong><br />";
$plu_quickstats .= "» aaaaa <strong>".$plu_count_comments."</strong><br />";

sed_cstore('plu_quickstats', $plu_quickstats, 600);
}

error:Fatal error : SQL error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
$t-> assign(array(
"INDEX_QUICKSTATS" => $plu_quickstats
));

?>


error:Fatal error : SQL error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

bu hatayı alıorum neden?

This post was edited by Dvdbil (2007-07-04 01:11 GMT, 385 Gün ago)

Kaan

Moderators


Online status

1,976 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#4190   2007-07-04 01:45 GMT      
MySQL server version Sorunu var
Tıkla Anında Sende Kazan!
UIygun Fiyata Seditio Tasarımı Yapılır..
Sitemap Yenilendi

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4191   2007-07-04 01:53 GMT      

Lduda calısıyor sedde çalışmıyor ama sed le ldu aynı hostta?

Dvdbil

Administrator


Online status

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

Location: Turkey istanbul
Occupation: Web Tasarım & Yazılım
Age: 28

#4192   2007-07-04 02:25 GMT      
Ldu'da çalışan kod Seditio'da çalışması mı gerekiyor Sender ?

Kodları inceledim ve o kadar saçma hatalar tespit ettim ki.. yaklaşık 10 tane kadar..

Kodları düzelttim ancak bazı alakasız kodları silmedim..

Code:
<?PHP

/* ====================

[BEGIN_SED]
File=plugins/quickstats.php
Version=121
Updated=2004-apr-02
Type=Plugin.Index
Author=Neocrome
Description=Will display some stats in the home page.
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=quickstats
Part=main
File=quickstats
Hooks=index.tags
Tags=index.tpl:{INDEX_QUICKSTATS}
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

==================== */

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

$evil_p = sed_import('plu_quickstats','P','HTM');
$evil_g = sed_import('plu_quickstats','G','HTM');

if (!$plu_quickstats || !empty($evil_g) || !empty($evil_p))
{
$plu_count_pages = sed_sql_rowcount($db_pages);
$plu_count_comments = sed_sql_rowcount($db_com);
$plu_count_users = sed_sql_rowcount($db_users);
$plu_count_tpages = sed_stat_get('totalpages');
$plu_count_topics = sed_sql_rowcount($db_forum_topics);
$plu_count_posts = sed_sql_rowcount($db_forum_posts);
$sqltmp = sed_sql_query("SELECT SUM(fs_topiccount_pruned) FROM $db_forum_sections", "Plugin/statistics");
$plu_count_topics += mysql_result($sqltmp, 0, "SUM(fs_topiccount_pruned)");
$sqltmp = sed_sql_query("SELECT SUM(fs_postcount_pruned) FROM $db_forum_sections", "Plugin/statistics");
$plu_count_posts += mysql_result($sqltmp, 0, "SUM(fs_postcount_pruned)");
$sqltmp = sed_sql_query("SELECT stat_name FROM $db_stats WHERE stat_name LIKE '20%' ORDER BY stat_name ASC LIMIT 1", "Plugin/statistics");
$rowtmp = mysql_fetch_array($sqltmp);
$plu_since = $rowtmp['stat_name'];


$plu_quickstats = "<center>»Site when«<strong><br /></strong></center><br />";
$plu_quickstats .= "» qqqq <strong>".$plu_count_users."</strong><br />";
$plu_quickstats .= "» qqqq <strong>".$plu_count_topics."</strong><br />";
$plu_quickstats .= "» message <strong>".$plu_count_posts."</strong><br />";
$plu_quickstats .= "» totalhit <strong>".$plu_count_tpages."</strong><br />";
$plu_quickstats .= "» qq <strong>".$plu_count_pages."</strong><br />";
$plu_quickstats .= "» qqqqq <strong>".$plu_count_news."</strong><br />";
$plu_quickstats .= "» aaaaaaaaak <strong>".$plu_count_links."</strong><br />";
$plu_quickstats .= "» aaaaa <strong>".$plu_count_comments."</strong><br />";

sed_cache_store('plu_quickstats', $plu_quickstats, 600);
}

$t-> assign(array(
"INDEX_QUICKSTATS" => $plu_quickstats
));

?>

Dvdbil

Administrator


Online status

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

Location: Turkey istanbul
Occupation: Web Tasarım & Yazılım
Age: 28

#4193   2007-07-04 02:28 GMT      
Ayrıca;
Seditio'dan mı yoksa başka neden mi bilmiyorum fakat stat değerlerinde rows'lar çoğu kişide oluşmuyor..

Alttaki kodları direk Phpmyadmin'de sql sorgusu olarak çalıştırın, hata verirse sorun yok demektir.. hata vermezse ise işinize yarar.

Code:
INSERT INTO sed_stats (stat_name, stat_value) VALUES ('totalpages', '0');
INSERT INTO sed_stats (stat_name, stat_value) VALUES ('totalmailsent', '0');
INSERT INTO sed_stats (stat_name, stat_value) VALUES ('totalmailpmnot', '0');
INSERT INTO sed_stats (stat_name, stat_value) VALUES ('totalpms', '0');
INSERT INTO sed_stats (stat_name, stat_value) VALUES ('totalantihammer', '0');
INSERT INTO sed_stats (stat_name, stat_value) VALUES ('textboxerprev', '0');
INSERT INTO sed_stats (stat_name, stat_value) VALUES ('version', '121');

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4194   2007-07-04 04:05 GMT      
hata verior dvdbil :S
> 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] [280] [281] [282] [283] [284] [285] [286] [287] [288] [289] [290] [291] [292] [293] [294] [295] [296] [297] [298] [299] [300] [301] [302] [303] [304] [305] [306] [307] [308] [309] [310] [311] [312] [313] [314] [315] [316] [317] [318] [319] [320] [321] [322] [323] [324] [325] [326] [327] [328] [329] [330] [331] [332] [333] [334] [335] [336] [337] [338] [339] [340] [341] [342] [343] [344] [345] [346] [347] [348] [349] [350] [351] [352] [353] [354] [355] [356] [357] [358]