Plugin Directory

Changeset 489131


Ignore:
Timestamp:
01/13/2012 03:02:22 AM (14 years ago)
Author:
Risal Affendie
Message:

Updating new version 1.1

Location:
wp-risal-download
Files:
1 added
2 edited
11 copied

Legend:

Unmodified
Added
Removed
  • wp-risal-download/tags/1.1/readme.txt

    r488618 r489131  
    55Requires at least: 3.0.0
    66Tested up to: 3.3.0
    7 Stable Tag: 1.0
     7Stable Tag: 1.1
    88
    99risal-download is a simple scripts to avoid download abuse(either by human or robot).
     
    5757* Work under linux filesystem. Windows? Not yet tested.
    5858
     59= 1.1 =
     60* Fix html syntax in admin page. File's name and directory's name that containing SPACE are now able to be recorded/updated/deleted from database.
     61
  • wp-risal-download/tags/1.1/risal-download.php

    r488618 r489131  
    142142///step 3: Create Editor //form to POST (insert/edit) will be here.
    143143    echo '</tbody></table><hr>
    144         <form id="myform" class="cssform" method="post" action="">
    145         <h2>Insert/Modify Record:</h2>';
     144        <form id="myform" class="cssform" method="post" action="">';
    146145    if ( $_POST['submit'] == "edit" && $_POST['myid'] !== "" ) {
    147146        $myid = $_POST['myid'];
     
    152151        }
    153152        $vris = "Update";
     153        $xfile = "text";
     154        echo '<h2>Modify Record:</h2>';
    154155        if ( $myrow->method == "md5" ) { $fmd5 = "checked"; $fsha1 = "";}
    155156        if ( $myrow->method == "sha1" ) { $fsha1 = "checked"; $fmd5 = ""; }
     
    158159        $tris = $queryRisal + 1;
    159160        $vris = "Insert";
    160     }
    161     echo '<p><label for="ID">ID</label><input type=text name="myid" value='.$tris.'></p>
    162         <p><label for="File">File Name</label><input type="file" name="myfile" value='.$myrow->file.'></p>
    163         <p><label for="File Path">File Path</label><input type=text name="mypath" value='.$myrow->outsidepath.'></p>
     161        $xfile = "file";
     162        echo '<h2>Insert New Record:</h2>';
     163    }
     164    echo '<p><label for="ID">ID</label><input type=text name="myid" value="'.$tris.'"></p>
     165        <p><label for="File">File Name</label><input type='.$xfile.' name="myfile" value="'.$myrow->file.'"></p>
     166        <p><label for="File Path">File Path</label><input type=text name="mypath" value="'.$myrow->outsidepath.'"></p>
    164167        <p><label for="Method">Method</label><input type="radio" name="mymeth" value="md5" '.$fmd5.'> MD5
    165168        <input type="radio" name="mymeth" value="sha1" '.$fsha1.'> SHA1</p>
    166         <p><label for="Livetime">Livetime</label><input type=text name="mytime" value='.$myrow->timing.'><br>
     169        <p><label for="Livetime">Livetime</label><input type=text name="mytime" value="'.$myrow->timing.'"><br>
    167170        (<i> in seconds</i> )</p>
    168         <p class="submit"><input type="submit" name=submit value='.$vris.'></p></form><hr>';
     171        <p class="submit"><input type="submit" name=submit value="'.$vris.'"></p></form><hr>';
    169172///step 4: Create table 2 and table 3. Remove button will be here.
    170173    echo risal_displayonly('second');
  • wp-risal-download/trunk/readme.txt

    r488618 r489131  
    55Requires at least: 3.0.0
    66Tested up to: 3.3.0
    7 Stable Tag: 1.0
     7Stable Tag: 1.1
    88
    99risal-download is a simple scripts to avoid download abuse(either by human or robot).
     
    5757* Work under linux filesystem. Windows? Not yet tested.
    5858
     59= 1.1 =
     60* Fix html syntax in admin page. File's name and directory's name that containing SPACE are now able to be recorded/updated/deleted from database.
     61
  • wp-risal-download/trunk/risal-download.php

    r488618 r489131  
    142142///step 3: Create Editor //form to POST (insert/edit) will be here.
    143143    echo '</tbody></table><hr>
    144         <form id="myform" class="cssform" method="post" action="">
    145         <h2>Insert/Modify Record:</h2>';
     144        <form id="myform" class="cssform" method="post" action="">';
    146145    if ( $_POST['submit'] == "edit" && $_POST['myid'] !== "" ) {
    147146        $myid = $_POST['myid'];
     
    152151        }
    153152        $vris = "Update";
     153        $xfile = "text";
     154        echo '<h2>Modify Record:</h2>';
    154155        if ( $myrow->method == "md5" ) { $fmd5 = "checked"; $fsha1 = "";}
    155156        if ( $myrow->method == "sha1" ) { $fsha1 = "checked"; $fmd5 = ""; }
     
    158159        $tris = $queryRisal + 1;
    159160        $vris = "Insert";
    160     }
    161     echo '<p><label for="ID">ID</label><input type=text name="myid" value='.$tris.'></p>
    162         <p><label for="File">File Name</label><input type="file" name="myfile" value='.$myrow->file.'></p>
    163         <p><label for="File Path">File Path</label><input type=text name="mypath" value='.$myrow->outsidepath.'></p>
     161        $xfile = "file";
     162        echo '<h2>Insert New Record:</h2>';
     163    }
     164    echo '<p><label for="ID">ID</label><input type=text name="myid" value="'.$tris.'"></p>
     165        <p><label for="File">File Name</label><input type='.$xfile.' name="myfile" value="'.$myrow->file.'"></p>
     166        <p><label for="File Path">File Path</label><input type=text name="mypath" value="'.$myrow->outsidepath.'"></p>
    164167        <p><label for="Method">Method</label><input type="radio" name="mymeth" value="md5" '.$fmd5.'> MD5
    165168        <input type="radio" name="mymeth" value="sha1" '.$fsha1.'> SHA1</p>
    166         <p><label for="Livetime">Livetime</label><input type=text name="mytime" value='.$myrow->timing.'><br>
     169        <p><label for="Livetime">Livetime</label><input type=text name="mytime" value="'.$myrow->timing.'"><br>
    167170        (<i> in seconds</i> )</p>
    168         <p class="submit"><input type="submit" name=submit value='.$vris.'></p></form><hr>';
     171        <p class="submit"><input type="submit" name=submit value="'.$vris.'"></p></form><hr>';
    169172///step 4: Create table 2 and table 3. Remove button will be here.
    170173    echo risal_displayonly('second');
Note: See TracChangeset for help on using the changeset viewer.