Options saved.

'; } $checked = ''; if($ping == 1) $checked = 'checked="checked"'; echo '

URIs to Ping

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

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

Separate multiple service URIs with line breaks:

Ping log

These are the lastest actions performed by the plugin.

'.SUP_get_last_log_entries(20).'

'; } # 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; if(get_option('SUP_ping') == 1 and 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 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_date"] == $row["post_modified"]) { if($post_title) SUP_log("Pinging services (new post: “".$post_title."”) ..."); else SUP_log("Pinging services (new post) ..."); SUP_ping_services(); # 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($post_title) SUP_log("NOT pinging services (“".$post_title."” was edited)"); else SUP_log("NOT pinging services (a post was edited)"); } } else SUP_log("NOT pinging services (disabled by administrator)"); } # 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() { $services = get_settings('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_send_xmlrpc($service); } } # A slightly modified version of the WordPress built-in ping functionality ("weblog_ping" in functions.php). # This one uses correct extendedPing format (WP does not), and logs response from service. function SUP_send_xmlrpc($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') ); # the extendedPing format should be "blog name", "blog url", "check url" (whatever that is), and "feed url", # but it would seem as if the standard has been mixed up. it's therefore best to repeat the feed url. if($client->query('weblogUpdates.extendedPing', get_settings('blogname'), $home, get_bloginfo('rss2_url'), get_bloginfo('rss2_url'))) { SUP_log("- ".$server." was successfully pinged (extended format)"); } else { # pinging was unsuccessful, trying regular ping format if($client->query('weblogUpdates.ping', get_settings('blogname'), $home)) { SUP_log("- ".$server." was successfully pinged"); } else { SUP_log("- ".$server." could not be pinged. Error message: “".$client->error->message."”"); } } } $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 stuff $logfile = ABSPATH."wp-content/smart-update-pinger.log"; # for debugging function SUP_log($line) { global $logfile; $fh = @fopen($logfile, "a"); @fwrite($fh, strftime("%D %T")."\t$line\n"); @fclose($fh); } function SUP_get_last_log_entries($num) { global $logfile; $lines = @file($logfile); if($lines === false) return "Error reading log file (".$logfile."). This could mean that the wp-content directory is write-protected and no log data can be saved, that you have manually removed the log file, or that you have recently upgraded the plugin."; else { $lines = array_slice($lines, count($lines) - $num); $msg = ""; foreach($lines as $line) $msg .= trim($line)."
"; return $msg; } } # ----- # adds a filter to receive the title of the post before publishing add_filter("title_save_pre", "SUP_post_title"); # adds some hooks # 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); } ?> ;×) » Street

Archives

Articles pour le mot-clé ‘Street’

T’as vu tous ces films inspirants ?

Ah, je m’ennuyais de méconnaître de moins en moins de films communément classés dans les bons films !   Voici le top 100 des films les « plus inspirants » (most inspiring) de ce célèbre American Film Institute établi en 2007.   Je dis célèbre car j’ai écumé le top 100 des meilleures comédies (cherche ici!) :   Voilà de quoi meubler mes longues nuits d’insomnie. Un X comme d’hab quand j’ai vu (ou revu) :

1x	It's a Wonderful Life	1946
2x	To Kill a Mockingbird	1962
3x	Schindler's List	1993
4x	Rocky	1976
5x	Mr. Smith Goes to Washington	1939
6x	E.T. the Extra-Terrestrial	1982
7x	The Grapes of Wrath	1940
8x	Breaking Away	1979
9x	Miracle on 34th Street	1947
10x	Saving Private Ryan	1998
11x	The Best Years of Our Lives	1946
12x	Apollo 13	1995
13x	Hoosiers	1986
14x	The Bridge on the River Kwai	1957
15x	The Miracle Worker	1962
16x	Norma Rae	1979
17x	One Flew Over the Cuckoo's Nest	1975
18	The Diary of Anne Frank	1959
19x	The Right Stuff	1983
20x	Philadelphia	1993
21x	In the Heat of the Night	1967
22x	The Pride of the Yankees	1942
23x	The Shawshank Redemption	1994
24x	National Velvet	1944
25x	Sullivan's Travels	1941
26x	The Wizard of Oz	1939
27x	High Noon	1952
28x	Field of Dreams	1989
29x	Gandhi	1982
30x	Lawrence of Arabia	1962
31x	Glory	1989
32x	Casablanca	1942
33x	City Lights	1931
34x	All the President's Men	1976
35x	Guess Who's Coming to Dinner	1967
36	On the Waterfront	1954
37x	Forrest Gump	1994
38x	Pinocchio	1940
39x	Star Wars	1977
40	Mrs. Miniver	1942
41x	The Sound of Music	1965
42x	12 Angry Men	1957
43x	Gone With the Wind	1939
44x	Spartacus	1960
45	On Golden Pond	1981
46	Lilies of the Field	1963
47x	2001: A Space Odyssey	1968
48	The African Queen	1951
49x	Meet John Doe	1941
50x	Seabiscuit	2003
51x	The Color Purple	1985
52x	Dead Poet's Society	1989
53	Shane	1953
54x	Rudy	1993
55	The Defiant Ones	1958
56x	Ben-Hur	1959
57	Sergeant York	1941
58x	Close Encounters of the Third Kind	1977
59x	Dances With Wolves	1990
60	The Killing Fields	1984
61	Sounder	1972
62x	Braveheart	1995
63x	Rain Man	1988
64	The Black Stallion	1979
65	A Raisin in the Sun	1961
66	Silkwood	1983
67x	The Day the Earth Stood Still	1951
68	An Officer and a Gentleman	1982
69	The Spirit of St. Louis	1957
70	Coal Miner's Daughter	1980
71x	Cool Hand Luke	1967
72	Dark Victory	1939
73x	Erin Brockovich	2000
74	Gunga Din	1939
75x	The Verdict	1982
76x	Birdman of Alcatraz	1962
77x	Driving Miss Daisy	1989
78x	Thelma & Louise	1991
79x	The Ten Commandments	1956
80	Babe	1995
81	Boys Town	1938
82	Fiddler on the Roof	1971
83	Mr. Deeds Goes to Town	1936
84	Serpico	1973
85	What's Love Got to Do With It	1993
86	Stand and Deliver	1988
87	Working Girl	1988
88	Yankee Doodle Dandy	1942
89	Harold and Maude	1972
90x	Hotel Rwanda	2004
91	The Paper Chase	1973
92x	Fame	1980
93x	A Beautiful Mind	2001
94	Captains Courageous	1937
95	Places in the Heart	1984
96x	Searching for Bobby Fischer	1993
97	Madame Curie	1943
98x	The Karate Kid	1984
99x	Ray	2004
100x	Chariots of Fire

Me voilà à 45(le 20/7/12) -> 67(au 28/10/12)/100, pas fameux ! Je m’en vais de ce pas atteindre la moyenne mathématique…

[EDIT 2/8/12 : 13x Hoosiers 1986 -> size does count … et les 19x The Right Stuff, et 77x Driving Miss Daisy of course ! 

EDIT 4/8/12 : 16x Norma Rae 1979 -> mignonne la Sally ! 34x All the President’s Men 1976 -> déjà vu! 

EDIT 5/8/12 : 9x Miracle on 34th Street 1947 -> excellent, tous les avocats devraient s’en inspirer 😉

EDIT 6/8/12 11x The Best Years of Our Lives 1946 -> à la guerre comme à la guerre, très beaux portraits

EDIT  11/8/12 49x Meet John Doe 1941 –> excellent !

EDIT 24/8/12 50x Seabiscuit 2003 -> pour les joueurs du PMU seulement

EDIT 25/08/12 8x Breaking Away 1979 -> mouimouimoui..

EDIT 26/8/12 99x Ray 2004 -> le chanceux, il ne l’a pas vu lui

EDIT 2/9/12 96x Searching for Bobby Fischer 1993 -> trop hollywoodien, film pour les masses qui ne jouent pas aux échecs, bof bof !

EDIT 10/9/12 54x Rudy 1993 -> pareil, ça m’inquiète un film comme ça au top 54/100, ça sent le remplissage ??

EDIT 11/9/12 15x The Miracle Worker 1962 -> excellent film ! Je pensais que le rôle du père était un peu too much genre manichéen je suis con paske c’est comme çô… Mais en fait ça doit dépeindre la réalité d’une époque et d’une classe sociale oubliées et c’est tant mieux comme ça !

EDIT 21/9 76x Birdman of Alcatraz 1962 : déjà vu of course !

EDIT 22/9/12 28x Field of Dreams 1989 : subtil mélange de Signs et Scary Movie 3 😉

EDIT 3/10/12 22x The Pride of the Yankees 1942 -> Cooper peu crédible en joueur de Baseball, scénario condescendant, femme à la cuisine, homme chef à la maison, bref !

EDIT  5/10/12 21x In the Heat of the Night 1967 -> excellent Sydney Poitier !

EDIT 7/10 24x National Velvet 1944 -> j’avoue avoir craqué avant la fin ! Ca n’arrive pas souvent mais on va dire que je l’ai vu donc x

EDIT 19/10 31x Glory 1989

EDIT 26/10 35x Guess Who’s Coming to Dinner 1967

EDIT 28/10 41x The Sound of Music 1965

]