Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • m346 Friend
    #147963

    Hi guys,i’ve a problem on my themplates.
    When i try to put on a component i receive this error:
    [PHP]Parse error: syntax error, unexpected ‘<‘ in /zzzz/xxxxxxx/yyyyyyy/templates/ja_purity_ii/index.php on line 128[/PHP]
    the funniest thing is that on line 128 i’ve just :
    [PHP]}[/PHP]
    any ideas?

    lamvt Friend
    #330214

    check your component,maybe not good.

    m346 Friend
    #330216

    uhm the problem coming when the component call this file:
    [PHP] <?php $fromtemplate = 1;@include(‘components/com_vemod_news_mailer/vemod_news_mailer.php’); ?>[/PHP]
    that is this one:
    [PHP]<?php

    //vemod_news_mailer Component//

    /**

    * Content code

    * @package vemod_news_mailer

    * @copyright (C) 2007 Thomas Allin

    * @ All rights reserved

    * @ vemod_news_mailer is Free Software

    * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html

    * @version 1.0

    **/

    (defined( ‘_VALID_MOS’ ) || defined(‘_JEXEC’)) or die( ‘Direct Access to this location is not allowed.’ );

    if (!defined(‘vmn_versioncompat’))

    {

    if (defined(‘JPATH_SITE’))

    {

    require(JPATH_SITE.”/administrator/components/com_vemod_news_mailer/versioncompat.php”);

    }

    else

    {

    global $mosConfig_absolute_path;

    require($mosConfig_absolute_path.”/administrator/components/com_vemod_news_mailer/versioncompat.php”);

    }

    }

    global $mainframe;

    if(!isset($fromtemplate))

    {

    $fromtemplate = 0;

    }

    require_once(vmn_absolute_path().”/components/com_vemod_news_mailer/vemod_news_mailer.html.php”);

    $my=&vmn_my();

    $database=&vmn_db();

    require(vmn_absolute_path().”/administrator/components/com_vemod_news_mailer/config.vemod_news_mailer.php”);

    $cronsend=0;

    if (@$_REQUEST[‘cron’])

    {

    echo “<center><h1><br>Vemod News Mailer</h1><br>Scheduled news scan</center>”;

    if (file_exists(vmn_absolute_path().’/vemodtrigger.php’))

    {

    $fromtemplate=1;

    $cronsend=1;

    $_REQUEST[‘throttle’]=”;

    }

    else

    {

    echo “<br><center><h1>Cron links not enabled</h1></center>”;

    exit;

    }

    }

    if (@$globalnewsletter)

    {

    $globalcats=vmn_getGlobalCats($vmncats,$vmnsecs);

    }

    if (!isset($compiledusereadmore))

    {

    if ($compiledreadmoretruncate===”)

    {

    $compiledusereadmore=0;

    $compiledreadmoretruncate=0;

    }

    else

    {

    $compiledusereadmore=1;

    }

    }

    $guestemail=trim(vmn_request( $_POST, ‘guestemail’, ”));

    $guestname=vmn_request( $_POST, ‘guestname’, ”);

    $subscribe = vmn_request( $_POST, ‘subscribe’, ”);

    $checknews = vmn_request( $_POST, ‘checknews’, ”);

    $preview = vmn_request( $_POST, ‘preview’, ”);

    $viewlog = vmn_request( $_POST, ‘viewlog’, ”);

    $updatelog = vmn_request( $_POST, ‘updatelog’, ”);

    //$killlog = vmn_request( $_POST, ‘killlog’, ”);

    $killlogitems = vmn_request( $_POST, ‘killlogitems’, ”);

    $viewsubs = vmn_request( $_REQUEST, ‘viewsubs’, ”);

    $killsubs = vmn_request( $_REQUEST, ‘killsubs’, ”);

    $emailverify = vmn_request( $_REQUEST, ’emailverify’, ”);

    $unsubscribeall = vmn_request( $_REQUEST, ‘unsubscribeall’, ”);

    $emailverifyuser = vmn_decrypt(vmn_request( $_REQUEST, ‘userid’, ”));

    $emailverifycats = vmn_decrypt(vmn_request( $_REQUEST, ‘catid’, ”));

    $alert = vmn_request( $_POST, ‘alert’, ”);

    $resendfailed = vmn_request( $_POST, ‘resendfailed’, ”);

    $changeusermailformat = vmn_request( $_REQUEST, ‘changeusermailformat’, ”);

    $smssubscribe = vmn_request( $_POST, ‘vmn_smssubscribe_x’, ”);

    $editlastscan = vmn_request( $_POST, ‘editlastscan_x’, ”);

    $vmn_editlastscan=vmn_request( $_POST,’vmn_editlastscan’,”);

    $emailverifycats=explode(“,”,$emailverifycats);

    $maileraction=0;

    if ($preview) $maileraction=1;

    if ($checknews) $maileraction=1;

    if ($editlastscan)

    {

    $maileraction=1;

    $preview=1;

    }

    if ($resendfailed) $maileraction=2;

    if ($killlogitems) $maileraction=5;

    if ($viewlog) $maileraction=2;

    if ($updatelog) $maileraction=2;

    //if ($killlog) $maileraction=5;

    if ($viewsubs) $maileraction=4;

    if ($killsubs) $maileraction=6;

    if ($fromtemplate) $maileraction=1;

    if ($changeusermailformat != ”) $maileraction=7;

    if ($smssubscribe != ”) $maileraction=7;

    $sidebarmodules=array();

    $sidebarmodules[0]=vmn_getModuleArray(@$sidebarmodule1,@$sidebarmoduleid1);

    $sidebarmodules[1]=vmn_getModuleArray(@$sidebarmodule2,@$sidebarmoduleid2);

    $sidebarmodules[2]=vmn_getModuleArray(@$sidebarmodule3,@$sidebarmoduleid3);

    $sidebarmodules[3]=vmn_getModuleArray(@$sidebarmodule4,@$sidebarmoduleid4);

    $sidebarmodules[4]=vmn_getModuleArray(@$sidebarmodule5,@$sidebarmoduleid5);

    $sidebarmodules[5]=vmn_getModuleArray(@$sidebarmodule6,@$sidebarmoduleid6);

    $readmore=array();

    $readmore[‘use’]=$usereadmore;

    $readmore[‘text’]=$readmoretext;

    $readmore[‘truncate’]=$readmoretruncate;

    $compiledreadmore=array();

    $compiledreadmore[‘use’]=$compiledusereadmore;

    $compiledreadmore[‘text’]=$compiledreadmoretext;

    $compiledreadmore[‘truncate’]=$compiledreadmoretruncate;

    $emailsettings=vmn_emailsettings();

    if (vmn_isValidEmail(@$mailfromaddress)) $emailsettings[‘mailfrom’]=$mailfromaddress;

    if (vmn_isValidEmail(@$receiveremail)) $emailsettings[‘receiver’]=$receiveremail;

    if (vmn_isValidEmail(@$smsfromaddress)) $emailsettings[‘smsmailfrom’]=$smsfromaddress;

    if (strlen(@$smsfromname)) $emailsettings[‘smsfromname’]=$smsfromname;

    if (strlen(@$smsoperator)) $emailsettings[‘smsoperator’]=$smsoperator;

    $emailsettings[‘throttleinterval’]=@$throttleinterval;

    $emailsettings[‘throttlesize’]=@$throttlesize;

    if (isset($failfactor))

    {

    $emailsettings[‘failfactor’]=(float)$failfactor/100.0;

    }

    else

    {

    $emailsettings[‘failfactor’]=0.75;

    }

    if (@$_REQUEST[‘throttle’])

    {

    echo “<center><h1><br>Vemod News Mailer</h1><br>Send throttled items</center>”;

    if (file_exists(vmn_absolute_path().’/vemodtrigger.php’))

    {

    $now=vmn_now();

    echo ‘<center>’.vmn_sendThrottledItems($now,$emailsettings).'</center>’;

    exit;

    }

    else

    {

    echo “<br><center><h1>Cron links not enabled</h1></center>”;

    exit;

    }

    }

    if (strlen(@$smsoperator))

    {

    if (!isset($vmnsmscats))

    {

    $checkedsms=explode(“,”,@$vmncats);

    }

    else

    {

    $checkedsms=explode(“,”,@$vmnsmscats);

    }

    if (!isset($vmnsmssecs))

    {

    $scheckedsms=explode(“,”,@$vmnsecs);

    }

    else

    {

    $scheckedsms=explode(“,”,@$vmnsmssecs);

    }

    for ($i=0;$i<count($scheckedsms);$i++)

    {

    $scheckedsms[$i]=-$scheckedsms[$i];

    }

    }

    else

    {

    $checkedsms=array();

    $scheckedsms=array();

    }

    //GET LANGUAGE FILE (Joomla 1.0.x)

    if (isset($mosConfig_lang))

    {

    if ( file_exists( vmn_absolute_path().’/components/com_vemod_news_mailer/language/’.$mosConfig_lang.’.php’ ) ) {

    include( vmn_absolute_path().’/components/com_vemod_news_mailer/language/’.$mosConfig_lang.’.php’ );

    } elseif ( file_exists(vmn_absolute_path().’/components/com_vemod_news_mailer/language/english.php’ ) ) {

    include( vmn_absolute_path().’/components/com_vemod_news_mailer/language/english.php’ );

    } //ELSE DEFAULT LANGUAGE FILE: ENGLISH

    }

    $textusers=array();

    if ($mailformat==2)

    {

    $database->setQuery(“SELECT id FROM #__vemod_news_mailer_users WHERE mailformat=1”);

    $textusers=$database->loadResultArray();

    }

    $stripmambotsarray[‘plain’]=@$stripmambots;

    $stripmambotsarray[‘tags’]=@$stripmambottags;

    $registertext=vmn_registertext(@$registerurl);

    if (!$fromtemplate)

    {

    if ($my->id==0)

    {

    if (@$allowguestsubs)

    {

    if (vmn_isValidEmail($guestemail))

    {

    $database->setQuery(“SELECT COUNT(*) FROM #__users WHERE email=”.$database->quote($guestemail).” LIMIT 1″);

    if ($database->loadResult())

    {

    $allowguestsubs=0;

    }

    else

    {

    $database->setQuery(“SELECT * FROM #__vemod_news_mailer_users WHERE email=”.$database->quote($guestemail).” LIMIT 1″);

    $myguest=vmn_loadObject($database);

    if (!$myguest)

    {

    $database->setQuery(“SELECT MIN(id) FROM #__vemod_news_mailer_users “);

    $minguestid=$database->loadResult();

    if (!($minguestid<0))

    {

    $minguestid=0;

    }

    $minguestid–;

    $database->setQuery(“INSERT INTO #__vemod_news_mailer_users (id,name,email) VALUES ($minguestid,”.$database->quote($guestname).”,”.$database->quote($guestemail).”)”);

    $database->query();

    $my->id=$minguestid;

    $my->name=$guestname;

    $my->email=$guestemail;

    }

    else

    {

    if (($myguest->name != $guestname) && (strlen($guestname)))

    {

    $database->setQuery(“UPDATE #__vemod_news_mailer_users SET name=”.$database->quote($guestname).” WHERE id=$myguest->id”);

    $database->query();

    $myguest->name=$guestname;

    }

    $my->id=$myguest->id;

    $my->name=$myguest->name;

    $my->email=$myguest->email;

    }

    }

    }

    else if (($unsubscribeall || $emailverify) && ($emailverifyuser))

    {

    if ($emailverifyuser<0)

    {

    $database->setQuery(“SELECT * FROM #__vemod_news_mailer_users WHERE id=$emailverifyuser LIMIT 1”);

    $myguest=vmn_loadObject($database);

    }

    else

    {

    $database->setQuery(“SELECT * FROM #__users WHERE id=$emailverifyuser LIMIT 1”);

    $myguest=vmn_loadObject($database);

    }

    if ($myguest)

    {

    $my->id=$myguest->id;

    $my->name=$myguest->name;

    $my->email=$myguest->email;

    $guestname=$myguest->name;

    $guestemail=$myguest->email;

    if ($my->id > 0)

    {

    $temploginflag=true;

    }

    }

    }

    else

    {

    $guestemail=”;

    }

    }

    }

    }

    if ($interval==0)

    {

    $interval=1;

    }

    $sinterval=3600 * $interval;

    $now = vmn_now();

    $database->setQuery(“SELECT * FROM #__menu WHERE link = ‘index.php?option=com_vemod_news_mailer’ AND published=1”);

    $base_menu=vmn_loadObject($database);

    $base_url = “index.php?option=com_vemod_news_mailer”;

    $class_sfx=”;

    if ($base_menu)

    {

    $base_Itemid = $base_menu->id;

    $base_url = “index.php?option=com_vemod_news_mailer&Itemid=$base_Itemid”; // Base URL string

    if (!$fromtemplate)

    {

    $params=@vmn_params($base_menu->params);

    $class_sfx=$params->get(‘pageclass_sfx’,”);

    if ( $params->get( ‘show_page_title’,1 ) )

    {

    echo ‘<div class=”componentheading’.$class_sfx.'”>’.$params->get(‘page_title’,$base_menu->name).'</div>’;

    }

    }

    }

    switch ($maileraction)

    {

    case 1:

    //Preview / send / from template

    if (!$fromtemplate)

    {

    define(‘vmn_do_not_autosend’,true);

    if ((!vmn_userAccess($previewusers)) && (!vmn_userAccess($mailusers)))

    {

    vmn_doPageTop(vmn_text(‘VMN_LOGIN’),$alert,@$class_sfx);

    echo $registertext;

    break;

    }

    if ($editlastscan)

    {

    $vmn_editlastscan=date(‘Y-m-d H:i:s’,strtotime($vmn_editlastscan));

    $database->setQuery( “UPDATE #__vemod_news_mailer_scantime SET scantime=”.$database->quote($vmn_editlastscan).” LIMIT 1″ );

    $database->query();

    }

    }

    else

    {

    if (defined(‘vmn_do_not_autosend’))

    {

    break;

    }

    }

    $newscount=0;

    $compiledglobal=0;

    $compiledcats=0;

    $compiledsecs=0;

    $notcompcats=0;

    $notcompsecs=0;

    $report=array();

    $previewinfo=array();

    vmn_lockTable();

    $database->setQuery( “SELECT scantime FROM #__vemod_news_mailer_scantime LIMIT 1” );

    $lastscan=$database->loadResult();

    if ($lastscan==”) $lastscan=$database->getNullDate();

    if ($fromtemplate)

    {

    $lastinterval=(int)(strtotime($lastscan) / $sinterval);

    $thisinterval=(int)(strtotime($now) / $sinterval);

    if ($lastinterval < $thisinterval)

    {

    $checknews=true;

    }

    else

    {

    vmn_unlockTable();

    vmn_sendThrottledItems($now,$emailsettings);

    break;

    }

    }

    vmn_setNow($lastscan,$now,$checknews);

    vmn_unlockTable();

    if (@$autoaddusers)

    {

    if ($checknews)

    {

    vmn_autoAddUsers($vmncats,$vmnsecs,$now,$lastscan);

    }

    }

    if (!$fromtemplate)

    {

    require(vmn_absolute_path().”/administrator/components/com_vemod_news_mailer/js.vemod_news_mailer.php”);

    }

    else

    {

    if ($autoresend)

    {

    vmn_sendFailedItems($now,$emailsettings);

    }

    }

    $ncday=unserialize(stripslashes(@$newscompileday));

    $sncday=unserialize(stripslashes(@$snewscompileday));

    $nctime=unserialize(stripslashes(@$newscompiletime));

    $snctime=unserialize(stripslashes(@$snewscompiletime));

    $compilationtitle=unserialize(stripslashes(@$compilationtitle));

    $scompilationtitle=unserialize(stripslashes(@$scompilationtitle));

    $compilationintrotext=unserialize(stripslashes(@$compilationintrotext));

    $scompilationintrotext=unserialize(stripslashes(@$scompilationintrotext));

    $unewitems=vmn_getNewItems($lastscan,$allnewscount,$vmncats,$vmnsecs,$now,0,@$sendupdated,@$sendaccesslevel);

    $allsentitems=array();

    $compiletimes=array();

    ob_start();

    $evencount=’0′;

    if (@$globalnewsletter)

    {

    $database->setQuery(“SELECT DISTINCT #__users.* FROM #__users,#__vemod_news_mailer_subs WHERE #__users.id = #__vemod_news_mailer_subs.userid ORDER BY #__users.name”);

    $subscribers=$database->loadObjectList();

    if (@$allowguestsubs)

    {

    $database->setQuery(“SELECT DISTINCT #__vemod_news_mailer_users.* FROM #__vemod_news_mailer_users,#__vemod_news_mailer_subs WHERE #__vemod_news_mailer_users.id = #__vemod_news_mailer_subs.userid AND #__vemod_news_mailer_users.id<0 ORDER BY #__vemod_news_mailer_users.name”);

    $subscribers1=$database->loadObjectList();

    $subscribers=array_merge($subscribers,$subscribers1);

    }

    if (strlen(@$globalcustomrecipients))

    {

    $globalcustomrecipients=explode(‘,’,$globalcustomrecipients);

    if (count($globalcustomrecipients))

    {

    foreach ($globalcustomrecipients as $customrecipient)

    {

    if ($customrecipient != ”)

    {

    if (vmn_isValidEmail(trim($customrecipient)))

    {

    $extrasub= (object)array(“email” => trim($customrecipient),”name” => “”,”id” => “Custom”);

    $subscribers[]=$extrasub;

    }

    }

    }

    }

    }

    if (count($subscribers))

    {

    $weekday=@$globalncday-1;

    if ($weekday==-1) $weekday=”;

    $timeofday=@$globalnctime;

    if (vmn_getNewsInterval($now,$lastscan,$weekday,$timeofday,$startnews,$endnews))

    {

    $newitems=array();

    if (@$globalsortorder==0)

    {

    $sresults=vmn_getSecs($vmnsecs);

    if (count($sresults))

    {

    foreach ($sresults as $cat)

    {

    $newitems=array_merge($newitems, vmn_scanNewsCompilation(-($cat->id),$startnews,$endnews,@$compiledsortorder,@$sendupdated,@$sendaccesslevel));

    }

    }

    }

    $results=vmn_getCatsExclSecs($vmncats,$vmnsecs);

    if (count($results))

    {

    foreach ($results as $cat)

    {

    $newitems=array_merge($newitems, vmn_scanNewsCompilation($cat->id,$startnews,$endnews,@$compiledsortorder,@$sendupdated,@$sendaccesslevel));

    }

    }

    if (@$globalsortorder!=0)

    {

    $sresults=vmn_getSecs($vmnsecs);

    if (count($sresults))

    {

    foreach ($sresults as $cat)

    {

    $newitems=array_merge($newitems, vmn_scanNewsCompilation(-($cat->id),$startnews,$endnews,@$compiledsortorder,@$sendupdated,@$sendaccesslevel));

    }

    }

    }

    if (@$globalsortorder==2)

    {

    $newitems=vmn_sortNews($newitems,@$compiledsortorder);

    }

    if (count($newitems))

    {

    $allsentitems=array_merge($allsentitems,$newitems);

    $HTMLbodytext=vmn_compileHTMLNews($newitems,$compiledreadmore,$compilednewsmailHTML,@$stripmambotsarray);

    $textbodytext=vmn_compileTextNews($newitems,$compiledreadmore,$compilednewsmailText,@$stripmambotsarray);

    $newsitem= (object)array(“title” => @$globalcompilationtitle,”introtext” => @$globalcompilationintrotext,”fulltext” => $HTMLbodytext . “[#*%*#]” . $textbodytext,”catid” => “-1”);

    vmn_sendNews($newsitem,$checknews,$HTMLmessage,$textmessage,$subject,$sentHTMLusers,$senttextusers,$subscribers,$now,

    ”,$sidebarmodules,$newsmailHTML,$newsmailText,$mailformat,$textusers,$emailsettings,$unsubscribealltext,$base_url,”,@$newsmailsubject,@$stripmambotsarray,@$modulepreviewtext);

    $sentsmsusers=”;

    if (@$globalsms)

    {

    $database->setQuery(“SELECT DISTINCT #__users.*,#__vemod_news_mailer_users.metatags FROM #__users,#__vemod_news_mailer_users,#__vemod_news_mailer_subs WHERE #__users.id=#__vemod_news_mailer_users.id AND #__users.id=#__vemod_news_mailer_subs.userid ORDER BY #__users.name”);

    $smssubscribers=$database->loadObjectList();

    if (@$allowguestsubs)

    {

    $database->setQuery(“SELECT DISTINCT #__vemod_news_mailer_users.* FROM #__vemod_news_mailer_users,#__vemod_news_mailer_subs WHERE #__vemod_news_mailer_users.id=#__vemod_news_mailer_subs.userid AND #__vemod_news_mailer_users.id<0 ORDER BY #__vemod_news_mailer_users.name”);

    $smssubscribers1=$database->loadObjectList();

    $smssubscribers=array_merge($smssubscribers,$smssubscribers1);

    }

    vmn_sendSMS($newsitem,$checknews,$smsmessage,$subjectsms,$sentsmsusers,$smssubscribers,$now,@$smsText,$emailsettings,”,@$smssubject);

    }

    if (!$checknews)

    {

    $mailtypes=”;

    $previewinfotemp='</td><td><a href=”‘.vmn_sefRelToAbs($base_url.’#previewanchor’.($evencount+1)).'”>’.$subject.'</a></td><td>’.@$globalname.'</td><td>’.count($subscribers);

    if (strlen(@$sentsmsusers))

    {

    vmn_doPreviewtableRow($evencount,$subjectsms,”<sms></sms><pre>”.$smsmessage.”</pre>”,vmn_dateTimeX($endnews),$sentsmsusers,@$class_sfx);

    $mailtypes.=”;

    }

    if (strlen($senttextusers))

    {

    vmn_doPreviewtableRow($evencount,$subject,”<pre>”.$textmessage.”</pre>”,vmn_dateTimeX($endnews),$senttextusers,@$class_sfx);

    $mailtypes.=”;

    }

    if (strlen($sentHTMLusers))

    {

    vmn_doPreviewtableRow($evencount,$subject,$HTMLmessage,vmn_dateTimeX($endnews),$sentHTMLusers,@$class_sfx);

    $mailtypes.=”;

    }

    $previewinfo[]=$mailtypes.$previewinfotemp;

    }

    else

    {

    if (strlen(@$sentsmsusers))

    {

    $report[‘global’][‘smssubject’][]=$subjectsms;

    $report[‘global’][‘smsusers’][]=$sentsmsusers;

    }

    if (strlen($senttextusers))

    {

    $report[‘global’][‘textsubject’][]=$subject;

    $report[‘global’][‘textusers’][]=$senttextusers;

    }

    if (strlen($sentHTMLusers))

    {

    $report[‘global’][‘htmlsubject’][]=$subject;

    $report[‘global’][‘htmlusers’][]=$sentHTMLusers;

    }

    }

    $newscount++;

    $compiledglobal++;

    }

    }

    $allsentitems[]=(object)array(‘vemoddatetime’=>date(‘Y-m-d H:i:s’,$startnews),’title’=>’Previous compilation’,’category’=>’Single newsletter’,’id’=>-1);

    $allsentitems[]=(object)array(‘vemoddatetime’=>date(‘Y-m-d H:i:s’,$endnews),’title’=>’Current compilation’,’category’=>’Single newsletter’,’id’=>-1);

    }

    }

    else

    {

    if (count($ncday))

    {

    $cats=vmn_getCatsExclSecs($vmncats,$vmnsecs);

    foreach($cats as $cat)

    {

    $catid=$cat->id;

    $ncd=$ncday[$catid];

    if ($ncd)

    {

    //echo vmn_getCatTitle($catid) . ” “;

    $subscribers=vmn_getSubscribers($catid,unserialize(stripslashes($customrecipients)),@$allowguestsubs);

    if (count($subscribers))

    {

    $weekday=$ncd-2;

    if ($weekday==-1) $weekday=”;

    $timeofday=$nctime[$catid];

    if (vmn_getNewsInterval($now,$lastscan,$weekday,$timeofday,$startnews,$endnews))

    {

    $newitems=vmn_scanNewsCompilation($catid,$startnews,$endnews,@$compiledsortorder,@$sendupdated,@$sendaccesslevel);

    if (count($newitems))

    {

    $allsentitems=array_merge($allsentitems,$newitems);

    $HTMLbodytext=vmn_compileHTMLNews($newitems,$compiledreadmore,$compilednewsmailHTML,@$stripmambotsarray);

    $textbodytext=vmn_compileTextNews($newitems,$compiledreadmore,$compilednewsmailText,@$stripmambotsarray);

    $title=vmn_getCatTitle($catid);

    $newsitem= (object)array(“title” => $compilationtitle[$catid],”introtext” => $compilationintrotext[$catid],”fulltext” => $HTMLbodytext . “[#*%*#]” . $textbodytext,”catid” => “-1”);

    vmn_sendNews($newsitem,$checknews,$HTMLmessage,$textmessage,$subject,$sentHTMLusers,$senttextusers,$subscribers,$now,

    ”,$sidebarmodules,$newsmailHTML,$newsmailText,$mailformat,$textusers,$emailsettings,$unsubscribealltext,$base_url,$title,@$newsmailsubject,@$stripmambotsarray,@$modulepreviewtext);

    $sentsmsusers=”;

    if (in_array($catid,$checkedsms))

    {

    $smssubscribers=vmn_getSMSSubscribers($catid,@$allowguestsubs);

    vmn_sendSMS($newsitem,$checknews,$smsmessage,$subjectsms,$sentsmsusers,$smssubscribers,$now,@$smsText,$emailsettings,$title,@$smssubject);

    }

    if (!$checknews)

    {

    $mailtypes=”;

    $previewinfotemp='</td><td><a href=”‘.vmn_sefRelToAbs($base_url.’#previewanchor’.($evencount+1)).'”>’.$subject.'</a></td><td>’.$title.'</td><td>’.count($subscribers);

    if (strlen(@$sentsmsusers))

    {

    vmn_doPreviewtableRow($evencount,$subjectsms,”<sms></sms><pre>”.$smsmessage.”</pre>”,vmn_dateTimeX($endnews),$sentsmsusers,@$class_sfx);

    $mailtypes.=”;

    }

    if (strlen($senttextusers))

    {

    vmn_doPreviewtableRow($evencount,$subject,”<pre>”.$textmessage.”</pre>”,vmn_dateTimeX($endnews),$senttextusers,@$class_sfx);

    $mailtypes.=”;

    }

    if (strlen($sentHTMLusers))

    {

    vmn_doPreviewtableRow($evencount,$subject,$HTMLmessage,vmn_dateTimeX($endnews),$sentHTMLusers,@$class_sfx);

    $mailtypes.=”;

    }

    $previewinfo[]=$mailtypes.$previewinfotemp;

    }

    else

    {

    if (strlen(@$sentsmsusers))

    {

    $report[‘compcat’][‘smssubject’][]=$subjectsms;

    $report[‘compcat’][‘smsusers’][]=$sentsmsusers;

    }

    if (strlen($senttextusers))

    {

    $report[‘compcat’][‘textsubject’][]=$subject;

    $report[‘compcat’][‘textusers’][]=$senttextusers;

    }

    if (strlen($sentHTMLusers))

    {

    $report[‘compcat’][‘htmlsubject’][]=$subject;

    $report[‘compcat’][‘htmlusers’][]=$sentHTMLusers;

    }

    }

    $newscount++;

    $compiledcats++;

    }

    }

    $allsentitems[]=(object)array(‘vemoddatetime’=>date(‘Y-m-d H:i:s’,$startnews),’title’=>’Previous compilation’,’category’=>’Category: ‘.vmn_getCatTitle($catid),’id’=>-1);

    $allsentitems[]=(object)array(‘vemoddatetime’=>date(‘Y-m-d H:i:s’,$endnews),’title’=>’Current compilation’,’category’=>’Category: ‘.vmn_getCatTitle($catid),’id’=>-1);

    }

    }

    }

    }

    if (count($sncday))

    {

    $secs=vmn_getSecs($vmnsecs);

    foreach($secs as $sec)

    {

    $secid=-($sec->id);

    $sncd=$sncday[$secid];

    if ($sncd)

    {

    //echo vmn_getCatTitle($secid) . ” “;

    $subscribers=vmn_getSubscribers($secid,unserialize(stripslashes($scustomrecipients)),@$allowguestsubs);

    if (count($subscribers))

    {

    $weekday=$sncd-2;

    if ($weekday==-1) $weekday=”;

    $timeofday=$snctime[$secid];

    if (vmn_getNewsInterval($now,$lastscan,$weekday,$timeofday,$startnews,$endnews))

    {

    $newitems=vmn_scanNewsCompilation($secid,$startnews,$endnews,@$compiledsortorder,@$sendupdated,@$sendaccesslevel);

    if (count($newitems))

    {

    $allsentitems=array_merge($allsentitems,$newitems);

    $HTMLbodytext=vmn_compileHTMLNews($newitems,$compiledreadmore,$compilednewsmailHTML,@$stripmambotsarray);

    $textbodytext=vmn_compileTextNews($newitems,$compiledreadmore,$compilednewsmailText,@$stripmambotsarray);

    $title=vmn_getCatTitle($secid);

    $newsitem= (object)array(“title” => $scompilationtitle[$secid],”introtext” => $scompilationintrotext[$secid],”fulltext” => $HTMLbodytext . “[#*%*#]” . $textbodytext,”catid” => “-1”);

    vmn_sendNews($newsitem,$checknews,$HTMLmessage,$textmessage,$subject,$sentHTMLusers,$senttextusers,$subscribers,$now,

    ”,$sidebarmodules,$newsmailHTML,$newsmailText,$mailformat,$textusers,$emailsettings,$unsubscribealltext,$base_url,$title,@$newsmailsubject,@$stripmambotsarray,@$modulepreviewtext);

    $sentsmsusers=”;

    if (in_array($secid,$scheckedsms))

    {

    $smssubscribers=vmn_getSMSSubscribers($secid,@$allowguestsubs);

    vmn_sendSMS($newsitem,$checknews,$smsmessage,$subjectsms,$sentsmsusers,$smssubscribers,$now,@$smsText,$emailsettings,$title,@$smssubject);

    }

    if (!$checknews)

    {

    $mailtypes=”;

    $previewinfotemp='</td><td><a href=”‘.vmn_sefRelToAbs($base_url.’#previewanchor’.($evencount+1)).'”>’.$subject.'</a></td><td>’.$title.'</td><td>’.count($subscribers);

    if (strlen(@$sentsmsusers))

    {

    vmn_doPreviewtableRow($evencount,$subjectsms,”<sms></sms><pre>”.$smsmessage.”</pre>”,vmn_dateTimeX($endnews),$sentsmsusers,@$class_sfx);

    $mailtypes.=”;

    }

    if (strlen($senttextusers))

    {

    vmn_doPreviewtableRow($evencount,$subject,”<pre>”.$textmessage.”</pre>”,vmn_dateTimeX($endnews),$senttextusers,@$class_sfx);

    $mailtypes.=”;

    }

    if (strlen($sentHTMLusers))

    {

    vmn_doPreviewtableRow($evencount,$subject,$HTMLmessage,vmn_dateTimeX($endnews),$sentHTMLusers,@$class_sfx);

    $mailtypes.=”;

    }

    $previewinfo[]=$mailtypes.$previewinfotemp;

    }

    else

    {

    if (strlen(@$sentsmsusers))

    {

    $report[‘compsec’][‘smssubject’][]=$subjectsms;

    $report[‘compsec’][‘smsusers’][]=$sentsmsusers;

    }

    if (strlen($senttextusers))

    {

    $report[‘compsec’][‘textsubject’][]=$subject;

    $report[‘compsec’][‘textusers’][]=$senttextusers;

    }

    if (strlen($sentHTMLusers))

    {

    $report[‘compsec’][‘htmlsubject’][]=$subject;

    $report[‘compsec’][‘htmlusers’][]=$sentHTMLusers;

    }

    }

    $newscount++;

    $compiledsecs++;

    }

    }

    $allsentitems[]=(object)array(‘vemoddatetime’=>date(‘Y-m-d H:i:s’,$startnews),’title’=>’Previous compilation’,’category’=>’Section: ‘.vmn_getCatTitle($secid),’id’=>-1);

    $allsentitems[]=(object)array(‘vemoddatetime’=>date(‘Y-m-d H:i:s’,$endnews),’title’=>’Current compilation’,’category’=>’Section: ‘.vmn_getCatTitle($secid),’id’=>-1);

    }

    }

    }

    }

    for ($i=0;$i < count($unewitems);$i++)

    {

    if (!$sncday[-($unewitems[$i]->sectionid)])

    {

    $subscribers=vmn_getSubscribers(-($unewitems[$i]->sectionid),unserialize(stripslashes($scustomrecipients)),@$allowguestsubs);

    if (count($subscribers))

    {

    $allsentitems[]=$unewitems[$i];

    $title=vmn_getCatTitle(-($unewitems[$i]->sectionid));

    vmn_sendNews($unewitems[$i],$checknews,$HTMLmessage,$textmessage,$subject,$sentHTMLusers,$senttextusers,$subscribers,$now,$readmore,

    $sidebarmodules,$newsmailHTML,$newsmailText,$mailformat,$textusers,$emailsettings,$unsubscribealltext,$base_url,$title,@$newsmailsubject,@$stripmambotsarray,@$modulepreviewtext);

    $sentsmsusers=”;

    if (in_array(-$unewitems[$i]->sectionid,$scheckedsms))

    {

    $smssubscribers=vmn_getSMSSubscribers(-($unewitems[$i]->sectionid),@$allowguestsubs);

    vmn_sendSMS($unewitems[$i],$checknews,$smsmessage,$subjectsms,$sentsmsusers,$smssubscribers,$now,@$smsText,$emailsettings,$title,@$smssubject);

    }

    if (!$checknews)

    {

    $mailtypes=”;

    $previewinfotemp='</td><td><a href=”‘.vmn_sefRelToAbs($base_url.’#previewanchor’.($evencount+1)).'”>’.$subject.'</a></td><td>’.$title.'</td><td>’.count($subscribers);

    if (strlen(@$sentsmsusers))

    {

    vmn_doPreviewtableRow($evencount,$subjectsms,”<sms></sms><pre>”.$smsmessage.”</pre>”,vmn_dateTimeX($unewitems[$i]->publish_up),$sentsmsusers,@$class_sfx);

    $mailtypes.=”;

    }

    if (strlen($senttextusers))

    {

    vmn_doPreviewtableRow($evencount,$subject,”<pre>”.$textmessage.”</pre>”,vmn_dateTimeX($unewitems[$i]->publish_up),$senttextusers,@$class_sfx);

    $mailtypes.=”;

    }

    if (strlen($sentHTMLusers))

    {

    vmn_doPreviewtableRow($evencount,$subject,$HTMLmessage,vmn_dateTimeX($unewitems[$i]->publish_up),$sentHTMLusers,@$class_sfx);

    $mailtypes.=”;

    }

    $previewinfo[]=$mailtypes.$previewinfotemp;

    }

    else

    {

    if (strlen(@$sentsmsusers))

    {

    $report[‘nocompsec’][‘smssubject’][]=$subjectsms;

    $report[‘nocompsec’][‘smsusers’][]=$sentsmsusers;

    }

    if (strlen($senttextusers))

    {

    $report[‘nocompsec’][‘textsubject’][]=$subject;

    $report[‘nocompsec’][‘textusers’][]=$senttextusers;

    }

    if (strlen($sentHTMLusers))

    {

    $report[‘nocompsec’][‘htmlsubject’][]=$subject;

    $report[‘nocompsec’][‘htmlusers’][]=$sentHTMLusers;

    }

    }

    $newscount++;

    $notcompsecs++;

    }

    }

    if (!$ncday[$unewitems[$i]->catid])

    {

    $subscribers=vmn_getSubscribers($unewitems[$i]->catid,unserialize(stripslashes($customrecipients)),@$allowguestsubs);

    if (count($subscribers))

    {

    $allsentitems[]=$unewitems[$i];

    $title=vmn_getCatTitle($unewitems[$i]->catid);

    vmn_sendNews($unewitems[$i],$checknews,$HTMLmessage,$textmessage,$subject,$sentHTMLusers,$senttextusers,$subscribers,$now,$readmore,

    $sidebarmodules,$newsmailHTML,$newsmailText,$mailformat,$textusers,$emailsettings,$unsubscribealltext,$base_url,$title,@$newsmailsubject,@$stripmambotsarray,@$modulepreviewtext);

    $sentsmsusers=”;

    if (in_array($unewitems[$i]->catid,$checkedsms))

    {

    $smssubscribers=vmn_getSMSSubscribers($unewitems[$i]->catid,@$allowguestsubs);

    vmn_sendSMS($unewitems[$i],$checknews,$smsmessage,$subjectsms,$sentsmsusers,$smssubscribers,$now,@$smsText,$emailsettings,$title,@$smssubject);

    }

    if (!$checknews)

    {

    $mailtypes=”;

    $previewinfotemp='</td><td><a href=”‘.vmn_sefRelToAbs($base_url.’#previewanchor’.($evencount+1)).'”>’.$subject.'</a></td><td>’.$title.'</td><td>’.count($subscribers);

    if (strlen(@$sentsmsusers))

    {

    vmn_doPreviewtableRow($evencount,$subjectsms,”<sms></sms><pre>”.$smsmessage.”</pre>”,vmn_dateTimeX($unewitems[$i]->publish_up),$sentsmsusers,@$class_sfx);

    $mailtypes.=”;

    }

    if (strlen($senttextusers))

    {

    vmn_doPreviewtableRow($evencount,$subject,”<pre>”.$textmessage.”</pre>”,vmn_dateTimeX($unewitems[$i]->publish_up),$senttextusers,@$class_sfx);

    $mailtypes.=”;

    }

    if (strlen($sentHTMLusers))

    {

    vmn_doPreviewtableRow($evencount,$subject,$HTMLmessage,vmn_dateTimeX($unewitems[$i]->publish_up),$sentHTMLusers,@$class_sfx);

    $mailtypes.=”;

    }

    $previewinfo[]=$mailtypes.$previewinfotemp;

    }

    else

    {

    if (strlen(@$sentsmsusers))

    {

    $report[‘nocompcat’][‘smssubject’][]=$subjectsms;

    $report[‘nocompcat’][‘smsusers’][]=$sentsmsusers;

    }

    if (strlen($senttextusers))

    {

    $report[‘nocompcat’][‘textsubject’][]=$subject;

    $report[‘nocompcat’][‘textusers’][]=$senttextusers;

    }

    if (strlen($sentHTMLusers))

    {

    $report[‘nocompcat’][‘htmlsubject’][]=$subject;

    $report[‘nocompcat’][‘htmlusers’][]=$sentHTMLusers;

    }

    }

    $newscount++;

    $notcompcats++;

    }

    }

    }

    }

    if (isset($logsize)) vmn_trimLog($logsize);

    $return.= ob_get_contents();

    ob_end_clean();

    if (!$checknews)

    {

    if (@$frontendtree)

    {

    ?>

    <SCRIPT LANGUAGE=”JavaScript”>

    <!–

    function collapseSection(id)

    {

    if (document.getElementById( id ).style.display==’none’)

    {

    var elem = document.getElementById( id );

    //alert(elem.id);

    if( elem )

    {

    elem.style.display = ‘block’;

    } /* if */

    document.getElementById( id+’_collapse’ ).src=”<?php echo vmn_live_site(); ?>/components/com_vemod_news_mailer/collapseall.png”;

    }

    else

    {

    var elem = document.getElementById( id );

    //alert(elem.id);

    if( elem )

    {

    elem.style.display = ‘none’;

    } /* if */

    document.getElementById( id+’_collapse’ ).src=”<?php echo vmn_live_site(); ?>/components/com_vemod_news_mailer/expandall.png”;

    }

    }

    –>

    </script>

    <?php

    }

    ?>

    <SCRIPT LANGUAGE=”JavaScript”>

    <!–

    function showScantimeEdit()

    {

    var edit=document.getElementById(‘vmn_scantimeedit’);

    var time=document.getElementById(‘vmn_scantimeshow’);

    if (time.style.display==’none’)

    {

    time.style.display=’inline’;

    edit.style.display=’none’;

    }

    else

    {

    time.style.display=’none’;

    edit.style.display=’inline’;

    }

    }

    –>

    </script>

    <?php

    vmn_doForm(vmn_sefRelToAbs($base_url));

    vmn_doPageTop($newscount . ” ” . vmn_text(‘VMN_ITEMS_ARE_NEW’),false,@$class_sfx);

    echo ‘<table width=”100%”><tr><td valign=”top”>’;

    if (@$frontendtree)

    {

    echo ‘<div style=”padding-left:10px;”>’;

    echo vmn_image(‘expandall.png’,”,”,’newitems_collapse’,”javascript:collapseSection(‘newitems’);”);

    echo ‘</div>’;

    }

    echo ‘</td><td width=”99%”><table cellspacing=”0″><tr><td> ‘.vmn_image(’email.gif’).'</td><td> ‘.$newscount . ” ” . vmn_text(‘VMN_ITEMS_ARE_NEW’).'</td></tr></table></td></tr><tr><td></td><td>’;

    if (@$frontendtree)

    {

    echo ‘<div width=”100%” id=”newitems” style=”display:none;border:1px solid #AAAAAA;”>’;

    }

    else

    {

    echo ‘<div width=”100%” id=”newitems” style=”border:1px solid #AAAAAA;”>’;

    }

    echo ‘<div>’;

    vmn_doTable();

    $evencount=0;

    echo vmn_doCountingTableRow($evencount,@$class_sfx);

    echo ‘<td> ‘.count($previewinfo).’ ‘.vmn_text(‘VMN_ITEMS_ARE_NEW’).'</td>’;

    echo ‘</tr>’;

    vmn_doEndTable();

    //if (!count($previewinfo))

    //{

    // $previewinfo[]=’0 ‘.vmn_text(‘VMN_ITEMS_ARE_NEW’);

    //}

    //else

    //{

    //vmn_doTableHeader(array(”,vmn_text(‘VMN_CATEGORY’),vmn_text(‘VMN_SUBJECT’),vmn_text(‘VMN_USERS’)));

    //}

    vmn_doTable();

    foreach ($previewinfo as $previewinfoitem)

    {

    echo vmn_doCountingTableRow($evencount,@$class_sfx);

    $search=array(”,”,”);

    $replace=array(vmn_image(‘sms.gif’,’SMS’),vmn_image(‘text.gif’,’Text’),vmn_image(‘html.gif’,’HTML’));

    $previewinfoitem=str_replace($search,$replace,$previewinfoitem);

    echo ‘<td width=”58″> ‘.$previewinfoitem.’ ‘.vmn_text(‘VMN_USERS’).'</td>’;

    echo ‘</tr>’;

    }

    vmn_doEndTable();

    echo ‘</div>’;

    echo ‘</div></td></tr></table>’;

    echo ‘<table width=”100%”><tr><td valign=”top”>’;

    if (@$frontendtree)

    {

    echo ‘<div style=”padding-left:10px;”>’;

    echo vmn_image(‘expandall.png’,”,”,’lastscanedit_collapse’,”javascript:collapseSection(‘lastscanedit’);”);

    echo ‘</div>’;

    }

    echo ‘</td><td width=”99%”><table cellspacing=”0″><tr><td> ‘.vmn_image(‘clock.gif’).'</td>

    <td> ‘. vmn_text(‘VMN_LAST_SCAN’) . ‘ <span id=”vmn_scantimeshow” style=”display:inline;”><a href=”javascript:showScantimeEdit();”>’.vmn_dateTimeX($lastscan).'</a></span></td>

    <td><div id=”vmn_scantimeedit” style=”display:none;”><table cellspacing=”0″ style=”border:1px solid #AAAAAA;padding:2px;”><tr>

    <td> <b>’.str_replace(‘ ‘,’ ‘,vmn_timecaption()).’ :&nbsp</b></td>

    <td> <input name=”vmn_editlastscan” type=”textbox” size=”20″ value=”‘. $lastscan . ‘” /></td>

    <td> <input type=”image” name=”editlastscan” src=”‘.vmn_live_site().’/components/com_vemod_news_mailer/apply_f2.gif” style=”width:16px;height:16px;border:0px;” alt=”‘.vmn_text(‘APPLY’).'” title=”‘.vmn_text(‘APPLY’).'” /></td>

    <td> <a href=”javascript:showScantimeEdit();”>’.vmn_image(‘publish_x.png’,vmn_text(‘VMN_CLOSE’)).'</a> </td>

    </tr></table></div>

    </td></tr></table></td></tr><tr><td></td><td>’;

    if (@$frontendtree)

    {

    echo ‘<div width=”100%” id=”lastscanedit” style=”display:none;border:1px solid #AAAAAA;”>’;

    }

    else

    {

    echo ‘<div width=”100%” id=”lastscanedit” style=”border:1px solid #AAAAAA;”>’;

    }

    $evencount=0;

    $allsentitems[]=(object)array(‘vemoddatetime’=>$lastscan,’title’=>'<b>’.vmn_text(‘VMN_LAST_SCAN’).'</b>’,’id’=>-1);

    $allsentitems[]=(object)array(‘vemoddatetime’=>$now,’title’=>'<b>Now</b>’,’id’=>-1);

    $allsentitems=vmn_sortNews($allsentitems,0);

    //vmn_doTable();

    //echo vmn_doCountingTableRow($evencount);

    //echo ‘<td> ‘.count($allsentitems).’ ‘.vmn_text(‘VMN_OUT_OF’).’ ‘.$allnewscount.'</td>’;

    //echo ‘</tr>’;

    //vmn_doEndTable();

    vmn_doTable();

    foreach ($allsentitems as $unewitem)

    {

    if ($unewitem->id==-1)

    {

    if (strtotime($unewitem->vemoddatetime)>strtotime($now))

    {

    $unewitem->title=str_replace(‘Current’,’Next’,$unewitem->title);

    }

    echo vmn_doCountingTableRow($evencount,@$class_sfx);

    echo ‘<td> </td><td>’.vmn_image(‘clock.gif’).'</td><td>’.$unewitem->title.'</td><td>’.@$unewitem->category.'</td><td>’.vmn_dateTimeX($unewitem->vemoddatetime).'</td></tr>’;

    echo ‘</tr>’;

    }

    else

    {

    $published=strtotime($unewitem->publish_up);

    $publishedtime=’Start publishing: ‘.vmn_dateTimeX($unewitem->publish_up);

    if (strtotime($unewitem->created)>$published)

    {

    $publishedtime=’Created: ‘.vmn_dateTimeX($unewitem->created);

    }

    if (@$sendupdated)

    {

    if (strtotime($unewitem->modified)>$published)

    {

    $publishedtime=’ Modified: ‘.vmn_dateTimeX($unewitem->modified);

    }

    }

    echo vmn_doCountingTableRow($evencount,@$class_sfx);

    echo ‘<td> </td><td> </td><td><a href=”‘.vmn_getContentURL($unewitem).'”>’.$unewitem->title.'</a></td><td>’.vmn_getCatTitle($unewitem->catid).'</td><td>’.$publishedtime.'</td>’;

    echo ‘</tr>’;

    }

    }

    vmn_doEndTable();

    echo ‘</div></td></tr></table>’;

    $emailconfig=array();

    $warning=false;

    if (($emailsettings[‘throttleinterval’]>0) && ($emailsettings[‘throttlesize’]>0))

    {

    $hourfactor=3600/$emailsettings[‘throttleinterval’];

    $emailconfig[‘text’][]=’Method’;

    $emailconfig[‘value’][]=’Throttling’;

    $emailconfig[‘info’][]=$emailsettings[‘throttlesize’].’ mails every ‘.$emailsettings[‘throttleinterval’].’ seconds (sends max ‘.($emailsettings[‘throttlesize’]*$hourfactor).’ mails per hour)’;

    $emailconfig[‘warning’][]=”;

    $emailconfig[‘text’][]=’Fail check’;

    $emailconfig[‘value’][]=($emailsettings[‘failfactor’]*100).’%’;

    $emailconfig[‘info’][]=’of first chunk must succeed’;

    $emailconfig[‘warning’][]=”;

    }

    else

    {

    $emailconfig[‘text’][]=’Method’;

    $emailconfig[‘value’][]=’BCC-copy’;

    $emailconfig[‘info’][]=”;

    $emailconfig[‘warning’][]=”;

    $emailconfig[‘text’][]=’Receiver of original mail’;

    $emailconfig[‘value’][]=$emailsettings[‘receiver’];

    $info=”;

    if ((strlen(@$receiveremail))&&(!vmn_isValidEmail(@$receiveremail))) $info=’ (configured <b>’.@$receiveremail.'</b> is not valid)’;

    $emailconfig[‘info’][]=$info;

    $emailconfig[‘warning’][]=”;

    }

    if (vmn_templateCodeIncluded($incl_code,$tfile,$file))

    {

    $emailconfig[‘text’][]=’Scheduled news scans’;

    $emailconfig[‘value’][]=’On’;

    $emailconfig[‘info’][]='<b>’.$interval.'</b> hour intervals, starting from 00:00 (‘.vmn_timecaption().’)’;

    $emailconfig[‘warning’][]=”;

    }

    else

    {

    $emailconfig[‘text’][]=’Scheduled news scans’;

    $emailconfig[‘value’][]=’Off’;

    $emailconfig[‘info’][]=”;

    $emailconfig[‘warning’][]=”;

    }

    if (file_exists(vmn_absolute_path().’/vemodtrigger.php’))

    {

    $emailconfig[‘text’][]=’Crontab links’;

    $emailconfig[‘value’][]=’Enabled’;

    $emailconfig[‘info’][]=’Use ‘.vmn_live_site().’/vemodtrigger.php?cron=1 and ‘.vmn_live_site().’/vemodtrigger.php?throttle=1’;

    $emailconfig[‘warning’][]=”;

    }

    else

    {

    $emailconfig[‘text’][]=’Crontab links’;

    $emailconfig[‘value’][]=’Disabled’;

    $emailconfig[‘info’][]=”;

    $emailconfig[‘warning’][]=”;

    }

    $emailconfig[‘text’][]=’From name’;

    $emailconfig[‘value’][]=$emailsettings[‘fromname’];

    $emailconfig[‘info’][]=”;

    $emailconfig[‘warning’][]=”;

    $emailconfig[‘text’][]=’Mail from’;

    $emailconfig[‘value’][]=$emailsettings[‘mailfrom’];

    $emailconfig[‘info’][]=”;

    $warning=”;

    if ($emailsettings[‘mailer’]==’smtp’)

    {

    $emailhost=explode(‘@’,$emailsettings[‘mailfrom’]);

    $emailhost=$emailhost[1];

    if (strpos($emailsettings[‘smtphost’],$emailhost)===false) $warning=’Mail from not within smtp host domain !’;

    }

    if ((strlen(@$mailfromaddress))&&(!vmn_isValidEmail(@$mailfromaddress)))

    {

    $warning.=’ (configured <b>’.@$mailfromaddress.'</b> is not valid)’;

    }

    $emailconfig[‘warning’][]=$warning;

    $warning=”;

    $text=$emailsettings[‘mailer’];

    if ($emailsettings[‘mailer’]==’mail’)

    {

    $warning=’PHP mail uses default values !’;

    $text = ‘PHP mailer’;

    }

    $emailconfig[‘text’][]=’Mailer’;

    $emailconfig[‘value’][]=$text;

    $emailconfig[‘info’][]=”;

    $emailconfig[‘warning’][]=$warning;

    $warning=”;

    if ($emailsettings[‘mailer’]==’sendmail’)

    {

    $emailconfig[‘text’][]=’Sendmail path’;

    $emailconfig[‘value’][]=$emailsettings[‘sendmail’];

    $emailconfig[‘info’][]=”;

    if (!@file_exists(dirname($emailsettings[‘sendmail’])))

    {

    $warning= ‘Sendmail directory not found (safe mode or open_basedir ?)’;

    }

    $emailconfig[‘warning’][]=$warning;

    }

    if ($emailsettings[‘mailer’]==’smtp’)

    {

    $warning=”;

    $emailconfig[‘text’][]=’SMTP host’;

    $emailconfig[‘value’][]=$emailsettings[‘smtphost’];

    $emailconfig[‘info’][]=”;

    if ($emailsettings[‘smtphost’]==’localhost’)

    {

    $warning=’localhost is not reliable and will score high with spam filters !’;

    }

    $emailconfig[‘warning’][]=$warning;

    $text=”;

    $warning=”;

    $emailconfig[‘text’][]=’SMTP auth’;

    $emailconfig[‘info’][]=”;

    if ($emailsettings[‘smtpauth’]==0)

    {

    $text=’Off’;

    $warning=’No auth ?’;

    }

    else

    {

    $text=’On’;

    }

    $emailconfig[‘value’][]=$text;

    $emailconfig[‘warning’][]=$warning;

    }

    echo ‘<table width=”100%”><tr><td valign=”top”>’;

    if (@$frontendtree)

    {

    echo ‘<div style=”padding-left:10px;”>’;

    echo vmn_image(‘expandall.png’,”,”,’emailsettings_collapse’,”javascript:collapseSection(’emailsettings’);”);

    echo ‘</div>’;

    }

    echo ‘</td><td width=”99%”><table cellspacing=”0″><tr><td>’;

    $warning=false;

    foreach ($emailconfig[‘warning’] as $configwarning)

    {

    if (strlen($configwarning)) $warning=true;

    }

    if ($warning)

    {

    echo ‘ ‘.vmn_image(‘warning.gif’);

    }

    else

    {

    echo ‘ ‘.vmn_image(‘tick.png’);

    }

    echo ‘</td><td> ‘;

    echo ucfirst($emailsettings[‘mailer’]).'</td><tr></table></td></tr><tr><td></td><td>’;

    if (@$frontendtree)

    {

    echo ‘<div width=”100%” id=”emailsettings” style=”display:none;border:1px solid #AAAAAA;”>’;

    }

    else

    {

    echo ‘<div width=”100%” id=”emailsettings” style=”border:1px solid #AAAAAA;”>’;

    }

    vmn_doTable();

    $evencount=0;

    for ($i=0;$i<count($emailconfig[‘text’]);$i++)

    {

    echo vmn_doCountingTableRow($evencount,@$class_sfx);

    echo ‘<td width=”20″>’;

    if (strlen($emailconfig[‘warning’][$i]))

    {

    echo vmn_image(‘warning.gif’,$emailconfig[‘warning’][$i]);

    }

    else

    {

    echo ‘ ‘;

    }

    echo ‘</td><td width=”25%”>’.$emailconfig[‘text’][$i].'</td><td width=”25%”><b>’.$emailconfig[‘value’][$i].'</b></td width=”25%”><td>’;

    if (strlen($emailconfig[‘info’][$i]))

    {

    echo $emailconfig[‘info’][$i];

    }

    else

    {

    echo ‘ ‘;

    }

    echo ‘</td width=”25%”><td>’;

    if (strlen($emailconfig[‘warning’][$i]))

    {

    echo ‘<font color=”#FF0000″>’.$emailconfig[‘warning’][$i].'</font>’;

    }

    else

    {

    echo ‘ ‘;

    }

    echo ‘</td></tr>’;

    }

    vmn_doEndTable();

    echo ‘</div></td></tr></table>’;

    echo ‘<br>’;

    vmn_doTable();

    echo $return;

    vmn_doEndTable();

    echo “<br>”;

    vmn_doTable();

    vmn_doTableRow();

    vmn_doButton(vmn_text(‘VMN_BACK’),0,vmn_sefRelToAbs($base_url),false);

    vmn_doButton(vmn_text(‘UPDATE’),$previewusers,”,false,’preview’);

    vmn_doButton(vmn_text(‘VMN_VIEW_LOG’),$previewusers,”,false,’viewlog’);

    if ($preview)

    {

    if ($newscount)

    {

    vmn_doButton(vmn_text(‘VMN_SEND’),$mailusers,”,false,’checknews’,vmn_text(‘VMN_SEND’));

    }

    }

    vmn_doEndTableRow();

    vmn_doEndTable();

    vmn_doEndForm();

    }

    else

    {

    if ((!$fromtemplate) || ($cronsend))

    {

    if (!$cronsend) vmn_doPageTop($newscount . ” ” . vmn_text(‘VMN_ITEMS_WERE_SENT’),false,@$class_sfx);

    echo ‘<div>’;

    $reportcats=array(‘global’,’compcat’,’compsec’,’nocompcat’,’nocompsec’);

    foreach ($reportcats as $reportcat)

    {

    if (array_key_exists($reportcat,$report))

    {

    $sentarray=$report[$reportcat];

    if (array_key_exists(‘htmlsubject’,$sentarray))

    {

    echo ‘<b>HTML</b><br>’;

    for ($i=0;$i<count($sentarray[‘htmlsubject’]);$i++)

    {

    echo vmn_text(‘VMN_SUBJECT’).’: <b>’.$sentarray[‘htmlsubject’][$i].'</b><br>’.$sentarray[‘htmlusers’][$i].'<br>’;

    }

    }

    if (array_key_exists(‘textsubject’,$sentarray))

    {

    echo ‘<b>Text</b><br>’;

    for ($i=0;$i<count($sentarray[‘textsubject’]);$i++)

    {

    echo vmn_text(‘VMN_SUBJECT’).’: <b>’.$sentarray[‘textsubject’][$i].'</b><br>’.$sentarray[‘textusers’][$i].'<br>’;

    }

    }

    if (array_key_exists(‘smssubject’,$sentarray))

    {

    echo ‘<b>sms</b><br>’;

    for ($i=0;$i<count($sentarray[‘smssubject’]);$i++)

    {

    echo vmn_text(‘VMN_SUBJECT’).’: <b>’.$sentarray[‘smssubject’][$i].'</b><br>’.$sentarray[‘smsusers’][$i].'<br>’;

    }

    }

    echo ‘<br>’;

    }

    }

    echo ‘</div>’;

    if (!$cronsend)

    {

    vmn_doForm(vmn_sefRelToAbs($base_url));

    vmn_doTable();

    vmn_doTableRow();

    vmn_doButton(vmn_text(‘VMN_BACK’),0,vmn_sefRelToAbs($base_url),false);

    vmn_doButton(vmn_text(‘VMN_VIEW_LOG’),$previewusers,”,false,’viewlog’);

    vmn_doEndTableRow();

    vmn_doEndTable();

    vmn_doEndForm();

    }

    }

    vmn_sendThrottledItems($now,$emailsettings);

    }

    break;

    case 5:

    //Kill log

    if ($fromtemplate) break;

    if ((!vmn_userAccess($previewusers)) && (!vmn_userAccess($mailusers)))

    {

    vmn_doPageTop(vmn_text(‘VMN_LOGIN’),false,@$class_sfx);

    echo $registertext;

    break;

    }

    if ($killlogitems)

    {

    if (count(@$_POST[‘cid’]))

    {

    foreach ($_POST[‘cid’] as $logitem)

    {

    $database->setQuery(“DELETE FROM #__vemod_news_mailer_log WHERE id=$logitem”);

    $database->query();

    }

    }

    }

    /*

    else

    {

    $database->setQuery( “TRUNCATE TABLE #__vemod_news_mailer_log” );

    $database->query();

    }

    */

    case 2:

    //View Log

    if ($fromtemplate) break;

    if ((!vmn_userAccess($previewusers)) && (!vmn_userAccess($mailusers)))

    {

    vmn_doPageTop(vmn_text(‘VMN_LOGIN’),false,@$class_sfx);

    echo $registertext;

    break;

    }

    if ($updatelog)

    {

    vmn_sendThrottledItems($now,$emailsettings);

    }

    require(vmn_absolute_path().”/administrator/components/com_vemod_news_mailer/js.vemod_news_mailer.php”);

    if ($resendfailed)

    {

    $cats=”;

    if (count(@$_POST[‘cid’]))

    {

    $catsarray=array();

    foreach ($_POST[‘cid’] as $logitem)

    {

    $database->setQuery(“SELECT id FROM #__vemod_news_mailer_log WHERE id=$logitem”);

    $logid = $database->loadResult();

    if ($logid)

    {

    $catsarray[]=$logid;

    }

    }

    $cats=implode(‘,’,$catsarray);

    }

    vmn_sendFailedItems($now,$emailsettings,$cats);

    if (isset($logsize)) vmn_trimLog($logsize);

    }

    vmn_doForm(vmn_sefRelToAbs($base_url));

    $database->setQuery( “SELECT * FROM #__vemod_news_mailer_log ORDER BY sent” );

    $logs = $database->loadObjectList();

    vmn_doPageTop(count($logs) . ” ” . vmn_text(‘VMN_OUT_OF’) . ” ” . $logsize,false,@$class_sfx);

    vmn_doTable();

    $evencount=’0′;

    for ($i=0;$i < count($logs);$i++)

    {

    vmn_doLogTableRow($evencount,$logs[$i],vmn_text(‘VMN_SUCCESS’),vmn_text(‘VMN_FAILURE’),$emailsettings[‘throttlesize’],@$class_sfx);

    }

    vmn_doEndTable();

    echo “<br>”;

    vmn_doTable();

    vmn_doTableRow();

    vmn_doButton(vmn_text(‘VMN_BACK’),0,vmn_sefRelToAbs($base_url),false);

    vmn_doButton(vmn_text(‘VMN_RESEND’),$mailusers,”,false,’resendfailed’,vmn_text(‘VMN_RESEND’));

    vmn_doButton(vmn_text(‘VMN_KILL_LOGITEMS’),$mailusers,”,false,’killlogitems’,vmn_text(‘VMN_KILL_LOGITEMS’));

    vmn_doButton(vmn_text(‘UPDATE’),$mailusers,”,false,’updatelog’);

    vmn_doButton(vmn_text(‘VMN_PREVIEW’),$previewusers,”,false,’preview’);

    vmn_doEndTableRow();

    vmn_doEndTable();

    vmn_doEndForm();

    break;

    case 7:

    //change mailformat

    if ($fromtemplate) break;

    if ($my->id!=0)

    {

    if ($changeusermailformat != ”)

    {

    //User changed mailformat

    $database->setQuery(“SELECT COUNT(*) FROM #__vemod_news_mailer_users WHERE id=$my->id”);

    $exist=$database->loadResult();

    if ($exist)

    {

    $database->setQuery(“UPDATE #__vemod_news_mailer_users SET mailformat=$changeusermailformat WHERE id=$my->id”);

    $database->query();

    }

    else

    {

    $database->setQuery(“INSERT INTO #__vemod_news_mailer_users (id,mailformat) VALUES ($my->id,$changeusermailformat)”);

    $database->query();

    }

    }

    if ($smssubscribe != ”)

    {

    $smsdetails=$_POST[‘vmn_smsdetails’];

    //User changed mailformat

    $database->setQuery(“SELECT COUNT(*) FROM #__vemod_news_mailer_users WHERE id=$my->id”);

    $exist=$database->loadResult();

    if ($exist)

    {

    $database->setQuery(“UPDATE #__vemod_news_mailer_users SET metatags=’$smsdetails’ WHERE id=$my->id”);

    $database->query();

    }

    else

    {

    $database->setQuery(“INSERT INTO #__vemod_news_mailer_users (id,metatags) VALUES ($my->id,’$smsdetails’)”);

    $database->query();

    }

    }

    }

    default:

    if ($fromtemplate) break;

    ob_start();

    //User clicked the subscibe button

    if ($my->id==0)

    {

    if (!@$allowguestsubs)

    {

    vmn_doPageTop(vmn_text(‘VMN_LOGIN’),$alert,@$class_sfx);

    echo $registertext;

    }

    //break;

    }

    if ($subscribe && ($my->id != 0))

    {

    if (@$alert)

    {

    $usermailformat = @$_POST[‘vmn_mailformat’];

    if ($mailformat==2)

    {

    if ($usermailformat!==”)

    {

    $database->setQuery(“SELECT COUNT(*) FROM #__vemod_news_mailer_users WHERE id=$my->id”);

    $exist=$database->loadResult();

    if ($exist)

    {

    $database->setQuery(“UPDATE #__vemod_news_mailer_users SET mailformat=$usermailformat WHERE id=$my->id”);

    $database->query();

    }

    else

    {

    $database->setQuery(“INSERT INTO #__vemod_news_mailer_users (id,mailformat) VALUES ($my->id,$usermailformat)”);

    $database->query();

    }

    }

    }

    if (@$smsoperator!=”)

    {

    $smsdetails=@$_POST[‘vmn_smsdetails’];

    //User changed mailformat

    $database->setQuery(“SELECT COUNT(*) FROM #__vemod_news_mailer_users WHERE id=$my->id”);

    $exist=$database->loadResult();

    if ($exist)

    {

    $database->setQuery(“UPDATE #__vemod_news_mailer_users SET metatags=’$smsdetails’ WHERE id=$my->id”);

    $database->query();

    }

    else

    {

    $database->setQuery(“INSERT INTO #__vemod_news_mailer_users (id,metatags) VALUES ($my->id,’$smsdetails’)”);

    $database->query();

    }

    }

    }

    if ((($useverificationemail==2) && ($my->id<0)) || ($useverificationemail==1))

    {

    //send verification email

    $subscribeto=”;

    $maillink=$base_url . “&emailverify=1&userid=” . vmn_encrypt($my->id) . “&catid=”;

    $catids=”;

    if (@$globalnewsletter)

    {

    if (@$_POST[‘vmn_globalsubscription’]==’1′)

    {

    $subscribeto .= $vmchosencat . “<br>”;

    foreach ($globalcats as $cat)

    {

    $catids .= $cat . “,”;

    //$cattitle=vmn_getCatTitle($cat);

    //$subscribeto .= $cattitle . “<br>”;

    }

    $catids = rtrim($catids,”,”);

    //$subscribeto = rtrim($subscribeto,”<br>”);

    }

    else

    {

    $subscribeto .= $vmnocats;

    }

    }

    else

    {

    if (count(@$_POST[‘vmn_cid’]))

    {

    $subscribeto .= $vmchosencat . “<br><br>”;

    foreach ($_POST[‘vmn_cid’] as $cat)

    {

    $catids .= $cat . “,”;

    $cattitle=vmn_getCatTitle($cat);

    $subscribeto .= $cattitle . “<br>”;

    }

    $catids = rtrim($catids,”,”);

    $subscribeto = rtrim($subscribeto,”<br>”);

    }

    else

    {

    $subscribeto .= $vmnocats;

    }

    }

    $maillink=vmn_sefRelToAbs($maillink.vmn_encrypt($catids));

    $search=array(”,'[livesite]’,”,”);

    $replace=array(vmn_sitename(),vmn_live_site(),vmn_date(),vmn_shortTime());

    $subject = str_replace($search,$replace,stripslashes($vmsubject));

    $subject = html_entity_decode($subject, ENT_QUOTES);

    $database->setQuery(“SELECT mailformat FROM #__vemod_news_mailer_users WHERE id=$my->id”);

    $usermailformat=$database->loadResult();

    if (($mailformat==1) || (($mailformat==2) && ($usermailformat==1)))

    {

    $message=stripslashes($verifymailText);

    $subscribeto=str_replace(“<br>”,”n”,$subscribeto);

    $maillink=$vmlinktext . “n” . $maillink;

    }

    else

    {

    $maillink = ‘<a href=”‘ . $maillink . ‘” target=”_blank”>’ . $vmlinktext . ‘</a>’;

    $message=stripslashes($verifymailHTML);

    }

    $search=array(”,'[livesite]’,”,'[username]’,”,'[verifylink]’);

    $replace=array(vmn_sitename(),vmn_live_site(),stripslashes($subject),$my->name,$subscribeto,$maillink);

    $message=str_replace($search,$replace,$message);

    $codedmessage = vmn_codeMessage($message);

    if (($mailformat==1) || (($mailformat==2) && ($usermailformat==1)))

    {

    $status=vmn_mail( $emailsettings[‘mailfrom’], $emailsettings[‘fromname’], $my->email, $subject, $codedmessage);

    }

    else

    {

    $status=vmn_mail( $emailsettings[‘mailfrom’], $emailsettings[‘fromname’], $my->email, $subject, $codedmessage, 1 );

    }

    if ($status===true)

    {

    vmn_doPageTop(vmn_text(‘VMN_VERIFICATION_MAIL_MESSAGE’),$alert,@$class_sfx);

    }

    else

    {

    vmn_doPageTop($status,$alert,@$class_sfx);

    }

    }

    else

    {

    if (@$globalnewsletter)

    {

    if (@$_POST[‘vmn_globalsubscription’]==’1′)

    {

    vmn_updateSubs($my->id,@$globalcats);

    }

    else

    {

    vmn_updateSubs($my->id,array());

    }

    }

    else

    {

    vmn_updateSubs($my->id,@$_POST[‘vmn_cid’]);

    }

    vmn_doPageTop(vmn_text(‘VMN_YOUR_SUBSCRIPTIONS_HAS_BEEN_UPDATED’),$alert,@$class_sfx);

    }

    }

    elseif (($emailverify > 0) && ($my->id != 0))

    {

    vmn_updateSubs($my->id,$emailverifycats);

    vmn_doPageTop(vmn_text(‘VMN_YOUR_SUBSCRIPTIONS_HAS_BEEN_UPDATED’),$alert,@$class_sfx);

    if (@$temploginflag)

    {

    $my->id=0;

    $my->name=”;

    $my->email=”;

    }

    }

    elseif (($unsubscribeall > 0) && ($my->id != 0))

    {

    vmn_updateSubs($my->id,$emailverifycats);

    vmn_doPageTop(vmn_text(‘VMN_YOUR_SUBSCRIPTIONS_HAS_BEEN_UPDATED’),$alert,@$class_sfx);

    if (@$temploginflag)

    {

    $my->id=0;

    $my->name=”;

    $my->email=”;

    }

    }

    //Linked from the menu

    else

    {

    if ($my->id != 0)

    {

    if ($changeusermailformat != ”)

    {

    vmn_doPageTop((($changeusermailformat==1) ? vmn_text(‘VMN_TEXT_CHOSEN’):vmn_text(‘VMN_HTML_CHOSEN’)),$alert,@$class_sfx);

    }

    else if ($smssubscribe != ”)

    {

    vmn_doPageTop(vmn_text(‘VMN_YOUR_SUBSCRIPTIONS_HAS_BEEN_UPDATED’),$alert,@$class_sfx);

    }

    else

    {

    vmn_doPageTop(vmn_text(‘VMN_YOUR_EMAIL’).” “.$my->email,false,@$class_sfx);

    }

    }

    }

    $pagetop = ob_get_contents();

    ob_end_clean();

    if (@$welcomemessage)

    {

    $database->setQuery(“SELECT COUNT(*) FROM #__vemod_news_mailer_subs WHERE userid=$my->id”);

    $issubscriber= $database->loadResult();

    if (((@$welcomeviewers==1) && ($my->id<=0)) || ((@$welcomeviewers==2) && ($my->id<=0) && (!$issubscriber)) || ((@$welcomeviewers==3) && ($my->id>0)) || ((@$welcomeviewers==4) && ($my->id<=0) && (!$issubscriber)) || ((@$welcomeviewers==5) && (!$issubscriber)) || (@$welcomeviewers==6))

    {

    echo stripslashes($welcomemessage);

    }

    }

    echo $pagetop;

    if (@$submitall)

    {

    ?>

    <iframe id=”subsframe” name=”subsframe” width=”0″ height=”0″ border=”0″ frameborder=”0″ scrolling=”auto” align=”center” ></iframe>

    <form method=”post” action=”<?php echo vmn_sefRelToAbs($base_url); ?>” name=”userForm” target=”subsframe”>

    <input name=”alert” type=”hidden” value=”1″/>

    <?php

    }

    else

    {

    vmn_doForm(vmn_sefRelToAbs($base_url));

    }

    //Show users subscriptions

    echo vmn_doMySubscriptions(@$frontdescription,@$sfrontdescription,$vmncats,$vmnsecs,@$frontendtree,@$globalnewsletter,@$globalname,@$globalfdescription,@$globalsms,$checkedsms,$scheckedsms,true,@$class_sfx,@$unsubscribetext,vmn_text(‘VMN_SUBSCRIBE’));

    echo “<br>”;

    vmn_doGuestFields($my,@$allowguestsubs,@$yournamecaption,@$guestemail,@$guestname,true,@$hidesubscriptiondetails,@$class_sfx);

    echo ‘<div name=”userFormformatdiv” id=”userFormformatdiv” width=”100%”‘;

    if (($my->id==0) && (@$hidesubscriptiondetails)) echo ‘ style=”display:none;”‘;

    echo ‘>’;

    if (!@$submitall)

    {

    vmn_doTable();

    vmn_doTableRow();

    vmn_doSubscriptionButton($my,@$allowguestsubs,@$yournamecaption,@$guestemail,@$guestname,@$subscribebuttontext);

    vmn_doEndTableRow();

    vmn_doEndTable();

    echo “<br>”;

    }

    echo vmn_doMyMailformat($my,$mailformat,$mailformatmessage,$unsubscribealltext,$newsmailHTML,$newsmailText,$readmore,$sidebarmodules,$base_url,1-@$submitall,@$popupstyle,$stripmambotsarray,@$modulepreviewtext);

    echo “<br>”;

    echo vmn_doMySMSDetails($my,@$smsoperator,@$smsfrontendtext,1-@$submitall,$class_sfx);

    echo “<br>”;

    if (@$submitall)

    {

    vmn_doTable();

    vmn_doTableRow();

    vmn_doSubscriptionButton($my,@$allowguestsubs,@$yournamecaption,@$guestemail,@$guestname,@$subscribebuttontext);

    vmn_doEndTableRow();

    vmn_doEndTable();

    echo “<br>”;

    }

    echo ‘</div>’;

    vmn_doEndForm();

    ?>

    <form method=”post” action=”<?php echo vmn_sefRelToAbs($base_url); ?>” name=”adminForm”>

    <?php

    vmn_doTable();

    vmn_doTableRow();

    vmn_doButton(vmn_text(‘VMN_PREVIEW’),$previewusers,”,false,’preview’);

    vmn_doButton(vmn_text(‘VMN_VIEW_LOG’),$previewusers,”,false,’viewlog’);

    vmn_doEndTableRow();

    vmn_doEndTable();

    vmn_doEndForm();

    if (@$archiveitems)

    {

    require(vmn_absolute_path().”/administrator/components/com_vemod_news_mailer/js.vemod_news_mailer.php”);

    $database->setQuery(“SELECT COUNT(*) FROM #__vemod_news_mailer_subs WHERE userid=$my->id”);

    $issubscriber= $database->loadResult();

    if ((@$archiveusers==0) || ((@$archiveusers==1) && ($my->id>0)) || ((@$archiveusers==2) && ($issubscriber)))

    {

    echo vmn_doArchive(@$archivename,@$archiveitemtext,@$archiveitems,@$archiveformat,false,@$class_sfx);

    }

    }

    break;

    }

    if (!$fromtemplate)

    {

    if (($my->id < 0) || (@$temploginflag))

    {

    $my->id=0;

    $my->name=”;

    $my->email=”;

    }

    # STOP! REMOVAL OF THE FOOTER IS NOT ALLOWED.

    # REMEMBER I PUT A LOT AF HARD WORK INTO THIS AND REMOVAL OF THE FOOTER IS STEALING!

    # YOU CAN HOWEVER EASE YOUR MIND HERE: http://www.shareit.com/product.html?productid=300182359

    vmn_doFooter();

    }

    ?>[/PHP]
    it’s a pretty old component but it’s great:)
    i’ve check it but i don’t found anything,and with other thmp work pretty well…..
    Thx.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  m346 14 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum