phpBMS

root/trunk/phpbms/modules/mailchimp/manual_list_sync.php

Revision 745, 4.0 KB (checked in by brieb, 2 years ago)
  • implemented patch from #398 (small typos and bugs)
  • reinstated debug mode now that release is (almost) done
Line 
1<?php
2/*
3 $Rev: 267 $ | $LastChangedBy: brieb $
4 $LastChangedDate: 2007-08-14 13:08:27 -0600 (Tue, 14 Aug 2007) $
5 +-------------------------------------------------------------------------+
6 | Copyright (c) 2004 - 2010, Kreotek LLC                                  |
7 | All rights reserved.                                                    |
8 +-------------------------------------------------------------------------+
9 |                                                                         |
10 | Redistribution and use in source and binary forms, with or without      |
11 | modification, are permitted provided that the following conditions are  |
12 | met:                                                                    |
13 |                                                                         |
14 | - Redistributions of source code must retain the above copyright        |
15 |   notice, this list of conditions and the following disclaimer.         |
16 |                                                                         |
17 | - Redistributions in binary form must reproduce the above copyright     |
18 |   notice, this list of conditions and the following disclaimer in the   |
19 |   documentation and/or other materials provided with the distribution.  |
20 |                                                                         |
21 | - Neither the name of Kreotek LLC nor the names of its contributore may |
22 |   be used to endorse or promote products derived from this software     |
23 |   without specific prior written permission.                            |
24 |                                                                         |
25 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS     |
26 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT       |
27 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
28 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT      |
29 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,   |
30 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT        |
31 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,   |
32 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY   |
33 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT     |
34 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE   |
35 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.    |
36 |                                                                         |
37 +-------------------------------------------------------------------------+
38*/
39require_once("../../include/session.php");
40
41$querystatement = "
42    SELECT
43        roleid
44    FROM
45        tableoptions
46    WHERE
47        name= 'massemail'
48        AND tabledefid = 'tbld:6d290174-8b73-e199-fe6c-bcf3d4b61083'
49        ";
50
51$queryresult = $db->query($querystatement);
52
53$therecord = $db->fetchArray($queryresult);
54
55if(!hasRights($therecord["roleid"]))
56    goURL(APP_PATH."noaccess.php");
57
58$pageTitle = "MailChimp List Sync";
59
60$phpbms->showMenu = false;
61
62$phpbms->cssIncludes[] = "pages/print.css";
63$phpbms->cssIncludes[] = "pages/mailchimp/manual_sync.css";
64
65$phpbms->jsIncludes[] = "modules/mailchimp/javascript/manual_list_sync.js";
66
67include("header.php");
68?>
69
70<div class="bodyline" id="mainbody">
71        <h1><?php echo $pageTitle ?><a name="top"></a></h1>
72        <p>
73                The sync process will pull changes made on the MailChimp side, and push
74                local phpbms changes to MailChimp.
75        </p>
76        <p>
77                <button id="sync" class="Buttons"><span>sync</span></button>
78                <span id="resultPic"></span>
79        </p>
80        <p>
81        <button type="button" class="graphicButtons buttonDown" id="showResults"><span>show results</span></button>
82        </p>
83    <div id="resultDiv">
84                <p>
85                        <textarea readonly="readonly" rows="10" cols="98" class="results" id="resultText" name="results"></textarea>
86                </p>
87        </div>
88        <p id="cancelP">
89                <button type="button" class="Buttons" id="cancelButton" accesskey="x" title="access key='x'"><span id="cancelSpan">cancel</span></button>
90        </p>
91</div>
92<?php include("footer.php")?>
Note: See TracBrowser for help on using the browser.
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.