Advertisement:

Author Topic: After login in to admin panel ip will blocked  (Read 1809 times)

Harsh Vora

  • Jr. Member
  • **
  • Posts: 50
After login in to admin panel ip will blocked
« on: August 04, 2011, 08:29:44 pm »
when i logged in to admin panel my IP will automatically block. when i talked with hosting guy he told me that there is a problem in cookie file.

Please help me i am suffering a lot by this issue.

Swede

  • Sr. Member
  • ****
  • Posts: 388
Re: After login in to admin panel ip will blocked
« Reply #1 on: August 05, 2011, 03:04:15 am »
I´m getting this when logging in to the admin:

*could not find privacy policy for http://osclass.org/latest_version.php*

Maybe this is the problem for you? (i think it´s cookie related).

Harsh Vora

  • Jr. Member
  • **
  • Posts: 50
Re: After login in to admin panel ip will blocked
« Reply #2 on: August 05, 2011, 06:58:32 am »
then what i have to do?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: After login in to admin panel ip will blocked
« Reply #3 on: August 05, 2011, 11:05:29 am »
I still don't understand very well how and who is blocking your IP, I will appreciate if you could tell us more about your problem.


If it's something related to what Swede said, then,  go to oc-admin/themes/modern/main.php and delete the following files:

<?php
    $lastCheck 
= (int)osc_last_version_check() ;
    
$hourInSecs 24 3600 ;
?>
<?php 
if ( (time() - $lastCheck) > $hourInSecs ) { ?>
    <script type="text/javascript">
        $(function() {
            var version = <?php echo osc_version() ; ?> ;

            $.getJSON("http://osclass.org/latest_version.php?callback=?", function(data) {
                var update = document.getElementById('update_version') ;
                if(data.version > version) {
                    var text = '<?php printf(__('OSClass %s is available!'), '\' + data.s_name + \'') ; ?> <a href="index.php?page=tools&action=upgrade"><?php _e('Please upgrade now') ; ?></a>' ;
                    update.innerHTML = text ;
                    update.setAttribute('style', '') ;
                }
            });
        });
    </script>
<?php ?>


Hope this helps

Harsh Vora

  • Jr. Member
  • **
  • Posts: 50
Re: After login in to admin panel ip will blocked
« Reply #4 on: August 05, 2011, 11:07:36 am »
i removed following code.

<?php
    $lastCheck = (int)osc_last_version_check() ;
    $hourInSecs = 24 * 3600 ;
?>
<?php if ( (time() - $lastCheck) > $hourInSecs ) { ?>
    <script type="text/javascript">
        $(function() {
            var version = <?php echo osc_version() ; ?> ;

            $.getJSON("http://osclass.org/latest_version.php?callback=?", function(data) {
                var update = document.getElementById('update_version') ;
                if(data.version > version) {
                    var text = '<?php printf(__('OSClass %s is available!'), '\' + data.s_name + \'') ; ?> <a href="index.php?page=tools&action=upgrade"><?php _e('Please upgrade now') ; ?></a>' ;
                    update.innerHTML = text ;
                    update.setAttribute('style', '') ;
                }
            });
        });
    </script>
<?php } ?>

and my problem is solved.

thanks.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: After login in to admin panel ip will blocked
« Reply #5 on: August 05, 2011, 11:45:21 am »
Will look for a solution

Harsh Vora

  • Jr. Member
  • **
  • Posts: 50
Re: After login in to admin panel ip will blocked
« Reply #6 on: August 05, 2011, 11:01:53 pm »
again my ip is block.