Changeset 3530 for trunk/wp-admin/import/dotclear.php
- Timestamp:
- 02/14/2006 10:32:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/dotclear.php
r3517 r3530 1 1 <?php 2 /* 3 * Dotclear import plugin 4 * by Thomas Quinot - http://thomas.quinot.org/ 5 */ 6 2 7 /** 3 8 Add These Functions to make our lives easier … … 202 207 $dcdb = new wpdb(get_option('dcuser'), get_option('dcpass'), get_option('dcname'), get_option('dchost')); 203 208 set_magic_quotes_runtime(0); 204 $ prefix = get_option('tpre');205 206 return $dcdb->get_results('SELECT * FROM dc_link ORDER BY position', ARRAY_A);209 $dbprefix = get_option('dbprefix'); 210 211 return $dcdb->get_results('SELECT * FROM '.$dbprefix.'link ORDER BY position', ARRAY_A); 207 212 } 208 213 … … 350 355 $Title = $wpdb->escape(csc ($post_titre)); 351 356 $post_content = textconv ($post_content); 357 $post_excerpt = ""; 352 358 if ($post_chapo != "") { 353 359 $post_excerpt = textconv ($post_chapo); … … 604 610 function cleanup_dcimport() 605 611 { 606 delete_option(' tpre');612 delete_option('dbprefix'); 607 613 delete_option('dc_cats'); 608 614 delete_option('dcid2wpid'); … … 645 651 printf('<li><label for="dbname">%s</label> <input type="text" name="dbname" /></li>', __('Dotclear Database Name:')); 646 652 printf('<li><label for="dbhost">%s</label> <input type="text" name="dbhost" value="localhost" /></li>', __('Dotclear Database Host:')); 647 /* printf('<li><label for="dbprefix">%s</label> <input type="text" name="dbprefix" /></li>', __('Dotclear Table prefix (if any):')); */653 printf('<li><label for="dbprefix">%s</label> <input type="text" name="dbprefix" value="dc_"/></li>', __('Dotclear Table prefix:')); 648 654 printf('<li><label for="dccharset">%s</label> <input type="text" name="dccharset" value="ISO-8859-15"/></li>', __('Originating character set:')); 649 655 echo '</ul>';
Note: See TracChangeset
for help on using the changeset viewer.