Example #1
0
 public function __construct($inputformat, $outputformat, User $user)
 {
     $this->apiKey = $user->getApiKey();
     $this->inputformat = $inputformat;
     $this->outputformat = $outputformat;
     $data = $this->req('https://api.cloudconvert.org/process', array('inputformat' => $inputformat, 'outputformat' => $outputformat, 'apikey' => $this->apiKey));
     if (strpos($data->url, 'http') === false) {
         $data->url = "https:" . $data->url;
     }
     $this->url = $data->url;
     return $this;
 }
Example #2
0
    ?>
</td>
		        	<td><?php 
    echo $u->getUserName();
    ?>
</td>
		        	<td><?php 
    echo $u->getUserEmail();
    ?>
</td>
		        	<td><?php 
    echo $u->getUserNotify() == 1 ? 'Notify' : '';
    ?>
</td></td>
		        	<td><?php 
    echo $u->getApiKey();
    ?>
</td>

		        
		    	</tr> 
			</tbody>
		</table>
	</div>
	<div class="modal-footer">
        <button type="button" class="btn btn-default left" data-dismiss="modal">Close</button>
        <?php 
    WEB::_deletePrompt('user', $u->getUserId(), "You will be deleting only a user.");
    ?>
        <?php 
    WEB::_updatePrompt('user', $u->getUserId());
Example #3
0
    	<div class="col-md-6">
		
		<div class="page-header">
	  		<h1>Profile<small>Hi <?php 
echo $p->getUserName();
?>
!</small></h1>
		</div>

     	<?php 
echo $status_message;
?>

     	<h4>Api Key</h4>
		<p><strong><?php 
echo $p->getApiKey();
?>
</strong></p>

		<form role="form" action="?generate_new_api_key" method="post">		 	
			<button type="submit" class="btn btn-default">Generate New API Key</button>
		</form>

		<h4>Update Your Profile</h4>

      	<form role="form" action="?update" method="post">		
      		<div class="form-group">
		    	<label for="user_name">Name</label>
		    	<input type="text" class="form-control" placeholder="Enter Your New Name" id="user_name" name="user_name" value="<?php 
echo $p->getUserName();
?>