tools:db:new-importer
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | tools:db:new-importer [2019/01/12 17:53] – external edit 127.0.0.1 | ||
---|---|---|---|
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; | ||
+ | |||
+ | </ | ||