| Author | Message |
Sender
336 posts |
#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, 465 Gün ago) |
|
Kaan
2,082 posts |
#4190 2007-07-04 01:45 GMT |
|
MySQL server version Sorunu var
|
|
Sender
336 posts |
#4191 2007-07-04 01:53 GMT |
|
Lduda calısıyor sedde çalışmıyor ama sed le ldu aynı hostta? |
|
Dvdbil
2,237 posts |
#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 )); ?> |
|
|
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ı: 21 Uygulama yaptığım toplam site sayısı: 38 ------------------------------------------------- Müşterinin isteği doğrultusunda hazırladığım; - eklenti sayısı: 44 - skin sayısı: 8 - bot sayısı: 15 - özel güvenlik yamaları: 21 - Sql performans optimizasyonu: 13 (yüksek hitli siteler için) - Portal genel cache ve materyal optimizasyonu: 15 *************************************************************** |
|
Dvdbil
2,237 posts |
#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'); |
|
|
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ı: 21 Uygulama yaptığım toplam site sayısı: 38 ------------------------------------------------- Müşterinin isteği doğrultusunda hazırladığım; - eklenti sayısı: 44 - skin sayısı: 8 - bot sayısı: 15 - özel güvenlik yamaları: 21 - Sql performans optimizasyonu: 13 (yüksek hitli siteler için) - Portal genel cache ve materyal optimizasyonu: 15 *************************************************************** |
|
Sender
336 posts |
#4194 2007-07-04 04:05 GMT |
|
hata verior dvdbil :S
|
|
> 1 <
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| Kim nerde online eklentisi | 6 | Dvdbil | 431 Gün |
| Emeklilere Promosyon Nerde? | 1 | KonuMatik | 267 Gün |
| texboxerde hata ve forum açarken hata yardım pls | 5 | Dvdbil | 329 Gün |
| cok değişik hata böyle hata görülmedi(: | 4 | Kaan | 9 Gün |
| Ldu Hata | 2 | Kaan | 333 Gün |





