Skip to content

A PHP CLI file to store all MyBB templates as PHP files and update to DB when changed

Notifications You must be signed in to change notification settings

manmohanjit/mybb_watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mybb_watch

A PHP CLI file to store all MyBB templates as PHP files and update to DB when changed

Settings

You may update the settings in the tpl.php file.

 new MyBB_Template([
	'host'=>'DB_HOST',
	'user'=>'DB_USERNAME',
	'pass'=>'DB_PASSWORD',
	'db'=>'DB_NAME',
], TEMPLATE_ID, DEFAULT_TEMPLATE_ID, MYBB_VERSION);

Usage

php tpl.php store

Store all the template files.

php tpl.php remove

Remove all the template files.

php tpl.php watch

Watch the stored template files for changes and updates the DB.

php tpl.php

Syncs local files onto DB.

License

This is to help other people, I didn't think I'd need a license but feel free to do whatever. Open-source licensed under the MIT license.

About

A PHP CLI file to store all MyBB templates as PHP files and update to DB when changed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages