Пример #1
0
 public function __construct($db)
 {
     parent::__construct();
     //$this->configOK = true;
     //$this->internalError = false;
     $this->settings = array_merge($this->settings, array('username' => 'TrabisDeMentia', 'private_key' => '2698213935f6c3ab24134c0f2503926e', 'cookie_path' => XOOPS_CACHE_PATH, 'transport' => 'curl', 'local_debug' => 'error'));
 }
Пример #2
0
set_time_limit(0);
if (!is_writable(dirname(__FILE__))) {
    echo "<b>OpenInviter</b> folder is not writable. Updates will not be posible<br>";
    exit;
}
if (!is_writable(dirname(__FILE__) . '/plugins')) {
    echo "<b>OpenInviter/plugins</b> folder is not writable. Updates will not be posible<br>";
    exit;
}
if (file_exists(dirname(__FILE__) . "/postinstall.php")) {
    echo "Delete <b>postinstall.php</b> before running the autoupdater";
    exit;
}
include dirname(__FILE__) . '/openinviter.php';
$inviter = new openinviter();
class update extends openinviter_base
{
    public $plugins;
    public $settings;
    protected $timeout = 30;
    public function makeUpdate()
    {
        $xml = $this->checkVersions();
        if (!empty($xml)) {
            $update_files = $this->parseXmlUpdates($xml);
            $update = true;
            $newFiles = array();
            foreach ($update_files as $name_file => $arrayfile) {
                if ($arrayfile['type'] == 'new') {
                    if (!empty($this->settings['update_files'])) {
Пример #3
0
<?php

include_once "config.php";
$inviter = new openinviter();
$oi_services = $inviter->getPlugins();
?>
<table align='center' class='thTable' cellspacing='2' cellpadding='0' style='border:none;'>
  <tr>
    <td colspan="2" align="center">
<?php 
$e_ooi = new Event("OfuzEmailImporter->eventGetContacts");
$e_ooi->addParam("goto", $_SERVER["PHP_SELF"]);
$e_ooi->addParam("provider_box", "hotmail");
echo $e_ooi->getFormHeader();
echo $e_ooi->getFormEvent();
if ($_SESSION['in_page_message'] != "") {
    echo $_SESSION['in_page_message'];
}
?>
    </td>
  </tr>
  <tr><td align='right'><label for='email_box'>Email</label></td><td><input type='text' name='email_box' value=''></td></tr>
  <tr><td align='right'><label for='password_box'>Password</label></td><td><input type='password' name='password_box' value=''></td></tr>
  <tr ><td colspan='2' align='center'><?php 
echo $e_ooi->getFormFooter("Import Contacts");
?>
</td></tr>
</table>
<?php 
$_SESSION['in_page_message'] = "";