. */ # Known/outstanding issues: # [UNCONFIRMED ISSUE] Plugin seems to keep pinging when importing an XML/WXR file even if pinging is disabled # Plugin does not seem to report any errors if it cannot write to the log file (see E2 blog for example) function SUP_add_options_page(){ if(function_exists("add_options_page")) add_options_page("UP Smart Update Pinger", "UP Smart Update Pinger", 5, basename(__FILE__), "SUP_show_options_page"); } function SUP_show_options_page(){ global $logfile; $ping = get_option("SUP_ping"); $pinglog = get_option("SUP_pinglog"); $uris = get_option("ping_sites"); $forcedpings = false; $SUP_output_log=''; $pingservicesnow = "Ping Services Now!"; $deletelogfile = "Delete Log File"; if(isset($_POST["ping"]) && $_POST["ping"] == $pingservicesnow){ $forcedpings = true; SUP_log(SUP_ping_services($forcedpings).strftime("%D %T")."\tForced pinging services (Homepage)\n\t─────\n"); }elseif(isset($_POST["submit"])){ $uris = $_POST["uris"]; $ping = 0; if($_POST["ping"] == 1) $ping = 1; $pinglog = 0; if($_POST["pinglog"] == 1) $pinglog = 1; update_option("SUP_ping", $ping); update_option("SUP_pinglog", $pinglog); update_option("ping_sites", $uris); echo '

Options saved.

'; }elseif(isset($_POST["delete"]) && $_POST["delete"] == $deletelogfile){ $fh = @fopen($logfile, "w"); if(false === @fwrite($fh, strftime("%D %T")."\tLog file deleted\n\t─────\n")){ update_option("SUP_error", 1); }else{ update_option("SUP_error", 0); } @fclose($fh); } $checked1 = ''; if($ping == 1) $checked1 = 'checked="checked"'; $checked2 = ''; if($pinglog == 1) $checked2 = 'checked="checked"'; echo '

Ultimate Plugins Smart Update Pinger

Click here for installation instructions

Click here for usage instructions

Click here for updated versions

Click here for comments and suggestions

URIs to Ping

The following services will automatically be pinged/notified when you publish normal or future timestamped posts. Not when you edit previously published posts, as WordPress does by default.

This plugin also fixes an issue with the default extended ping programming in Wordpress and pre-2.1 versions of Smart Update Pinger (it now includes the url of the new post).

NB: this list is synchronized with the original update services list.

Separate multiple service URIs with line breaks:

Ping log

These are the last 100 actions performed by the plugin. In reverse chronological order for easier reading (latest ping first).

'; SUP_get_last_log_entries(500); echo '

'; } # telling WordPress to ping if the post is new, but not if it's just been edited function SUP_ping_if_new($id){ global $wpdb, $post_title; $SUP_output_log="\t─────\n"; $SUP_ping_result=''; $forcedpings = false; if(get_option('SUP_ping') == 1 && trim(get_option('ping_sites')) != ""){ # fetches data directly from database; the function "get_post" is cached, and using it here will get the post as is was before the last save $row = mysql_fetch_array(mysql_query( // "SELECT post_date,post_modified,post_title,guid FROM $wpdb->posts WHERE id=$id")); "SELECT post_date,post_modified,post_title FROM $wpdb->posts WHERE id=$id")); # if time when created equals time when modified it is a new post, otherwise the author has edited/modified it if(!$row["post_title"]){ $SUP_output_log=strftime("%D %T")."\tNOT Pinging services (ERROR: YOU HAVE FORGOTTEN TO ENTER A POST TITLE) ...\n".$SUP_output_log; }else{ if($row["post_date"] == $row["post_modified"]){ $SUP_output_log=strftime("%D %T")."\tPinging services (New normal post: “".$row["post_title"]."”) ...\n".$SUP_output_log; $SUP_output_log=SUP_ping_services($forcedpings,get_permalink($id)).$SUP_output_log; # Try commenting the line above, and uncommenting this line below if pinging seems to be out of order. Please notify the author if it helps! # generic_ping(); }else{ // Post has been edited or it's a future post // If we have a post title it means that we are in the normal WP loop and therefore it was an edit (not a future post) if($post_title){ $SUP_output_log=strftime("%D %T")."\tNOT Pinging services (Existing post was edited: “".$row["post_title"]."”) ...\n".$SUP_output_log; }else{ $SUP_output_log=strftime("%D %T")."\tPinging services (New timestamped post: “".$row["post_title"]."”) ...\n".$SUP_output_log; $SUP_output_log=SUP_ping_services($forcedpings,get_permalink($id)).$SUP_output_log; # Try commenting the line above, and uncommenting this line below if pinging seems to be out of order. Please notify the author if it helps! # generic_ping(); } } } }else{ if (trim(get_option('ping_sites')) != ""){ $SUP_output_log=strftime("%D %T")."\tNOT Pinging services (WARNING: DISABLED BY ADMINISTRATOR)\n".$SUP_output_log; }else{ $SUP_output_log=strftime("%D %T")."\tNOT Pinging services (WARNING: EMPTY PING SERVICES LIST)\n".$SUP_output_log; } } SUP_log($SUP_output_log); } # More or less a copy of WP's "generic_ping" from functions.php, but uses another function to send the actual XML-RPC messages. function SUP_ping_services($forcedpings,$SUP_guid = ''){ $SUP_output_log=''; #$services = get_settings('ping_sites'); #UP - 17.07.07 - get_option is newer/better then get_settings $services = get_option('ping_sites'); $services = preg_replace("|(\s)+|", '$1', $services); // Kill dupe lines $services = trim($services); if ( '' != $services ) { $services = explode("\n", $services); foreach ($services as $service) $SUP_output_log=SUP_send_xmlrpc($forcedpings,$SUP_guid,$service).$SUP_output_log; } return $SUP_output_log; } # A slightly modified version of the WordPress built-in ping functionality ("weblog_ping" in functions.php). # Original version: #function weblog_ping($server = '', $path = '') { #global $wp_version; #include_once(ABSPATH . WPINC . '/class-IXR.php'); #// using a timeout of 3 seconds should be enough to cover slow servers #$client = new IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); #$client->timeout = 3; #$client->useragent .= ' -- WordPress/'.$wp_version; #// when set to true, this outputs debug messages by itself #$client->debug = false; #$home = trailingslashit( get_option('home') ); #if ( !$client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping #$client->query('weblogUpdates.ping', get_option('blogname'), $home); #} # This one uses correct extendedPing format (WP does not), and logs response from service. function SUP_send_xmlrpc($forcedpings,$SUP_guid = '',$server = '', $path = ''){ global $wp_version; $SUP_output_log=''; include_once (ABSPATH . WPINC . '/class-IXR.php'); // using a timeout of 5 seconds should be enough to cover slow servers (changed from 3 to 5) $client = new IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); $client->timeout = 5; $client->useragent .= ' -- WordPress/'.$wp_version; // when set to true, this outputs debug messages by itself $client->debug = false; $home = trailingslashit( get_option('home') ); # The extendedPing format should be "blog name", "blog url", "check url" (the new URL), and "feed url". # Related Website(s) # http://www.weblogs.com/api.html # An example: # Someblog - Title # http://spaces.msn.com/someblog - Home URL # http://spaces.msn.com/someblog/PersonalSpace.aspx?something - Check/New URL # http://spaces.msn.com/someblog/feed.rss - Feed # Changed the following line therefore: # if($client->query('weblogUpdates.extendedPing', get_settings('blogname'), $home, get_bloginfo('rss2_url'), get_bloginfo('rss2_url'))) if ($forcedpings){ # If this is a forced ping it's better to use a regular ping for the homepage without an update URL (safer) if($client->query('weblogUpdates.ping', get_option('blogname'), $home)){ $SUP_output_log=strftime("%D %T")."\t► [Regular Ping] ".$server." was successfully pinged\n".$SUP_output_log; if (get_option('SUP_pinglog') == 1){ $SUP_output_log=strftime("%D %T")."\t►► Blogname: '".get_option('blogname')."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Homepage: '".$home."'\n".$SUP_output_log; } }else{ $SUP_output_log=strftime("%D %T")."\t► ".$server." could not be pinged. Error message: “".$client->error->message."”\n".$SUP_output_log; } }else{ if($client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, $SUP_guid, get_bloginfo('rss2_url'))){ $SUP_output_log=strftime("%D %T")."\t► [Extended Ping] ".$server." was successfully pinged\n".$SUP_output_log; if (get_option('SUP_pinglog') == 1){ $SUP_output_log=strftime("%D %T")."\t►► Blogname: '".get_option('blogname')."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Homepage: '".$home."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Updated : '".$SUP_guid."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► RSS URL : '".get_bloginfo('rss2_url')."'\n".$SUP_output_log; } }else{ # pinging was unsuccessful, trying regular ping format if($client->query('weblogUpdates.ping', get_option('blogname'), $home)){ $SUP_output_log=strftime("%D %T")."\t► [Regular Ping] ".$server." was successfully pinged\n".$SUP_output_log; if (get_option('SUP_pinglog') == 1){ $SUP_output_log=strftime("%D %T")."\t►► Blogname: '".get_option('blogname')."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Homepage: '".$home."'\n".$SUP_output_log; } }else{ $SUP_output_log=strftime("%D %T")."\t► ".$server." could not be pinged. Error message: “".$client->error->message."”\n".$SUP_output_log; } } } return $SUP_output_log; } $post_title = ""; # Receives the title of the post from a filter below function SUP_post_title($title){ global $post_title; $post_title = $title; return $title; } # Log $logfile = ABSPATH . 'wp-content/plugins/ultimate-plugins-smart-update-pinger/ultimate-plugins-smart-update-pinger.log'; function SUP_log($SUP_log_output){ global $logfile; $logerror = 0; $fh = @fopen($logfile, "a"); if(false === @fwrite($fh, $SUP_log_output)){ update_option("SUP_error", 1); }else{ update_option("SUP_error", 0); } @fclose($fh); } function SUP_get_last_log_entries($num){ global $logfile; $lines = @file($logfile); if(get_option("SUP_error") == 1){ $fh = @fopen($logfile, "a"); if(false === @fwrite($fh, "")){ echo "Error writing log file (".$logfile."). Most likely your logfile (".$logfile.") is write-protected and no log data can be saved (change the rights of this file to 777), or alternatively this could mean that you have manually removed the log file, or that you have changed the directory or file name of the plugin (they both should be 'ultimate-plugins-smart-update-pinger')"; }else{ // Original: $lines = array_slice($lines, count($lines) - $num); // Modified to show in reverse order (easier for reading) $lines = array_reverse(array_slice($lines, count($lines) - $num)); $msg = ""; foreach($lines as $line){ $msg.=trim($line)."
"; } echo $msg; } @fclose($fh); }else{ if($lines === false){ echo "Error reading log file (".$logfile."). Most likely you have manually removed the log file, or alternatively this could mean that the logfile (".$logfile.") is read-protected (change the rights of this file to 777), or that you have changed the directory or file name of the plugin (they both should be 'ultimate-plugins-smart-update-pinger')"; }else{ // Original: $lines = array_slice($lines, count($lines) - $num); // Modified to show in reverse order (easier for reading) $lines = array_reverse(array_slice($lines, count($lines) - $num)); $msg = ""; foreach($lines as $line){ $msg.=trim($line)."
"; } echo $msg; } } } # adds a filter to receive the title of the post before publishing add_filter("title_save_pre", "SUP_post_title"); # shows the options in the administration panel add_action("admin_menu", "SUP_add_options_page"); # calls SUP_ping whenever a post is published add_action("publish_post", "SUP_ping_if_new"); # calls SUP_ping_draft when changing the status from private/draft to published # add_action("private_to_published', 'SUP_ping_draft'); # removes the "WordPress official" pinging hook remove_action("publish_post", "generic_ping"); # activates pinging if setting doesn't exist in database yet (before the user has changed the settings the first time) if(get_option("SUP_ping") === false){update_option("SUP_ping", 1);} if(get_option("SUP_pinglog") === false){update_option("SUP_pinglog", 1);} if(get_option("SUP_error") === false){update_option("SUP_error", 0);} ?> Los Tres Aspectos de Realizar Metas – Desarollo personal auténtico

Desarollo personal auténtico

Los Tres Aspectos de Realizar Metas

Realizar metas y disfrutar cada paso

La alegría de vivir incluye la alegría de existencial y la fuerza creativa:
Por un lado la capacidad de conectarse con la alegría de la pura existencia y por el otro la capacidad de transformar nuestros anhelos, deseos y metas en resultados. El que puede realizar sus metas, pero no logra conectarse con la alegría básica de la existencia sólo tiene la mitad de un todo. Quien puede fluir en cada momento y disfrutar del aquí y ahora pero le cuesta mucho realizar sus metas tiene la otra mitad.

Actuar de acuerdo a los “tres aspectos de realizar sus metas” con sus cualidades específicas, nos permite realizar nuestras metas y disfrutar cada paso en el camino. Al disfrutar en cada momento del proceso de realizar la meta en su cualidad específica juntamos la alegría existencial con la fuerza creativa.

1. La situación inicial

Aquí se trata de estar en paz con la situación inicial y reconocerla tal como es. Se trata de aceptarla como un desafío que está dado por la misma situación.
De la situación inicial vamos a partir. Cada paso que vamos a dar comienza con que tenemos que estar bien parados en la situación inicial, para poder elevar un pie y dar el primer paso. Cada paso empieza ahí donde estamos parados ahora. Cuanto más relajados y presentes podemos estar en la posición inicial más chances tenemos de darnos cuenta del potencial de cambio que hay en ella. En realidad estamos siempre en una situación inicial con respecto a la siguiente y no necesitamos en ningún momento del proceso maljuzgar el hecho de aún no haber llegado a la situación deseada, la meta.

Si aceptamos nuestros sentimientos con respecto a la situación inicial o las situaciones iniciales contiguas, eso nos ayuda a relajarnos en ellas, tomarlas como son y nos permite tener acceso a importantes recursos guardados junto con nuestros sentimientos para actuar bien en ellas.

2. La meta

Con respecto a la meta dos cosas son importantes: la claridad en la meta y la disposición de un 100% de recibir el resultado deseado.

Claridad de la meta: ¿cuál es el contenido de la meta, cuál su forma?
El contenido de la meta es el objetivo importante que nos motiva, la calidad que vamos a recibir. La forma de la meta es la forma concreta y mensurable que nos hemos puesto como marca en el camino.

Un ejemplo: el contenido de la meta es hacer conocer AFI, y una forma concreta de lograrlo sería obtener 16 participantes para un taller. Si no podemos diferenciar entre contenido y forma puede suceder que declaramos el proyecto como fracasado porque no logramos la forma de la meta.

Puede pasar que se nos pase por totalmente desapercibido, que hemos sido mucho más útiles al contenido de la meta que lo habíamos imaginado.

También es importante tener en cuenta qué tan importante es la meta declarada con respecto a otras metas nuestras. Si nos proponemos realizar nuestras visiones, nuestros deseos, y nuestras metas más esenciales, también pueden en ese movimiento nutrirse deseos menos importantes de esa energía general de expansión. Lo mismo no puede suceder a viceversa. Si perseguimos una meta con tenacidad pero no tenemos en cuenta un deseo importante de nuestro corazón entonces dentro de poco nos faltará la energía para realizar esa meta.

100% Disposición de recibir el resultado:
Si solamente tenemos un 80% de disposición de recibir el resultado y un 20% (inconscientemente) está en contra o no está convencido de que lo podemos lograr, entonces esos 20% pueden boicotear el éxito.

3. Los pasos intermedios

Aquí es importante desarrollar: creatividad, disposición de entrega a la meta, estructura, flexibilidad, entusiasmo, liviandad y tolerancia a la frustración.

Creatividad:
Nos imaginamos como puede ser el camino a la meta y planificamos pasos intermedios. Nos basamos en experiencias pasadas y también probamos cosas nuevas.

Disposición de entrega a la meta:
Hechos hablan más que palabras. Si aparte de nuestros pensamientos y palabras no ponemos energía y actos que se dirigen hacia la meta entonces eso también tiene un significado. El significado es que nuestra meta o nosotros mismos no somos lo suficientemente importante para nosotros como para entregarnos más.

Estructura:
Sin estructura los pasos intermedios no basarían uno en el otro. Por esa falta de conexión interna se dispersarían sin efecto. Cuanto menos estructura hay, menos marcas tenemos en el camino y menos retro-alimento para darnos cuenta si nuestro plan es lo suficientemente realista o si queremos cambiar nuestro plan. Además tenemos menos referencias para aprender de nuestros errores. Si queremos disfrutar el dar los pasos estructuradamente, necesitamos una estructura que funcione sin maljuzgarnos.

Flexibilidad:
Si nos movemos en dirección hacia una meta tenemos un prejuicio acerca de cómo va ser el camino hacia ella.
La naturaleza de nuestros prejuicios es que no concuerdan totalmente con la realidad. Parte de la aventura es adaptar el plan a lo largo del camino acorde a los desvíos y los errores hechos. Es necesario ser flexible, cultivar una postura amorosa y clara con respecto a nuestros errores.

Entusiasmo:
Si aceptamos las condiciones dadas de la situación inicial como desafíos y estamos convencidos de nuestra meta, de nuestro plan y de los pasos intermedios, entonces sentimos entusiasmo. Si en el camino perdemos el entusiasmo podemos despertarlo de vuelta reforzando dichos aspectos.

A veces falta entusiasmo no porque el plan en sí no sea armónico, sino porque cosas importantes como p.e. tranquilidad, relajamiento, contactos sociales, no fueron considerados lo suficiente. Un buen plan lleva a un estilo de vida y de trabajo cotidiano, que va con nosotros y que apoya nuestro desarrollo auténtico. Cuánto más entusiasmo sentimos más motivados y con más empuje daremos los pasos intermedios.

Liviandad:
Con liviandad no nos referimos a la falta de esfuerzo y de trabajo. Si trabajamos con entusiasmo y nos esforzamos también allí hay una cualidad de liviandad. Liviandad aquí significa la ausencia de una postura de lucha a la manera de: “Tengo que trabajar duro y tengo que hacerme valer solo“. Liviandad incluye la capacidad de delegar, la disposición de recibir apoyo o de recibir la meta en forma de regalo. También contiene la disposición de experimentar milagros.

Tolerancia a la frustración:
La frustración forma parte de la manera humana de realizar cosas. Por lo general (tengo entendido) no tenemos los poderes de los dioses para materializar nuestras metas en forma espontánea, directa y sin equivocaciones. Si como humanos realizamos cosas entonces por lo general empezamos a construir puentes entre la idea y la realidad, entre el plan y su realización. La frustración de allí es parte del material a digerir. Nos ayuda a acercar cada vez más la idea a la realización. Poca tolerancia a la frustración nos hace abandonar antes de tiempo el proyecto o de no animarnos más a comenzar un proyecto nuevo. Una gran tolerancia a la frustración y nuestra capacidad de integrarla nos permite aprender de nuestros errores y de acercar cada vez más y de nuevo nuestras ideas a la realidad.

Si nos proponemos alcanzar una meta nos inscribimos a un curso en la vida del cual no conocemos exactamente el curriculum de su enseñanza. A veces, cuando estamos en desacuerdo y enojados con las lecciones que nos da la vida puede tener sentido preguntarnos: »¿Me propuse inconscientemente una meta y esas son las lecciones en el camino a ella?«

Conocer los tres aspectos de la realización de metas en su peculiaridad nos permite atar cabos; pero aprovechar fructíferamente en toda su dimensión esta información recién lo hace posible si fortalecemos esos tres aspectos con los ejercicios correspondientes. Sobre todo el ejercicio de llevar la disposición de recibir el resultado a un 100% vale oro.


Posted

in

,

by

Tags:

Malcare WordPress Security