// save the bugger $persona->save(); // echo "<pre>" . print_r($persona, true) . "</pre>"; trigger_scraper($user, $persona); $persona = NULL; $c = NULL; } // flush cache if required switch ($myService) { case 'Flickr': Cache::flushExtCache($user->user_id, "flickr_id"); break; } } } $serviceCount = PersonaService::count_persona_services(); $enabledServiceCount = PersonaService::count_persona_services_enabled(); $personaCount = Persona::count_user_personas($user->user_id); ?> <h1>External Accounts - WORK IN PROGRESS</h1> <form enctype="multipart/form-data" action="edit_profile.php?type=external" method="post"> <input type="hidden" name="profile_type" value="external" /> <fieldset style="margin: 5px 30px 20px 30px; width: auto;"> <div id="available-info"> <?php $services =& PersonaService::load_persona_services(); echo '<h2>Available Services (' . $enabledServiceCount . ')</h2>'; for ($i = 0; $i < $serviceCount; $i++) { $service = $services[$i]; if ($service->enabled) {