เมนู

แสดงโพสต์

ส่วนนี้ให้คุณดูโพสต์ทั้งหมดของสมาชิกท่านนี้ (เฉพาะโพสต์ในส่วนที่คุณมีสิทธิ์เข้าถึง)

เมนู แสดงโพสต์

ข้อความ - cskaza

#1
อยากจะแนะนำให้ลอง CSZ CMS ดูครับ เผื่อชอบครับ
https://www.cszcms.com

:wanwan017:
#2
& #39; คือ single quote นะครับ สงสัยระบบบอร์ดตัด single quote ให้เป็น & #39; ครับ
#3
อ้างถึงจาก: Naskung ใน 06 พฤษภาคม 2017, 11:33:07
ติดตั้งไม่ผ่านอะครับ

Parse error: syntax error, unexpected 'u485255407' (T_STRING), expecting function (T_FUNCTION) in /home/u485255407/public_html/install/include/Database.php on line 27
ขออภัยที่มาตอบช้านะครับ พอดีงานเยอะครับช่วงนี้
ลองแก้ไขไฟล์ Database.php ด้วยโค๊ดข้างล่างนี้ครับ copy โค๊ดข้างล่างนี้ แล้วไปวางทับของเก่าทั้งหมดครับ
<?php

/**
 * CSZ CMS
 *
 * An open source content management system
 *
 * Copyright (c) 2016, Astian Foundation.
 *
 * Astian Develop Public License (ADPL)
 * 
 * This Source Code Form is subject to the terms of the Astian Develop Public
 * License, v. 1.0. If a copy of the APL was not distributed with this
 * file, You can obtain one at http://astian.org/about-ADPL
 * 
 * @author CSKAZA
 * @copyright   Copyright (c) 2016, Astian Foundation.
 * @license http://astian.org/about-ADPL ADPL License
 * @link [url]https://www.cszcms.com[/url]
 * @since Version 1.0.0
 * 
 * 
 * Mysql database with MySQLi class - only one connection alowed
 */
class Database{

    public 
$_connection;

    
// Constructor
    
public function __construct($dbhost ''$dbuser ''$dbpass ''$dbname ''){
        
$this->_connection = new mysqli($dbhost$dbuser$dbpass$dbname);
        
$this->_connection->set_charset('utf8');
        
$this->_connection->query("SET collation_connection = utf8_general_ci");
        
// Error handling
        
if(mysqli_connect_error()){
            
trigger_error("Failed to conencto to MySQL: ".mysqli_connect_error(), E_USER_ERROR);
        }
    }

    
// Get mysqli connection
    
public function connectDB(){
        return 
$this->_connection;
    }

    public function 
numrow($result){
        return 
$result->num_rows;
    }

    public function 
closeDB(){
        
$this->_connection->close();
    }

    public function 
mysqli_multi_query_file($mysqli$filename){
        
/* error_reporting(E_ERROR | E_PARSE); */
        
$sql file_get_contents($filename);
        
// remove comments
        
$sql preg_replace('#/\*.*?\*/#s'''$sql);
        
$sql preg_replace('/^-- .*[\r\n]*/m'''$sql);
        if(
preg_match_all('/^DELIMITER\s+(\S+)$/m'$sql$matchesPREG_SET_ORDER PREG_OFFSET_CAPTURE)){
            
$prev null;
            
$index 0;
            foreach(
$matches as $match){
                
$sqlPart substr($sql$index$match[0][1] - $index);
                
// move cursor after the delimiter
                
$index $match[0][1] + strlen($match[0][0]);
                if(
$prev && $prev[1][0] != ';'){
                    
$sqlPart explode($prev[1][0], $sqlPart);
                    foreach(
$sqlPart as $part){
                        if(
trim($part)){ // no empty queries
                            
$mysqli->query($part);
                        }
                    }
                }else{
                    if(
trim($sqlPart)){ // no empty queries
                        
$mysqli->multi_query($sqlPart);
                        while(@
$mysqli->next_result()){
                            ;
                        }
                    }
                }
                
$prev $match;
            }
            
// run the sql after the last delimiter
            
$sqlPart substr($sql$indexstrlen($sql) - $index);
            if(
$prev && $prev[1][0] != ';'){
                
$sqlPart explode($prev[1][0], $sqlPart);
                foreach(
$sqlPart as $part){
                    if(
trim($part)){
                        
$mysqli->query($part);
                    }
                }
            }else{
                if(
trim($sqlPart)){
                    
$mysqli->multi_query($sqlPart);
                    while(@
$mysqli->next_result()){
                        ;
                    }
                }
            }
        }else{
            
$mysqli->multi_query($sql);
            while(@
$mysqli->next_result()){
                ;
            }
        }
    }

}

class 
Version{
    
    function 
__construct() {
        
define('BASEPATH''cszcms');
    }
    
    private function 
getVersionConfig(){
        
$config = array();
        require 
'../cszcms/config/systemconfig.php';
        return 
$config['csz_version'];
    }
    
    private function 
getReleaseConfig(){
        
$config = array();
        require 
'../cszcms/config/systemconfig.php';
        return 
$config['csz_release'];
    }

    public function 
getVersion(){
        
$version '';
        if(
$this->getReleaseConfig() == 'beta'){
            
$version $this->getVersionConfig().' Beta';
        }else{
            
$version $this->getVersionConfig();
        }
        return 
$version;
    }

    public function 
setTimezone($timezone){
        if(!
$timezone)
            
$timezone 'Asia/Bangkok';
        if(
function_exists('ini_set')){
            
ini_set('max_execution_time'300);
            
ini_set('date.timezone'$timezone);
        }
    }

}


ลองดูครับว่าได้หรือไม่ครับ
ขอบคุณครับ
#4
อ้างถึงจาก: nahpak ใน 25 เมษายน 2017, 11:40:08
แบบนี้ผมลงไม่ได้ใช่เปล่าครับ
System Checking

PHP 5.3.7 or higher [PASS]
MySQLi Driver [PASS]
cURL Enable [PASS]
PHP GD library Enable [PASS]
Config Write Permission [FAIL]
ci_session Write Permission [FAIL]
Cache Write Permission [FAIL]
DB_Cache Write Permission [FAIL]

ลงไม่ได้ครับ ต้องจัดการ Permission ของการเขียนไฟล์ ของ Directory ที่ระบุไว้ครับ
Config คือ ไฟล์ config.inc.php.
ci_session คือ directory ของ ci_session.
cache คือ directory ของ cache ใน cszcms.
DB_Cache คือ directory ของ db_cache ใน cszcms.

ครับถ้าแก้เรื่อง Permission ได้ ก็ลงได้ครับ
อย่ลืมทำ permission กับ directory photo ด้วยนะครับ เดี๋ยวอัพโหลดไฟล์ในระบบไม่ได้
#5
ขอบคุณมากครับ สำหรับกำลังใจครับ
ตอนนี้ผมได้ร่วมมือกับทางมูลนิธิ Astain ประเทศโคลัมเบีย
เพื่อร่วมกันพัฒนาและผลักดัน CMS ตัวนี้ให้ดีขึ้นครับ
แต่คนพัฒนาหลัก ๆ ก็คือผมเองแหละครับ
:wanwan017:
#6
ตอนนี้ CSZ CMS เวอร์ชั่นล่าสุด 1.1.6 ออกแล้วนะครับ

สิ่งที่มีการเปลี่ยนแปลง
- Add Lazyload jquery.
- Add Italian language for backend system.
- Add Spanish language for backend system.
- Add TinyMCE can select file from "File Upload" (On Image, Link and Video).
- Add group Operations (creating/deleting groups, permission settings).
- Add private messages (between users).
- Add custom css field for pages content.
- Add google custom search on frontend (Can enable/disable on backend).
- Add banner management.
- Add the action logs for backend (for save and delete).
- Add backup function with impotant file (photo directory, custom template directory, .htaccess, config.inc.php).
- Add widget html custom sytle.
- Add maintenance mode enable on site settings.
- Update Font-awesome to 4.7.0.
- Update Codeigniter to 3.1.4.
- Change default template style.
- Support for PHP 7
- Remove new version alert on frontend.
- Remove module shop, this module it will be in store of plugins.
- Fix forms builder bug.
- Fix AdminLTE setting slide menu z-index.
- Fix db cache for RSS feed.
- Fix RSSParser for feed news on backend.
- Fix new linkstatics function.
- Fix dropdown menu hierarchical url (good SEO).
- Fix sitemap generator for menu hierarchical url.
- Fix more performance for backend and frontend (Include html minify).
- Fix navigation menu for support #mydiv or page#mydiv.
- Fix password encyption for more security.
- Fix plugin structure for support developer.
- Fix sitemap generator for new plugin structure.

https://www.cszcms.com/plugin/article/view/17/csz-cms-news-about-version-1-1-6
:wanwan017:
#7
อ้างถึงจาก: thaicoffin ใน 04 กุมภาพันธ์ 2017, 09:27:22
:wanwan017:  ขอบคุณเครับ  แต่ผมเข้าหน้า  DEMO ไม่ได้ครับ

หน้าเดโม่ ผมใช้โฮสต์ฟรีครับ บางที mysql ล่ม ก็เลยอาจจะเข้าไม่ได้ครับ ต้องลองเข้าเรื่อย ๆ ครับผม
:wanwan017:
#8
ตอนนี้ CSZ CMS ออกอัพเดท เวอร์ชั่นล่าสุดแล้วนะครับ เวอร์ชั่น 1.1.5

- Add Google Analytics data last 30 days to show on backend.
- Add news feed from cszcms website on backend dashboard.
- Add Dutch language for backend system.
- Add brute force login protection system.
- Change backend template to AdminLTE.
- Update Codeigniter to 3.1.3.
- Fix url rewrite for limit maxlength characters.
- Fix shop plugin to 1.0.3 (Bug fixed and more update feature).
- Fix remove form auto focus when required field.
- Fix file upload function for security.
- Fix TinyMCE use frontend template css.
- Fix to return method url after login.
- Fix more security (Url injection).
- Fix forms builder bug.

รายละเอียดเพิ่มเติม https://www.cszcms.com/download
#9
ตอนนี้เวอร์ชั่น 1.1.3 ออกแล้วนะครับพี่น้องครับ

ปล. ถ้าหากมีปัญหาการใช้งาน หรือพบข้อผิดพลาด กรุณาติดต่อผมได้ทางหน้า contact us ในเว็บได้เลยครับ
https://www.cszcms.com

:wanwan003:
#10
มีระบบแคชด้วยครับ
ถ้ามีปัญหาการใช้งาน หรือข้อสงสัย
ทักแชทมาในเพจได้เลยครับ
https://www.facebook.com/cszcms/

ขอบคุณครับ

:wanwan017: