CCI Forum » Codes

PTP Banned sites list

(2 posts) RSS feed for this topic
  • Started 3 years ago by jroth32262
  • Latest reply from johnnyvang

No tags yet.

  1. jroth32262
    Member

    Hello

    Does anyone know of a code to automatically list the sites you have banned from your PTP?? I would like to have a way for the members to know what sites are banned, I would prefer not to have to go in and edit the list manually every time i add a site.


    Thanks


    Jeff
    Posted 3 years ago #
  2. johnnyvang
    Member

    It's a old topic, but i think you still need this (or others).
    The code i created can be used to show the banned sites.
    All sites u insert in the PTP admin banned sites, will be showed on auto on this list.
    Delete one or more, and they are not on the list anymore :)

    Create a file called ptp_banned.php en enter the code below.
    Save it and upload it to the page folder.

    <br />
    <script language=&quot;php&quot;> include(&quot;setup.php&quot;);</script><br />
    <script language=&quot;php&quot;> include(&quot;header.php&quot;);</script><br />
    <script language=&quot;php&quot;> include(&quot;account_menu.php&quot;);</script><br />
    <center><br />
    <? include('../scripts/plugins/nsptp/include.php'); ?><br />
    <script language=&quot;php&quot;> include(&quot;ptpmenu.php&quot;);</script></p>
    <p><table width=&quot;50%&quot; cellpadding=2 border=1><br />
    <tr><br />
    <td align=&quot;center&quot; class=&quot;cat2&quot;><h2><b>PTP Banned</b></h2></td><br />
     </tr><br />
     <tr><br />
     <td align=&quot;center&quot;><br />
    <?<br />
    $rows=@mysql_query('select domain from nsptp_banned where domain!=&quot;&quot;<br />
    group by domain order by id desc limit 50');<br />
    while ($line=@mysql_fetch_row($rows)){<br />
    echo ''.$line[0].'';<br />
    }<br />
    ?><br />
     </td><br />
     </tr><br />
    </table><br />
    </center><br />
    <script language=&quot;php&quot;> include(&quot;footer.php&quot;);</script><br />

    Now open ptpmenu.php and find:
    <a href=&quot;&quot;ptpmain.php&quot;&quot;>PTP Main</a> - <a href=&quot;&quot;ptpconvert.php&quot;&quot;>Convert</a> - <a href=&quot;&quot;ptpcampaigns.php&quot;&quot;>PTP Campaigns</a></p><br />

    Add after:
    - <a href=&quot;&quot;ptp_banned.php&quot;&quot;>PTP Banned</a>

    Find:

    <br />
    <p dir=&quot;ltr&quot;><a href=&quot;&quot;ptpmain.php&quot;&quot;>PTP Main</a>  - <a href=&quot;&quot;ptpcampaigns.php&quot;&quot;>PTP Campaigns</a></p><br />

    Add after:

    - PTP Banned

    Save and upload to the page folder again.
    Now you have a link inside the ptpmain page to the banned list.

    Enjoy the new option :)

    Posted 5 months ago #

Reply

You must log in to post.