daily pastebin goal
48%
SHARE
TWEET

Duplicate Menu

a guest Jul 31st, 2010 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 global $wpdb;
  2.                 $blogs = $wpdb->get_results( $wpdb->prepare("SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' ORDER BY registered DESC", $wpdb->siteid), ARRAY_A );
  3.                 //print_r($blogs);
  4.                
  5.                 _e('
  6.                         <form id="login_style" method="post">
  7.                                 <input type="hidden" name="sl_update" id="sl_update" value="ls_update" />
  8.                 ');
  9.                
  10.                 foreach($blogs as $blog)
  11.                 {
  12.                         //need to store in $wpdb or $this->g('')
  13.                         //$blog['img']='';
  14.                         _e('    <p>
  15.                                                 <label for="sl_domain_'.$blog['blog_id'].'">Enter Login Image for Domain: '. $blog['domain'] . '</label><br />
  16.                                                 <input type="text" name="sl_domain_'.$blog['blog_id'].'" id="sl_domain" class="sl_text_box" value="'.$blog['img'].'" />
  17.                                         </p>
  18.                         ');
  19.                         $wpdb->insert( $wpdb->blogs, array( 'img' => $blog['img'] ), array( 'blog_id' => $blog['blog_id'] ) );
  20.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top