Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $wpdb;
- $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 );
- //print_r($blogs);
- _e('
- <form id="login_style" method="post">
- <input type="hidden" name="sl_update" id="sl_update" value="ls_update" />
- ');
- foreach($blogs as $blog)
- {
- //need to store in $wpdb or $this->g('')
- //$blog['img']='';
- _e(' <p>
- <label for="sl_domain_'.$blog['blog_id'].'">Enter Login Image for Domain: '. $blog['domain'] . '</label><br />
- <input type="text" name="sl_domain_'.$blog['blog_id'].'" id="sl_domain" class="sl_text_box" value="'.$blog['img'].'" />
- </p>
- ');
- $wpdb->insert( $wpdb->blogs, array( 'img' => $blog['img'] ), array( 'blog_id' => $blog['blog_id'] ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement