File: /home/purecell-18/.bash_history
ls
cd ~
ls
cd purecell.lightweb.kr/
ls
tar -zxvf backup-purecell.lightweb.kr-9-10-2024.tar.gz
ls
cd www
ls
cd ..
ls
rm -rf access-logs etc mail public tmp www var ssl perl5 logs
ls
mv public_html/ public
cd public/
ls
vi _tail.php
ls
vi config.php
vi common.php
ls
cd data/
ls
vi dbconfig.php
mysql -u bumhan -p
mariadb -u bumhan -p
mysql -u ploi -p
mysql -u bumhan -p
mysql -u ploi -p
mysql -u bumhan -p
mysql -u ploi -p
mysql -u bumhan -p
mysql -u ploi -p
mysql -u bumhan -p
ls
cd ~
ls
cd purecell.lightweb.kr/
ls
tar -zxvf purecell_main.sql.gz
tar -z purecell_main.sql.gz
ls
rm backup-purecell.lightweb.kr-9-10-2024.tar.gz
rm purecell_main.sql.gz
ls
cd public/
ls
cd data/
ls
vi dbconfig.php
mysql -u bumhan -p -h 127.0.0.1
cd ../../
mysql -u bumhan -p -h 127.0.0.1 purec_purecell_main < purecell_main.sql
ls
ls -al
rm -rf .cpanel
rm -rf .cphorde
rm -rf .htpasswds
rm -rf .koality
rm -rf .lastlogin
rm -rf purecell_main.sql
rm -rf .spamassassin*
ls -al
rm -rf .contactemail
rm -rf .trash/
ls
ls -al
chmod 755 public/
cd public/
ls
chmod 707 data
exit
ls
cd purecell.lightweb.kr/
ls
cd p
ls
cd public/
ls
: > error_log
sudo vim _common.php
ls -l _common.php
ls ./ | grep g5_
ls ./ | grep gnu
cd ..
ls
cd public
ls
find /home/purecell-18 -name _common.php
find /home -name _common.php
ls
cd data/
ls
cd ..
ls
cd theme
ls
cd ..
ls
ls -al | grep _common.php
vim index.php
ls
cd theme
ls
cd ..
nano /home/purecell-18/purecell.lightweb.kr/public/_common.php
chmod 644 /home/purecell-18/purecell.lightweb.kr/public/_common.php
ls -al
nano /home/purecell-18/purecell.lightweb.kr/public/_common.php
sudo rm -f _common.php
rm -f _common.php
ls
cd purecell.lightweb.kr/
ls
cd public/
ls
vim recover.sh
vim recover_edit.sh
ls plugin/
ls
vim config.php
vim _common.php
ls
php -l _common.php
ls
vim index.php
vim config.php
vim index.php
vim config.php
vim index.php
vim config.php
mv _common.php _common.php.bak
ls
cd /tmp
wget https://sir.kr/data/gnuboard5_latest.tar.gz
wget https://github.com/gnuboard/gnuboard5/archive/refs/heads/master.zip
unzip master.zip
ls
cp /tmp/gnuboard5-master/_common.php /home/purecell-18/purecell.lightweb.kr/public/_common.php
cd
ls
cd purecell.lightweb.kr/public/
ls
chown purecell-18:purecell-18 /home/purecell-18/purecell.lightweb.kr/public/_common.php
chmod 644 /home/purecell-18/purecell.lightweb.kr/public/_common.php
php -l /home/purecell-18/purecell.lightweb.kr/public/_common.php
vim _common.php
sudo vim _common.php
vim _common.php
vim dbconfig.php
chmod 640 dbconfig.php
vim _common.php
cd
ls
ls /tmp/gnuboard5-master/common.php
cd ..
ls
cd
ls
ls /tmp/gnuboard5-master/common.php
cp /tmp/gnuboard5-master/common.php /home/purecell-18/purecell.lightweb.kr/public/common.php
ls
cd purecell.lightweb.kr/
ls
cd public/
ls
vim common.php
chown purecell-18:purecell-18 /home/purecell-18/purecell.lightweb.kr/public/common.php
chmod 644 /home/purecell-18/purecell.lightweb.kr/public/common.php
php -l /home/purecell-18/purecell.lightweb.kr/public/common.php
ls
cd lib
ls
cd /home/purecell-18/purecell.lightweb.kr/public
mv lib lib.old_$(date +%Y%m%d_%H%M)
cp -r /tmp/gnuboard5-master/lib /home/purecell-18/purecell.lightweb.kr/public/lib
ls
cd lib
ls
chown -R purecell-18:purecell-18 /home/purecell-18/purecell.lightweb.kr/public/lib
find lib -type d -exec chmod 755 {} \;
find lib -type f -exec chmod 644 {} \;
ls
find lib -type f -exec chmod 644 {} \;
cd ..
chown -R purecell-18:purecell-18 /home/purecell-18/purecell.lightweb.kr/public/lib
find lib -type d -exec chmod 755 {} \;
find lib -type f -exec chmod 644 {} \;
ls lib | grep -E 'common\.lib|get_data\.lib|sql\.lib'
ls
cd lib
ls
cd ..
vim config.php
ls
cd bbs
ls
vim aboutUs.php
vim /home/purecell-18/purecell.lightweb.kr/public/bbs/_common.php
vim /home/purecell-18/purecell.lightweb.kr/public/bbs/_head.php
rm -rf _common.php
rm -rf _head.php
vim aboutUs.php
cd ..
vim _common.php
ls
cd bbs
ls
vim aboutUs.php
vim Tab_Mission&Vision.php
vim /home/purecell-18/purecell.lightweb.kr/public/bbs/_common.php
rm -rf _common.php
vim 'Tab_Mission&Vision.php'
vim 'Tab_History.php
vim Tab_History.php
cd
cd purecell.lightweb.kr/public/
ls
cd /home/purecell-18/purecell.lightweb.kr/public
grep -R "include_once('./_common.php')" .
grep -R "include_once('./_head.php')" .
grep -R "include_once('./_tail.php')" .
find . -type f -name "*.php" -exec sed -i "s@include_once('./_common.php');@include_once('../_common.php');@g" {} \;
find . -type f -name "*.php" -exec sed -i "s@include_once('./_head.php');@include_once(G5_PATH.'/head.php');@g" {} \;
sed -i "s@include_once('../_common.php');@include_once('./_common.php');@" index.php
find . -type f -name "*.php" -exec sed -i "s@include_once('./_tail.php');@include_once(G5_PATH.'/_tail.php');@g" {} \;
cd eng
ls
cd ..
ls -l /home/purecell-18/purecell.lightweb.kr/public | grep tail
vim /home/purecell-18/purecell.lightweb.kr/public/_tail.php
ls
vim /home/purecell-18/purecell.lightweb.kr/public/_tail.php
rm -rf _tail.php
cp /tmp/gnuboard5-master/tail.php /home/purecell-18/purecell.lightweb.kr/public/
cp /tmp/gnuboard5-master/tail.sub.php /home/purecell-18/purecell.lightweb.kr/public/
ls
chmod 644 /home/purecell-18/purecell.lightweb.kr/public/tail.php
chmod 644 /home/purecell-18/purecell.lightweb.kr/public/tail.sub.php
ls -l /home/purecell-18/purecell.lightweb.kr/public | grep tail
cp /tmp/gnuboard5-master/bbs/newwin.inc.php /home/purecell-18/purecell.lightweb.kr/public/bbs/
cp /tmp/gnuboard5-master/bbs/board_head.php /home/purecell-18/purecell.lightweb.kr/public/bbs/
cp /tmp/gnuboard5-master/bbs/board_tail.php /home/purecell-18/purecell.lightweb.kr/public/bbs/
vim /home/purecell-18/purecell.lightweb.kr/public/lib/common.lib.php
vim tail.php
_tail.php
cp tail.php _tail.php
chmod 644 _tail.php
cp tail.php theme/Bumhan/tail.php
chmod 644 theme/Bumhan/ta
vim _tail.php
vim index.php
mkdir -p theme/Bumhan/skin/latest/Bumhan
cp skin/latest/basic/latest.skin.php theme/Bumhan/skin/latest/Bumhan/latest.skin.php
chmod 644 theme/Bumhan/skin/latest/Bumhan/latest.skin.php
sudo systemctl restart php8.3-fpm
systemctl restart php8.3-fpm
vim _tail.php
ls
vim _tail.php
chmod 644 /home/purecell-18/purecell.lightweb.kr/public/tail.php
mkdir -p theme/Bumhan/skin/latest/Bumhan
vim theme/Bumhan/skin/latest/Bumhan/latest.skin.php
chmod 644 theme/Bumhan/skin/latest/Bumhan/latest.skin.php
vim index.php
vim theme/Bumhan/index.php