$resultset = $dav_resource->GetPropStat($proplist, $reply);
                     array_unshift($resultset, new XMLElement('href', ConstructURL($object->dav_name)));
                     $responses[] = new XMLElement('response', $resultset);
                 }
             }
             /** Else:
              *    the object existed at start and we have multiple modifications,
              *  or,
              *    the object didn't exist at start and we have subsequent modifications,
              *  but:
              *    in either case we simply stick with our existing report.
              */
         } else {
             /** The simple case: this is the first one for this dav_id */
             if ($object->sync_status == 404) {
                 $resultset = array(new XMLElement('href', ConstructURL($object->dav_name)), new XMLElement('status', display_status($object->sync_status)));
                 $first_status = 404;
             } else {
                 $dav_resource = new DAVResource($object);
                 $resultset = $dav_resource->GetPropStat($proplist, $reply);
                 array_unshift($resultset, new XMLElement('href', ConstructURL($object->dav_name)));
                 $first_status = $object->sync_status;
             }
             $responses[] = new XMLElement('response', $resultset);
             $last_dav_name = $object->dav_name;
         }
     }
     $responses[] = new XMLElement('sync-token', 'data:,' . $new_token);
 } else {
     $request->DoResponse(500, translate("Database error"));
 }
Example #2
0
?>
		</div>

		<div class="meta">
			<h3><?php 
_e('Meta', 'glotpress');
?>
</h3>
			<dl>
				<dt><?php 
_e('Status:', 'glotpress');
?>
</dt>
				<dd>
					<?php 
echo display_status($t->translation_status);
?>
					<?php 
if ($t->translation_status) {
    ?>
						<?php 
    if ($can_approve) {
        ?>
							<?php 
        if ($t->translation_status != 'current') {
            ?>
							<button class="approve" tabindex="-1" data-nonce="<?php 
            echo esc_attr(wp_create_nonce('update-translation-status-current_' . $t->id));
            ?>
"><strong>+</strong> <?php 
            _e('Approve', 'glotpress');
Example #3
0
    $msj = check_action($service, $client, $action);
}
// Print Document Headers
doc_header($msj);
// Get service status
$service_status = get_service_status($service, $status_opts);
// Get playback status
$playback_status = get_playback_status();
print "<strong>now playing:</strong>";
print '<div style="width:50%;"><marquee behavior="scroll" direction="left"><pre>' . $playback_status . '</pre></marquee></div>';
print '<hr align="center" width="80%" noshade="noshade" />';
// Separate each instance
$delimiters = array("\n");
$result = multiexplode($delimiters, $service_status);
// Process each instance
foreach ($result as $pre_status) {
    // Separate name and process status
    $delimiters = array(" ");
    $info = multiexplode($delimiters, $pre_status);
    // Get usefull data
    $replace = array("(", ")");
    $name = str_replace($replace, " ", "{$info['0']}");
    $status = $info[1];
    // Print dynamic content
    if ($name != "" && $status != "") {
        $content = display_status($status, $name);
        print $content;
    }
}
// Print document footer
doc_footer();