Changeset 613734
- Timestamp:
- 10/17/2012 07:34:33 PM (13 years ago)
- Location:
- really-static/trunk
- Files:
-
- 3 edited
-
main.php (modified) (8 diffs)
-
php/123.php (modified) (3 diffs)
-
sonstiges/wppluginintegration.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
really-static/trunk/main.php
r613703 r613734 28 28 * along with this program. If not, see <http://www.gnu.org/licenses/>. 29 29 * @author Erik Sefkow 30 * @version 0. 3130 * @version 0.5 31 31 */ 32 32 … … 248 248 */ 249 249 function arbeite($doit=false,$silent=false) { 250 #RS_LOGA(rs_commentpageinfo(776,52));251 250 global $arbeitsliste, $wpdb, $allrefresh,$eigenerools, $arbeitetrotzdem; 252 251 if ($doit!==true && $arbeitetrotzdem!== true and (! is_array ( $arbeitsliste ) or substr ( $_SERVER ['PHP_SELF'], - 9 ) == "index.php")) 253 252 return; 254 255 256 257 /*ob_start();258 print_R($arbeitsliste);259 $out1 = ob_get_contents();260 ob_end_clean();261 RS_log ("arbeite: $allrefresh#".$out1);*/262 263 253 RS_LOG("rs_onwork".get_option ( "rs_onwork")); 264 254 if(get_option ( "rs_onwork")!=0)wp_die( __( 'Please wait! Another really-static instance is running!' )); 265 update_option ( "rs_onwork", "1" );266 RS_LOG("rs_onwork".get_option ( "rs_onwork"));267 268 unset($arbeitsliste[update][""]);269 unset($arbeitsliste[delete][""]);255 update_option ( "rs_onwork", "1" ); 256 RS_LOG("rs_onwork".get_option ( "rs_onwork")); 257 258 unset($arbeitsliste[update][""]); 259 unset($arbeitsliste[delete][""]); 270 260 RS_LOGA ( $arbeitsliste ); 271 261 #return; … … 279 269 call_user_func_array ( $transport [loaddaten ( "rs_save" )] [0], array () ); 280 270 281 #if($out===false){RS_LOG("Schwererfehler beim starten der funktion:".$transport[loaddaten ( "rs_save")][0]);return;} 271 282 272 $table_name = REALLYSTATICDATABASE; 283 273 … … 1167 1157 1168 1158 // Wird aufgerufen wenn ein Post editiert wird 1169 add_action ( 'publish_to_publish', create_function ( '$array', ' RS_log (false);RS_log ("edit POST ".$array->ID);renewrealstaic($array->ID); ' ) );1159 add_action ( 'publish_to_publish', create_function ( '$array', ' RS_log ("edit POST ".$array->ID);renewrealstaic($array->ID); ' ) ); 1170 1160 1171 1161 // Post wurde veroeffentlicht 1172 add_action ( 'private_to_published', create_function ( '$array', ' RS_log (false);RS_log ("publ POST ".$array); renewrealstaic($array, 123,"postcreate");rs_refreshallcomments($array->ID);' ) );1162 add_action ( 'private_to_published', create_function ( '$array', ' RS_log ("publ POST ".$array); renewrealstaic($array, 123,"postcreate");rs_refreshallcomments($array->ID);' ) ); 1173 1163 1174 1164 // Post wurde gelöscht 1175 add_action ( 'publish_to_trash', create_function ( '$array', ' RS_log (false);RS_log ("del POST ");renewrealstaic($array->ID, 123,"postdelete");1165 add_action ( 'publish_to_trash', create_function ( '$array', ' RS_log ("del POST ");renewrealstaic($array->ID, 123,"postdelete"); 1176 1166 1177 1167 rs_refreshallcomments($array->ID); … … 1180 1170 1181 1171 ' ) ); 1182 /* 1183 add_filter( 'the_comments',"lllll"); 1184 add_filter( 'comments_clauses',"lllll"); 1185 1186 function lllll($a){ 1187 RS_LOGA($a); 1188 1189 return $a; 1190 }*/ 1172 1191 1173 function rs_refreshallcomments($postid){ 1192 1174 … … 1821 1803 * @param nach: womit wird es ersetzt 1822 1804 */ 1823 function reallystatic_rewrite($url,$typ,$von="",$nach=""){ 1824 #if ( really_static_selfdetect ()) 1825 # return $url; 1826 1827 $url = apply_filters ( "rs-pre-urlrewriter",$url,$typ,$von,$nach); 1828 1829 if($typ==1){ 1830 #RS_LOG("$url"); 1831 #if(really_static_demodetect()) 1832 $url=really_wp_url_make_to_static($url); 1833 #RS_LOG("$url"); 1834 1835 if($nach!="")$url=str_replace($von,$nach,$url); 1836 #$url = preg_replace ( '#feed$#i','rss2.xml',$url); 1837 1838 }elseif($typ==2){ 1839 # $url = preg_replace ( '#rss2\.xml$#i','feed',$url); 1840 } 1841 $url = apply_filters ( "rs-post-urlrewriter",$url,$typ,$von,$nach); 1805 function reallystatic_rewrite($url, $typ, $von = "", $nach = "") { 1806 $url = apply_filters ( "rs-pre-urlrewriter", $url, $typ, $von, $nach ); 1807 if ($typ == 1) { 1808 if ($nach != "") 1809 $url = str_replace ( $von, $nach, $url ); 1810 $url = really_wp_url_make_to_static ( $url ); 1811 } elseif ($typ == 2) { 1812 } 1813 $url = apply_filters ( "rs-post-urlrewriter", $url, $typ, $von, $nach ); 1842 1814 return $url; 1843 1815 } … … 2845 2817 $text = ""; 2846 2818 global $seitenlinktransport; 2847 $seitenlinktransport = $text; 2848 #RS_LOG(" $seitenlinktransport !!!!!"); 2849 2850 #RS_LOG(" $seitenlinktransport !!!!!".get_permalink ( $id )); 2851 #RS_LOG(" $seitenlinktransport !!!!!".get_permalink ( $id )); 2852 2819 2853 2820 if (ereg ( "%postname%", $v [0] )) 2854 2821 $qq = get_option ( 'home' ) . "/" . str_Replace ( "%postname%", substr ( get_permalink ( $id ), $homeurllaenge ), $v [0] ); … … 2858 2825 $templink = substr ( $qq, $homeurllaenge ); 2859 2826 2860 #RS_LOG("$templink = substr ( $qq"); 2861 2862 2827 2863 2828 if ($post_status == "trash") { 2864 2829 $url = apply_filters ( "rs-todolist-delete", $templink ); -
really-static/trunk/php/123.php
r613703 r613734 39 39 $_POST[datawasgeneratet]=1; 40 40 41 /* echo "realstaticlocalurl". get_option('home')."/" . "<hr>";42 echo "realstaticremoteurl".REALLYSTATICURLHOME."static/" . "<hr>";43 44 echo "siteurl". get_option('siteurl')."/" . "<hr>";45 echo "rs_save:". get_option('rs_save') . "<hr>";46 echo "realstaticlocalurl". get_option('home')."/" . "<hr>";47 echo "realstaticlocalurl". get_option('home')."/" . "<hr>";48 */49 41 update_option('rs_save',"local"); 50 42 update_option ( 'realstaticlokalerspeicherpfad', REALLYSTATICHOME.'static/'); … … 79 71 #} 80 72 echo "<br><h2>After this, please say where visitors can view this files:</h2>"; 81 echo '<input name=" speicherpfad" type="text" size="90" value="'.loaddaten ( "realstaticremoteurl" , 'reallystatic').'">';73 echo '<input name="realstaticremoteurl" type="text" size="90" value="'.loaddaten ( "realstaticremoteurl" , 'reallystatic').'">'; 82 74 83 75 echo "<br><br>"; … … 121 113 122 114 if($ison==3)echo '<form method="post"><input type="hidden" name="datawasgeneratet" value="'.$_POST[datawasgeneratet].'" /><input type="hidden" name="pos" value="3" /><input name="Submit1" type="submit" value="'.__('Next >>', 'reallystatic').'" /></form>'; 123 else echo '<form method="post"><input type="hidden" name="datawasgeneratet" value="'.$_POST[datawasgeneratet].'" /><input type="hidden" name="pos" value=" 2" /><input name="Submit1" type="submit" value="'.__('Refresh', 'reallystatic').'" /></form>';115 else echo '<form method="post"><input type="hidden" name="datawasgeneratet" value="'.$_POST[datawasgeneratet].'" /><input type="hidden" name="pos" value="1" /><input name="Submit1" type="submit" value="'.__('Back <<', 'reallystatic').'" /></form><form method="post"><input type="hidden" name="datawasgeneratet" value="'.$_POST[datawasgeneratet].'" /><input type="hidden" name="pos" value="2" /><input name="Submit1" type="submit" value="'.__('Refresh', 'reallystatic').'" /></form>'; 124 116 125 117 }elseif($_POST["pos"]=="3"){ -
really-static/trunk/sonstiges/wppluginintegration.php
r613703 r613734 46 46 if (ini_get ( 'allow_url_fopen' ) != 1 and ! function_exists ( "curl_init" )) { 47 47 deactivate_plugins ( $_GET ['plugin'] ); 48 rs_addmessage(0, __("Funktion allow_url_fopen is disabled and curl_init is also not enabled on your server!<br> For more Informations check this <a href='http://sorben.org/really-static/fehler-allow_url_fopen.html'>manualpage</a><br> Really-static is automaticly deactivated", 'reallystatic'),3);48 rs_addmessage(0, __("Funktion allow_url_fopen is disabled and curl_init is also not enabled on your server!<br> For more Informations check this <a href='http://sorben.org/really-static/fehler-allow_url_fopen.html'>manualpage</a><br> Really-static is automaticly deactivated", 'reallystatic'),3); 49 49 50 50 } … … 59 59 update_option ( 'rs_firstTime', - 1* get_option ( 'rs_firstTime') ); 60 60 wp_clear_scheduled_hook ( 'reallystatic_daylyevent' ); 61 update_option("home",get_option('siteurl') ); 62 61 63 do_action ( "rs-deinstall" ); 62 64 }
Note: See TracChangeset
for help on using the changeset viewer.