PHP code example of tomk79 / rencon

1. Go to this page and download the library: Download tomk79/rencon library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tomk79 / rencon example snippets


// =-=-=-=-=-=-=-=-=-=-=-= Configuration START =-=-=-=-=-=-=-=-=-=-=-=
$conf = new stdClass();

$conf->users = array(
	"admin" => sha1("admin"),
);

$conf->users = null;

$conf->disabled = array(
	'databases', // データベース操作を無効化
	'files', // ファイルとフォルダ操作を無効化
	'phpinfo', // phpinfo() の閲覧を無効化
);

$conf->databases = array(
  "main_db" => array(
    "dsn" => "sqlite:./db/database.sqlite", // PDOの第1引数に渡される値
    "driver" => "sqlite", // DBドライバ名 (`dsn` が設定される場合は不要)
    "host" => "127.0.0.1", // 接続先ホスト名 (`dsn` が設定される場合は不要)
    "port" => 3306, // 接続先ポート番号 (`dsn` が設定される場合は不要)
    "database" => "my_database_name", // 接続先データベース名 (`dsn` が設定される場合は不要)
    "username" => "user", // ログインユーザー名
    "password" => "passwd", // ログインパスワード
    "options" => array(), // PDOオプション
  ),
);

$conf->files_path_root = '/';

$conf->files_paths_invisible = array();

$conf->files_paths_readonly = array(
	'/*',
);

$ vi rencon.php

$ php build/build.php

$ php vendor/phpunit/phpunit/phpunit