WorxWare.com Support Forum

Not logged in [Login - Register]
Go To Bottom
Printable Version  
Author: Subject: Need Help Installation
cbpromo11
Newbie
*




Posts: 1
Registered: 11-12-2009
Member Is Offline


[*] posted on 11-12-2009 at 03:47 PM
Need Help Installation


I am really new to this. I have uploaded and changed permissions on acp-ml file to 755.

However, When I go to

of course my domain. I get this:

<?php
/*~ _acp-ml/index.php
.---------------------------------------------------------------------------.
| Software: PHPMailer-ML - PHP mailing list |
| Version: 1.8 |
| Contact: via sourceforge.net support pages (also ) |
| Info: |
| Support: |
| ------------------------------------------------------------------------- |
| Author: Andy Prevost (project admininistrator) |
| Copyright (c) 2004-2009, Andy Prevost. All Rights Reserved. |
| ------------------------------------------------------------------------- |
| License: Distributed under the General Public License (GPL) |
| () |
| This program is distributed in the hope that it will be useful - WITHOUT |
| ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| FITNESS FOR A PARTICULAR PURPOSE. |
| ------------------------------------------------------------------------- |
| We offer a number of paid services (): |
| - Web Hosting on highly optimized fast and secure servers |
| - Technology Consulting |
| - Oursourcing (highly qualified programmers and graphic designers) |
'---------------------------------------------------------------------------'

/**
* PHPMailer-ML - PHP mailing list manager
* @package PHPMailer-ML
* @author Andy Prevost
* @copyright 2004 - 2009 Andy Prevost. All Rights Reserved.
*/

if ( ini_get( 'zlib.output_compression' ) ) {
if ( ini_get( 'zlib.output_compression_level' ) != 5) {
ini_set( 'zlib.output_compression_level', '5' );
}
ob_start();
} else {
if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'],"gzip")) {
ob_start("ob_gzhandler");
} else {
ob_start();
}
}

session_start();
session_register("return_msg");
session_register("def_list");
session_register("acp");

if ($_SESSION['acp'] == '') {
$_SESSION['acp'] = '_acp-ml';
}

if ($_GET['pg'] == '') {
$_GET['pg'] == 'lists';
}

require_once('inc.settings.php');
require_once('inc.functions.php');

if ( $def_list == '' ) {
if ( trim($_SESSION['def_list']) != '' ) {
$def_list = $_SESSION['def_list'];
} else {
$def_list = 1;
$_SESSION['def_list'] = $def_list;
}
}

$pgArr['title'] = "PHPMailer-ML Admin";

$address = $_REQUEST['email'];

ob_start();
if ($_GET['pg'] == "campaigns") {
require_once("inc.campaigns.php");
exit(); // exiting here so that we don't display default page
} elseif ($_GET['pg'] == "opt") {
require_once("inc.configuration.php");
exit(); // exiting here so that we don't display default page
} elseif ($_GET['pg'] == "about") {
require_once("inc.about.php");
exit(); // exiting here so that we don't display default page
} elseif ($_GET['pg'] == "subscribers") {
require_once("inc.subscribers.php");
exit(); // exiting here so that we don't display default page
} elseif ($_GET['pg'] == "upld") {
require_once("inc.import.php");
exit(); // exiting here so that we don't display default page
} elseif ($_GET['pg'] == "pword") {
require_once("inc.pword.php");
exit(); // exiting here so that we don't display default page
} elseif ($_GET['pg'] == "qcsv") {
require_once($phpml['modules'] . "quickcsv/csv2mysql.php");
exit(); // exiting here so that we don't display default page
} elseif ($_GET['pg'] == "stats") {
require_once("inc.stats.php");
exit(); // exiting here so that we don't display default page
} elseif ($_GET['pg'] == "lists" || $_GET['pg'] == "") {
require_once("inc.lists.php");
exit(); // exiting here so that we don't display default page
}

$url = $phpml['ReturnPage'];
echo "<meta http-equiv=\"Refresh\" content=\"0; URL=$url\">";
exit();

/* FUNCTIONS ************************************ */

function send_message($address, $message) {
// global $return_msg;
global $phpml;
global $PHPML_LANG;

$rc = false;
if ($phpml['EmailSend']) {
$mail = new MyMailer;
$mail->Subject = stripslashes('[' . $phpml['ListName'] . '] Mailing List' );
$mail->Body = stripslashes($message);
$mail->AddAddress($address);
if(!$mail->Send()) {
$_SESSION['return_msg'] = $PHPML_LANG["error_sending"] . " (" . $address . "): " . $mail->ErrorInfo;
} else {
$rc = true;
}
$mail->ClearAddresses();
}
return $rc;
}

function is_subscribed($address) {
//global $return_msg;
global $phpml;
global $PHPML_LANG;

$query = "SELECT *
FROM " . $phpml['dbMembers'] . "
WHERE email = '" . $address . "'";
$result = mysql_query($query) or die($PHPML_LANG["error_query"] . mysql_error());
$num = mysql_num_rows($result);
if ($num == 0) {
return false;
} else {
return true;
}
}

?>
View user's profile Visit user's homepage View All Posts By User
andy.prevost
Super Administrator
*********




Posts: 185
Registered: 3-7-2009
Member Is Offline


[*] posted on 11-12-2009 at 10:11 PM


It doesn't look like you have PHP installed on your server ...
View user's profile View All Posts By User
tomdchi
Newbie
*




Posts: 1
Registered: 13-1-2010
Member Is Offline


[*] posted on 13-1-2010 at 11:24 PM


I have the same problem with the exception that ie prompts me to save a file the when viewed in wordpad looks identical to what cbpromo11 posted.
And yes php is installed, I own my servers and have tested it on two with the same results. I think you guys have a pretty bad security bug somewhere if its doing that. I develop php apps and I have never seen where the php file is outputed to the browser like this.

View user's profile View All Posts By User
andy.prevost
Super Administrator
*********




Posts: 185
Registered: 3-7-2009
Member Is Offline


[*] posted on 4-2-2010 at 01:04 PM


Neither have I, tomdchi, neither have I ...

So, where's the bug?
View user's profile View All Posts By User
arma
Junior Member
**




Posts: 8
Registered: 9-3-2010
Member Is Offline


[*] posted on 9-3-2010 at 08:09 PM


@tomdchi
Browser file save output is caused because .htaccess file in root of PHPMailer.
It just happens on some server, for example on my i removed that .htaccess since my server don't want application type declared 2 times.
View user's profile View All Posts By User
Richard
Newbie
*




Posts: 1
Registered: 22-3-2010
Member Is Offline


[*] posted on 22-3-2010 at 05:52 AM


I assume the first comment open tag /* is not closed
properly.
This causes the PHP not to be interpreted correctly.... correct?
View user's profile Visit user's homepage View All Posts By User
  Go To Top
Contents Copyright © 2004-2009, Worx International Inc. All Rights Reserved.
Powered by XMB – XMB Forum Software © 2001-2009 The XMB Group