GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pluslive/p2-php: ServerSide 2ch viewer

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,105 Commits
1,105 Commits

Folders and files

NameName
Last commit message
Last commit date
build
build
 
 
conf
conf
 
 
data
data
 
 
doc
doc
 
 
lib
lib
 
 
rep2
rep2
 
 
scripts
scripts
 
 
style
style
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
init.php
init.php
 
 

Repository files navigation

rep2 expack +live

rskさん作 rep2expack を元に、実況用機能を追加しています。

追加機能

  • 実況用表示
  • オートリロード/スクロール
  • ハイライトワード/連鎖ハイライト

その他基本機能はベースとなっている rep2expack と同じです。

セットアップ

Git & Composerで

  1. 本体をclone
git clone git://github.com/pluslive/p2-php.git
  cd p2-php
  1. 依存ライブラリをダウンロード
curl -O http://getcomposer.org/composer.phar
  php -d detect_unicode=0 composer.phar install
  1. Webサーバが書き込めるようにディレクトリのアクセス権をセット
    (CGI/suEXECIやCLI/Built-in web serverでは不要)
chmod 0777 data/* rep2/ic

動作環境

以下のコマンドを実行して、全ての項目で OK が出たなら大丈夫です。

何かエラーが出たらがんばって環境を整えてください。

php scripts/p2cmd.php check

Built-in web serverで使ってみる (PHP 5.4+)

PHP 5.4の新機能、ビルトインウェブサーバーで簡単に試せます。

以下のようにすると、Webサーバーの設定をしなくても http://localhost:8080/ でrep2を使えます。(Windowsでも!)

cd rep2
php -S localhost:8080 web.php

moriyoshi++

画像を自動で保存したい

スレに貼られている画像を自動で保存する機能、ImageCache2があります。

see also doc/ImageCache2/README.txt, doc/ImageCache2/INSTALL.txt

準備

  1. SQLite以外のデータベースを使う場合はデータベースサーバーを立ち上げておく。

  2. conf/conf_admin_ex.inc.phpでImageCache2を有効にする。

$_conf['expack.ic2.enabled'] = 3;
  1. conf/conf_ic2.inc.phpでDSNを設定する。
$_conf['expack.ic2.general.dsn'] = 'mysql://username:password@localhost:3306/database';
  1. setupスクリプトを実行する。
php scripts/ic2.php setup

注意

  • PHP 5.4ではSQLite2がサポートされなくなったので、ImageCache2を使いたいときはMySQLかPostgreSQLが必要です。
  • ホストにlocalhostを指定して接続できないときは、代わりに127.0.0.1にしてみてください。

設定を変えたい

細かい挙動の変更は メニュー > 設定管理 > ユーザー設定編集 から行えます。

Webブラウザから変更できない項目は conf/conf_admin.inc.php (基本), conf/conf_admin_ex.inc.php (拡張パック), conf/conf_ic2.inc.php (ImageCache2) を直接編集します。

どういうことができるか書き起こすのが面倒なので設定ファイルのコメントを見てください。

更新

php scripts/p2cmd.php update

これは下記コマンドを個別に実行するのと等価です。

git pull
php -d detect_unicode=0 composer.phar self-update
php -d detect_unicode=0 composer.phar update

Authors & Contributors

  • aki (original) http://akid.s17.xrea.com/
  • rsk (expack) https://github.com/rsky/p2-php/
  • unpush https://github.com/unpush/p2-php/
  • thermon https://github.com/thermon/p2-php/
  • part32の892 (+live) https://github.com/pluslive/p2-php/
  • 2ch p2/rep2スレの>>1-1000

License

see LICENSE.txt

About

ServerSide 2ch viewer

sourceforge.jp/projects/p2-php/

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.