Plugin Directory

Changeset 613734


Ignore:
Timestamp:
10/17/2012 07:34:33 PM (13 years ago)
Author:
eriksef
Message:

restore on deinstall
feed.xml/index.html fehler

Location:
really-static/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • really-static/trunk/main.php

    r613703 r613734  
    2828 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
    2929 * @author Erik Sefkow
    30  * @version 0.31
     30 * @version 0.5
    3131 */
    3232 
     
    248248 */
    249249function arbeite($doit=false,$silent=false) {
    250     #RS_LOGA(rs_commentpageinfo(776,52));
    251250    global $arbeitsliste, $wpdb, $allrefresh,$eigenerools, $arbeitetrotzdem;
    252251    if ($doit!==true &&  $arbeitetrotzdem!== true and (! is_array ( $arbeitsliste ) or substr ( $_SERVER ['PHP_SELF'], - 9 ) == "index.php"))
    253252        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    
    263253    RS_LOG("rs_onwork".get_option ( "rs_onwork"));
    264254    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][""]);
    270260    RS_LOGA ( $arbeitsliste );
    271261    #return;
     
    279269    call_user_func_array ( $transport [loaddaten ( "rs_save" )] [0], array () );
    280270   
    281     #if($out===false){RS_LOG("Schwererfehler beim starten der funktion:".$transport[loaddaten ( "rs_save")][0]);return;}
     271
    282272    $table_name = REALLYSTATICDATABASE;
    283273 
     
    11671157
    11681158// 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); ' ) );
     1159add_action ( 'publish_to_publish', create_function ( '$array', '    RS_log ("edit POST ".$array->ID);renewrealstaic($array->ID); ' ) );
    11701160
    11711161// 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);' ) );
     1162add_action ( 'private_to_published', create_function ( '$array', '  RS_log ("publ POST ".$array);   renewrealstaic($array, 123,"postcreate");rs_refreshallcomments($array->ID);' ) );
    11731163
    11741164// 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");
     1165add_action ( 'publish_to_trash', create_function ( '$array', '  RS_log ("del POST ");renewrealstaic($array->ID, 123,"postdelete");
    11761166
    11771167        rs_refreshallcomments($array->ID);
     
    11801170       
    11811171        ' ) );
    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 
    11911173function rs_refreshallcomments($postid){
    11921174 
     
    18211803 * @param nach: womit wird es ersetzt
    18221804 */
    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);
     1805function 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 );
    18421814    return $url;
    18431815}
     
    28452817                            $text = "";
    28462818                        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
    28532820                        if (ereg ( "%postname%", $v [0] ))
    28542821                            $qq = get_option ( 'home' ) . "/" . str_Replace ( "%postname%", substr ( get_permalink ( $id ), $homeurllaenge ), $v [0] );
     
    28582825                        $templink = substr ( $qq, $homeurllaenge );
    28592826                       
    2860                         #RS_LOG("$templink = substr ( $qq");
    2861                        
    2862                        
     2827
    28632828                        if ($post_status == "trash") {
    28642829                            $url = apply_filters ( "rs-todolist-delete", $templink );
  • really-static/trunk/php/123.php

    r613703 r613734  
    3939            $_POST[datawasgeneratet]=1;
    4040
    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             */
    4941            update_option('rs_save',"local");
    5042            update_option ( 'realstaticlokalerspeicherpfad', REALLYSTATICHOME.'static/');
     
    7971        #}
    8072                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').'">';
    8274               
    8375                echo "<br><br>";
     
    121113 
    122114    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>';
    124116
    125117}elseif($_POST["pos"]=="3"){
  • really-static/trunk/sonstiges/wppluginintegration.php

    r613703 r613734  
    4646    if (ini_get ( 'allow_url_fopen' ) != 1 and ! function_exists ( "curl_init" )) {
    4747        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);
    4949       
    5050    }
     
    5959    update_option ( 'rs_firstTime', - 1*    get_option ( 'rs_firstTime') );
    6060    wp_clear_scheduled_hook ( 'reallystatic_daylyevent' );
     61    update_option("home",get_option('siteurl') );
     62   
    6163    do_action ( "rs-deinstall" );
    6264}
Note: See TracChangeset for help on using the changeset viewer.