//Statische seitem $lastposts = get_pages ( 'numberposts=999' ); foreach ( $lastposts as $post ) { $t = str_replace ( array (get_option ( 'siteurl' ) . "/", get_option ( 'siteurl' ), loaddaten ( "realstaticlocalurl" ), loaddaten ( "realstaticremoteurl" ), "//" ), array ("", "", "", "", "/" ), get_page_link ( $post->ID ) ); getnpush ( loaddaten ( "localurl" ) . $t, $t, true ); } // Function to loop through dir's and getnpush the data // $basepath is the path to your WP installation on your servre // $subpath is the path relative to your $basepath that you want to getnpush // $sitepath is the path where the $basepath is accessible on the webserver function getnpush_misc( $basepath, $subpath, $sitepath ){ $ignore = array( '.', '..' ); $dh = @opendir( $basepath.$subpath ); while( false !== ( $file = readdir( $dh ) ) ){ if( !in_array( $file, $ignore ) && !preg_match('/\.php$/', $file)){ if( is_dir( "$basepath$subpath/$file" ) ){ getnpush_misc( $basepath, "$subpath/$file", $sitepath); } else { getnpush ( "$sitepath/$subpath/$file", "$subpath/$file", true ); } } } closedir( $dh ); } reallystatic_configok ( "->misc files", 2 ); getnpush_misc("http://192.168.2.2/wordpress/", "wp-content/themes", get_option ( 'siteurl' ) . "/"); getnpush_misc("http://192.168.2.2/wordpress/", "wp-content/plugins", get_option ( 'siteurl' ) . "/"); getnpush_misc("http://192.168.2.2/wordpress/", "wp-includes", get_option ( 'siteurl' ) . "/"); reallystatic_configok ( __("Finish", 'reallystatic' ), 3 ); } ?>