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 - rsky/p2-php: The server side 2ch viewer written in PHP

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,075 Commits
1,075 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

なんだかんだで歴史の長い、PHPでつくられたサーバーサイド2ちゃんねるビューワーです。

作りがレガシーなのは作っているひとがいちばんよくわかっているので、勘弁してつかあさい。

次世代版建設予定地

セットアップ

Git & Composerで

  1. 本体をclone
git clone git://github.com/rsky/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

The server side 2ch viewer written in PHP

rsky.github.io/p2-php/

Resources

Readme
MIT license
Activity

Stars

42 stars

Watchers

16 watching

Forks

17 forks
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.