$sync['status'] = 'default'; if (isset($_POST['d_u']) && isset($_POST['d_p'])) { $del_user = fetch_single($_POST['d_u']); $del_pass = fetch_single($_POST['d_p']); if ($del_user != '' && $del_pass != '') { require_once 'Zend/Service/Delicious.php'; $del = new Zend_Service_Delicious($del_user, $del_pass); try { $posts = $del->getAllPosts(); } catch (Zend_Service_Delicious_Exception $e) { $posts = false; $sync['status'] = 'error'; } if ($posts) { var_dump($posts); $result = Add::vxSync($p->User, $p->db, $posts); var_dump($result); } } else { $sync['status'] = 'default'; } } else { $sync['status'] = 'default'; } $p->vxHead($msgSiteTitle = '同步'); $p->vxBodyStart(); $p->vxTop(); $p->vxContainer('add_sync', $sync); break; } case 'add_add':