tools:db:new-importer
Differences
This shows you the differences between two versions of the page.
| tools:db:new-importer [2019/01/12 17:53] โ external edit 127.0.0.1 | tools:db:new-importer [2020/04/15 19:58] (current) โ removed arvid | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Experimental importer for 0.804+ (Vivace+1) ====== | ||
| - | |||
| - | ===== Usage ===== | ||
| - | - Login as usual through the web interface | ||
| - | - Upload the code as ' | ||
| - | - Browse to http:// | ||
| - | - Wait for the page to finish loading. | ||
| - | |||
| - | Your index should now have been rebuilt. | ||
| - | |||
| - | **remove the file '' | ||
| - | |||
| - | |||
| - | <code php><? | ||
| - | require(' | ||
| - | require(INCLUDES_DIR.' | ||
| - | |||
| - | system_init(); | ||
| - | header(' | ||
| - | |||
| - | if (!user_loggedin()) exit(' | ||
| - | |||
| - | |||
| - | class s_entry_crawler extends fs_filelister { | ||
| - | |||
| - | var $_directory = CONTENT_DIR; | ||
| - | |||
| - | function __construct() { | ||
| - | $this-> | ||
| - | parent:: | ||
| - | } | ||
| - | |||
| - | function _checkFile($directory, | ||
| - | $f = " | ||
| - | if ( is_dir($f) && ctype_digit($file)) { | ||
| - | return 1; | ||
| - | } | ||
| - | |||
| - | if (fnmatch(' | ||
| - | $id=basename($file, | ||
| - | $arr=entry_parse($id, | ||
| - | |||
| - | echo " | ||
| - | $this-> | ||
| - | |||
| - | return 0; | ||
| - | } | ||
| - | } | ||
| - | |||
| - | } | ||
| - | |||
| - | |||
| - | echo " | ||
| - | echo " | ||
| - | |||
| - | echo "This may take some time, please wait...\n\n"; | ||
| - | |||
| - | new s_entry_crawler; | ||
| - | |||
| - | </ | ||
tools/db/new-importer.1547312012.txt.gz ยท Last modified: by 127.0.0.1
