Created
December 5, 2012 20:09
-
-
Save alpha1/4219044 to your computer and use it in GitHub Desktop.
Change how PHPlist displays [LISTS]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Confirm email | |
// admin/subscriberlib2.php | |
// LINE 236: | |
# subscribe to the lists | |
$lists = '<ul>'; | |
if (isset($_POST['list']) && is_array($_POST["list"])) { | |
while(list($key,$val)= each($_POST["list"])) { | |
if ($val == "signup") { | |
$key = sprintf('%d',$key); | |
if (!empty($key)) { | |
$result = Sql_query(sprintf('replace into %s (userid,listid,entered) values(%d,%d,now())',$GLOBALS["tables"]["listuser"],$userid,$key)); | |
$lists .= "\n <li> ".listname($key) ."</li>"; | |
addSubscriberStatistics('subscribe',1,$key); | |
} else { | |
## hack attempt... | |
exit; | |
} | |
} | |
} | |
$lists = $lists . "</ul>"; | |
} | |
//thanks for confirming email | |
// index.php | |
// line 609 | |
while ($row = Sql_fetch_array($req)) { | |
array_push($subscriptions,$row['id']); | |
$lists .= "\n <li>".stripslashes($row["name"]) .'</li>'; | |
$html .= '<li class="list">'.stripslashes($row["name"]).'<div class="listdescription">'.stripslashes($row["description"]).'</div></li>'; | |
} | |
$lists = $lists . "</ul>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment